From 2e870d3753b043b7e6414286e4b9fcc704a60fe8 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Tue, 16 Feb 2010 14:02:37 +0100 Subject: [PATCH] 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> --- src/libs/utils/fancylineedit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/utils/fancylineedit.cpp b/src/libs/utils/fancylineedit.cpp index 2db81fae8b2..d1452972e72 100644 --- a/src/libs/utils/fancylineedit.cpp +++ b/src/libs/utils/fancylineedit.cpp @@ -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); } -- GitLab