Diffstat (limited to 'noncore/styles/liquid/liquid.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index eb1ec6e..6812d16 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp | |||
@@ -840,13 +840,15 @@ void LiquidStyle::polish(QWidget *w) | |||
840 | w->setBackgroundMode(QWidget::PaletteBackground); | 840 | w->setBackgroundMode(QWidget::PaletteBackground); |
841 | w->setBackgroundOrigin(QWidget::WidgetOrigin); | 841 | w->setBackgroundOrigin(QWidget::WidgetOrigin); |
842 | return; | 842 | return; |
843 | } | 843 | } |
844 | if(w->inherits("QPopupMenu")) | 844 | if(w->inherits("QPopupMenu")) |
845 | w->setBackgroundMode(QWidget::NoBackground); | 845 | w->setBackgroundMode(QWidget::NoBackground); |
846 | else if(w-> testWFlags(Qt::WType_Popup) && !w->inherits("QListBox")) { | 846 | else if(w-> testWFlags(Qt::WType_Popup) && |
847 | !w->inherits("QListBox") && | ||
848 | ( qstrcmp ( w-> name(), "automatic what's this? widget" ) != 0 )) { | ||
847 | w->installEventFilter(menuHandler); | 849 | w->installEventFilter(menuHandler); |
848 | } | 850 | } |
849 | 851 | ||
850 | if(w->isTopLevel()){ | 852 | if(w->isTopLevel()){ |
851 | return; | 853 | return; |
852 | } | 854 | } |
@@ -941,13 +943,15 @@ void LiquidStyle::unPolish(QWidget *w) | |||
941 | w->setBackgroundMode(QWidget::PaletteBackground); | 943 | w->setBackgroundMode(QWidget::PaletteBackground); |
942 | return; | 944 | return; |
943 | } | 945 | } |
944 | 946 | ||
945 | if(w->inherits("QPopupMenu")) | 947 | if(w->inherits("QPopupMenu")) |
946 | w->setBackgroundMode(QWidget::PaletteButton); | 948 | w->setBackgroundMode(QWidget::PaletteButton); |
947 | else if(w-> testWFlags(Qt::WType_Popup) && !w->inherits("QListBox")) { | 949 | else if(w-> testWFlags(Qt::WType_Popup) && |
950 | !w->inherits("QListBox") && | ||
951 | ( qstrcmp ( w-> name(), "automatic what's this? widget" ) != 0 )) { | ||
948 | w->removeEventFilter(menuHandler); | 952 | w->removeEventFilter(menuHandler); |
949 | } | 953 | } |
950 | 954 | ||
951 | if(w->isTopLevel()) | 955 | if(w->isTopLevel()) |
952 | return; | 956 | return; |
953 | 957 | ||