summaryrefslogtreecommitdiff
authorsandman <sandman>2002-06-29 23:58:09 (UTC)
committer sandman <sandman>2002-06-29 23:58:09 (UTC)
commit0235faab30f436ae3fbfed21e9f07486181bb0dd (patch) (side-by-side diff)
treeb930607e9d18c76b8efea1a1b93529cc6a799990
parentcb796c20c975cc5fe08a98d5ad90b6652fd3938d (diff)
downloadopie-0235faab30f436ae3fbfed21e9f07486181bb0dd.zip
opie-0235faab30f436ae3fbfed21e9f07486181bb0dd.tar.gz
opie-0235faab30f436ae3fbfed21e9f07486181bb0dd.tar.bz2
Some fixes regarding transparency for all WType_Popup's
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/liquid/liquid.cpp14
-rw-r--r--noncore/styles/liquid/plugin.cpp2
2 files changed, 3 insertions, 13 deletions
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
@@ -159,17 +159,8 @@ bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev)
delete ol;
}
}
}
- 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);
}
@@ -836,10 +827,9 @@ void LiquidStyle::polish(QWidget *w)
return;
}
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);
}
if(w->isTopLevel()){
@@ -931,9 +921,9 @@ 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);
}
if(w->isTopLevel())
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
@@ -24,6 +24,6 @@ int major_version ( )
}
const char *description ( )
{
- return "High performance liquid plugin";
+ return "High Performance Liquid";
}