ValueDial: beautify again

This commit is contained in:
Christian Daniel 2012-06-10 14:34:41 +02:00
parent 369b991b0f
commit 57a20e919a
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ void ValueDial::setFont(const QFont& font)
QFontMetrics fm(font);
m_digitWidth = fm.width('0');
m_digitHeight = fm.ascent();
if(m_digitWidth < m_digitHeight / 2)
m_digitWidth = m_digitHeight / 2;
if(m_digitWidth < m_digitHeight)
m_digitWidth = m_digitHeight;
setFixedWidth((m_numDigits + m_numDecimalPoints) * m_digitWidth + 2);
setFixedHeight(m_digitHeight * 2 + 2);
}