diff options
author | Tim E. Real <termtech@rogers.com> | 2010-10-26 22:30:37 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2010-10-26 22:30:37 +0000 |
commit | b5a9f51073ba4e3c166f9229cd596f22878acafc (patch) | |
tree | 2f2bd80dd09f6391166ef35c2521eb2651ade4c1 /muse2/muse/widgets/pitchlabel.cpp | |
parent | 1b5734729f893636653693776da29c6f391d3439 (diff) |
See ChangeLog
Diffstat (limited to 'muse2/muse/widgets/pitchlabel.cpp')
-rw-r--r-- | muse2/muse/widgets/pitchlabel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/muse2/muse/widgets/pitchlabel.cpp b/muse2/muse/widgets/pitchlabel.cpp index f53e6fa5..66af63fb 100644 --- a/muse2/muse/widgets/pitchlabel.cpp +++ b/muse2/muse/widgets/pitchlabel.cpp @@ -26,7 +26,8 @@ PitchLabel::PitchLabel(QWidget* parent, const char* name) setLineWidth(2); setMidLineWidth(3); setValue(0); - int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, this); // ddskrjo 0 + //int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, this); // ddskrjo 0 + int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); setIndent(fw); } @@ -46,7 +47,8 @@ void PitchLabel::setPitchMode(bool val) QSize PitchLabel::sizeHint() const { QFontMetrics fm(font()); - int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, this); // ddskrjo 0 + //int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, this); // ddskrjo 0 + int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); int h = fm.height() + fw * 2; // int w = 2 + fm.width(QString("A#8")) + fw * 4; int w = 2 + fm.width(QString("-9999")) + fw * 4; // must display 14Bit controller values |