From d505c378bdf55445babb73e0ba4085702be35870 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Mon, 29 Aug 2011 22:44:24 +0000 Subject: Fixed audio automation graph editing. And now 'snaps' to discrete integer or bool types. All control movements should update display now. Also slightly changed behaviour of Ctrl class. TODO: Fix some painting corruption, improve discrete display, add transparency etc. etc. Applied compilation patch to rhythmbase.ui by Jean-Damien Durand. --- muse2/awl/posedit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'muse2/awl') diff --git a/muse2/awl/posedit.cpp b/muse2/awl/posedit.cpp index 6ca49566..07741e58 100644 --- a/muse2/awl/posedit.cpp +++ b/muse2/awl/posedit.cpp @@ -70,7 +70,8 @@ PosEdit::~PosEdit() QSize PosEdit::sizeHint() const { - QFontMetrics fm(font()); + //QFontMetrics fm(font()); + QFontMetrics fm = fontMetrics(); int fw = style()->pixelMetric(QStyle::PM_SpinBoxFrameWidth); int h = fm.height() + fw * 2; int w = fw * 4 + 10; // HACK: 10 = spinbox up/down arrows -- cgit v1.2.3