Diffstat (limited to 'noncore/styles/liquid/liquid.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 8 |
1 files changed, 4 insertions, 4 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 @@ -126,7 +126,7 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev) } - if (p->inherits("QPopupMenu")) pixDict.insert(p->winId(), pix); - else { + + if (!p->inherits("QPopupMenu")) { p->setBackgroundPixmap(*pix); @@ -147,7 +147,6 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev) // qWarning("Deleting menu pixmap, width %d", pixDict.find(p->winId())->width()); - if (p->inherits("QPopupMenu")) pixDict.remove(p->winId()); - else { + if (!p->inherits("QPopupMenu")) { p->setBackgroundMode(QWidget::PaletteBackground); @@ -846,4 +845,5 @@ void LiquidStyle::polish(QWidget *w) + if ( !w-> inherits("QFrame") || (((QFrame*) w)-> frameShape () == QFrame::NoFrame )) w-> setBackgroundOrigin ( QWidget::ParentOrigin ); |