diff options
author | Robin Burchell <robin.burchell@collabora.com> | 2011-10-27 10:58:57 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-28 16:29:13 +0200 |
commit | a2337f79ffd229aa1e91f6bfec6294570eb3fe44 (patch) | |
tree | 48d68ba1c19bb629a096344453cf69cd692affba /src/widgets/styles/qmotifstyle.cpp | |
parent | 1cae2fdb864f2b67333a7c80742b8e493865b3f9 (diff) |
Remove Windows and X11 from src/widgets/platforms.
This is dead code, unused with QPA in place, so remove it to avoid confusion
caused through grepping for class names existing in both old and new places.
Mac code is left in place for now, as some of it is still in use.
Change-Id: Ia82cd5bbabe71285ca997f79d8fd9c0504e32c28
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/widgets/styles/qmotifstyle.cpp')
-rw-r--r-- | src/widgets/styles/qmotifstyle.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/widgets/styles/qmotifstyle.cpp b/src/widgets/styles/qmotifstyle.cpp index c1c1ffccd5..a18fc3ba97 100644 --- a/src/widgets/styles/qmotifstyle.cpp +++ b/src/widgets/styles/qmotifstyle.cpp @@ -72,10 +72,6 @@ #include <QtWidgets/qgraphicsproxywidget.h> #include <QtWidgets/qgraphicsview.h> -#ifdef Q_WS_X11 -#include "qx11info_x11.h" -#endif - QT_BEGIN_NAMESPACE // old constants that might still be useful... @@ -2693,13 +2689,9 @@ QMotifStyle::styleHint(StyleHint hint, const QStyleOption *opt, const QWidget *w /*! \reimp */ QPalette QMotifStyle::standardPalette() const { -#ifdef Q_WS_X11 QColor background(0xcf, 0xcf, 0xcf); - if (QX11Info::appDepth() <= 8) + if (QPixmap::defaultDepth() <= 8) background = QColor(0xc0, 0xc0, 0xc0); -#else - QColor background = QColor(0xcf, 0xcf, 0xcf); -#endif QColor light = background.lighter(); QColor mid = QColor(0xa6, 0xa6, 0xa6); |