From 0235faab30f436ae3fbfed21e9f07486181bb0dd Mon Sep 17 00:00:00 2001 From: sandman Date: Sat, 29 Jun 2002 23:58:09 +0000 Subject: Some fixes regarding transparency for all WType_Popup's --- (limited to 'noncore/styles/liquid') diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index 4653639..2b6eaa4 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp @@ -160,15 +160,6 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev) } } } - else if(ev->type() == QEvent::Paint){ - if(type == TransStippleBg || type == TransStippleBtn || - type == Custom){ -// qWarning("Deleting menu pixmap, width %d", pixDict.find(p->winId())->width()); - - if (!p->inherits("QPopupMenu")) - p->erase(); - } - } return(false); } @@ -837,8 +828,7 @@ void LiquidStyle::polish(QWidget *w) } if(w->inherits("QPopupMenu")) w->setBackgroundMode(QWidget::NoBackground); - else if(w-> testWFlags(Qt::WType_Popup)) { - printf("install popup: %s\n", w-> className ( )); + else if(w-> testWFlags(Qt::WType_Popup) && !w->inherits("QListBox")) { w->installEventFilter(menuHandler); } @@ -932,7 +922,7 @@ void LiquidStyle::unPolish(QWidget *w) if(w->inherits("QPopupMenu")) w->setBackgroundMode(QWidget::PaletteButton); - else if(w-> testWFlags(Qt::WType_Popup)) { + else if(w-> testWFlags(Qt::WType_Popup) && !w->inherits("QListBox")) { w->removeEventFilter(menuHandler); } diff --git a/noncore/styles/liquid/plugin.cpp b/noncore/styles/liquid/plugin.cpp index fca7c06..d9aa8ef 100644 --- a/noncore/styles/liquid/plugin.cpp +++ b/noncore/styles/liquid/plugin.cpp @@ -25,5 +25,5 @@ int major_version ( ) const char *description ( ) { - return "High performance liquid plugin"; + return "High Performance Liquid"; } -- cgit v0.9.0.2