summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/liquid/liquid.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp
index 4013981..eb1ec6e 100644
--- a/noncore/styles/liquid/liquid.cpp
+++ b/noncore/styles/liquid/liquid.cpp
@@ -129,14 +129,13 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev)
- if (!p->inherits("QPopupMenu")) {
+ if ( !p->inherits("QPopupMenu"))
p->setBackgroundPixmap(*pix);
- QObjectList *ol = p-> queryList("QWidget");
- for ( QObjectListIt it( *ol ); it. current ( ); ++it ) {
- QWidget *wid = (QWidget *) it.current ( );
+ QObjectList *ol = p-> queryList("QWidget");
+ for ( QObjectListIt it( *ol ); it. current ( ); ++it ) {
+ QWidget *wid = (QWidget *) it.current ( );
- wid-> setBackgroundPixmap(*pix);
- wid-> setBackgroundOrigin(QWidget::ParentOrigin);
- }
- delete ol;
- }
+ wid-> setBackgroundPixmap(*pix);
+ wid-> setBackgroundOrigin(QWidget::ParentOrigin);
+ }
+ delete ol;
}
@@ -149,13 +148,12 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev)
pixDict.remove(p->winId());
- if (!p->inherits("QPopupMenu")) {
+ if ( !p->inherits("QPopupMenu"))
p->setBackgroundMode(QWidget::PaletteBackground);
- QObjectList *ol = p-> queryList("QWidget");
- for ( QObjectListIt it( *ol ); it. current ( ); ++it ) {
- QWidget *wid = (QWidget *) it.current ( );
-
- wid-> setBackgroundMode( QWidget::PaletteBackground );
- }
- delete ol;
+ QObjectList *ol = p-> queryList("QWidget");
+ for ( QObjectListIt it( *ol ); it. current ( ); ++it ) {
+ QWidget *wid = (QWidget *) it.current ( );
+
+ wid-> setBackgroundMode( QWidget::PaletteBackground );
}
+ delete ol;
}