diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-05 09:52:55 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-05 10:44:43 (GMT) |
commit | c93ca96552b70a6bd7332aec3504485e82d4d032 (patch) | |
tree | d39b40a4f092eadc523ed6fa9f87e4f75845aa2f /src/gui/styles/qstylesheetstyle_default.cpp | |
parent | e7dc9a35aa7b0e16457526647a8884ff3b4da4fe (diff) | |
download | Qt-c93ca96552b70a6bd7332aec3504485e82d4d032.zip Qt-c93ca96552b70a6bd7332aec3504485e82d4d032.tar.gz Qt-c93ca96552b70a6bd7332aec3504485e82d4d032.tar.bz2 |
Stylesheet: Fix lineedit size with an empty stylesheet with some styles
Now passes tst_QStyleSheetStyle::emptyStyleSheet with gtk style
Somehow there were some wrong and uneeded default padding for the QLineEdit
with some styles
Task-number: QTBUG-5434
Reviewed-by: axis
Diffstat (limited to 'src/gui/styles/qstylesheetstyle_default.cpp')
-rw-r--r-- | src/gui/styles/qstylesheetstyle_default.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/gui/styles/qstylesheetstyle_default.cpp b/src/gui/styles/qstylesheetstyle_default.cpp index 406633e..f79f8e0 100644 --- a/src/gui/styles/qstylesheetstyle_default.cpp +++ b/src/gui/styles/qstylesheetstyle_default.cpp @@ -203,49 +203,6 @@ StyleSheet QStyleSheetStyle::getDefaultStyleSheet() const ADD_STYLE_RULE; } - /*QLineEdit[style="QCleanlooksStyle"] { - padding-top: 2px; - padding-bottom: 2px; - }*/ - if (baseStyle()->inherits("QCleanlooksStyle")) - { - SET_ELEMENT_NAME(QLatin1String("QLineEdit")); - ADD_BASIC_SELECTOR; - ADD_SELECTOR; - - - SET_PROPERTY(QLatin1String("padding-top"), PaddingTop); - ADD_VALUE(Value::Identifier, QString::fromLatin1("2px")); - ADD_DECLARATION; - - SET_PROPERTY(QLatin1String("padding-bottom"), PaddingBottom); - ADD_VALUE(Value::Identifier, QString::fromLatin1("2px")); - ADD_DECLARATION; - - ADD_STYLE_RULE; - } - - /*QLineEdit[style="QWindowsXPStyle"], - QLineEdit[style="QWindowsVistaStyle"], - QLineEdit[style="QGtkStyle"] { - padding-top: 1px; - padding-bottom: 1px; - }*/ - if (baseStyle()->inherits("QWindowsXPStyle") || baseStyle()->inherits("QGtkStyle")) - { - SET_ELEMENT_NAME(QLatin1String("QLineEdit")); - - SET_PROPERTY(QLatin1String("padding-top"), PaddingTop); - ADD_VALUE(Value::Identifier, QString::fromLatin1("1px")); - ADD_DECLARATION; - - SET_PROPERTY(QLatin1String("padding-bottom"), PaddingBottom); - ADD_VALUE(Value::Identifier, QString::fromLatin1("1px")); - ADD_DECLARATION; - - ADD_STYLE_RULE; - } - /*QFrame { border: native; }*/ |