summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/liquid/liquid.cpp16
-rw-r--r--noncore/styles/liquid/plugin.cpp2
2 files changed, 10 insertions, 8 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp
index 67e53e9..fc925b8 100644
--- a/noncore/styles/liquid/liquid.cpp
+++ b/noncore/styles/liquid/liquid.cpp
@@ -127,5 +127,5 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev)
- if (p->inherits("QPopupMenu"))
- pixDict.insert(p->winId(), pix);
- else {
+ pixDict.insert(p->winId(), pix);
+
+ if (!p->inherits("QPopupMenu")) {
p->setBackgroundPixmap(*pix);
@@ -148,6 +148,5 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev)
- if (p->inherits("QPopupMenu"))
- pixDict.remove(p->winId());
- else {
- p->setBackgroundMode(QWidget::PaletteBackground);
+ pixDict.remove(p->winId());
+ if (!p->inherits("QPopupMenu")) {
+ p->setBackgroundMode(QWidget::PaletteBackground);
@@ -847,3 +846,4 @@ void LiquidStyle::polish(QWidget *w)
- w-> setBackgroundOrigin ( QWidget::ParentOrigin );
+ if ( !w-> inherits("QFrame") || (((QFrame*) w)-> frameShape () == QFrame::NoFrame ))
+ w-> setBackgroundOrigin ( QWidget::ParentOrigin );
diff --git a/noncore/styles/liquid/plugin.cpp b/noncore/styles/liquid/plugin.cpp
index f149c29..5f4c8e5 100644
--- a/noncore/styles/liquid/plugin.cpp
+++ b/noncore/styles/liquid/plugin.cpp
@@ -111 +111,3 @@ QRESULT LiquidSettingsInterface::queryInterface ( const QUuid &uuid, QUnknownInt
+// Hack for Retail Z experiments
+extern "C" { QStyle *allocate ( ) { return new LiquidStyle ( ); } }