Skip to content
Snippets Groups Projects
Commit 2e870d37 authored by dt's avatar dt
Browse files

Fix stylesheet hack to only be used with 4.6


Note: If you are compiling with 4.6 but running against 4.7 then this
will result in a slightly buggy line edit.
Reviewed-by: default avatarFriedemann Kleint <qtc-committer@nokia.com>
parent 3c99f02b
No related merge requests found
......@@ -166,8 +166,11 @@ void FancyLineEdit::updateStyleSheet(Side side)
if (m_d->m_showingHintText)
sheet += QLatin1String(" color: #BBBBBB;");
// Fix the stylesheet's clearing the size hint.
#if QT_VERSION < 0x040700
sheet += QLatin1String(" height: ");
sheet += QString::number(sizeHint().height());
#endif
sheet += QLatin1Char('}');
setStyleSheet(sheet);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment