summaryrefslogtreecommitdiff
path: root/muse2/awl/posedit.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-09-01 17:30:59 +0000
committerFlorian Jung <flo@windfisch.org>2011-09-01 17:30:59 +0000
commit46369b4c33d841aa1ece363c3deb3775658165ad (patch)
tree73f923e0ee3d6d103957a507372ed3ad2666422d /muse2/awl/posedit.cpp
parente64c6677de790368781f7d9f1ba1c98bcfc521d2 (diff)
parent1414d8185ca9bc0b078cff7512482f013e28bde3 (diff)
merged with trunk
Diffstat (limited to 'muse2/awl/posedit.cpp')
-rw-r--r--muse2/awl/posedit.cpp3
1 files changed, 2 insertions, 1 deletions
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