forked from qt-creator/qt-creator
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: Friedemann Kleint <qtc-committer@nokia.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user