aboutsummaryrefslogtreecommitdiff
path: root/plainqt
diff options
context:
space:
mode:
authorBernd Lamecker <blam@sepp.nbg.basyskom.de>2010-05-25 14:19:48 +0200
committerTorsten Rahn <Torsten.Rahn@basyskom.de>2010-05-25 17:07:31 +0200
commit764874174fc5fd1142fb5f4d6adf0608574d45a5 (patch)
tree970445436f6250a588aec87dfe401147f9755e9a /plainqt
parent227a37a5667af14ad8c3c7dee4f9f27e198fb19c (diff)
Fixes: NB#170020 Visible window reported as non-visible, impossible to hide
RevBy: TrustMe
Diffstat (limited to 'plainqt')
-rw-r--r--plainqt/style/qtmaemo6style.cpp6
-rw-r--r--plainqt/style/qtmaemo6style_p.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/plainqt/style/qtmaemo6style.cpp b/plainqt/style/qtmaemo6style.cpp
index f38f8bd2..fba2cdd4 100644
--- a/plainqt/style/qtmaemo6style.cpp
+++ b/plainqt/style/qtmaemo6style.cpp
@@ -133,6 +133,8 @@ QtMaemo6StylePrivate::QtMaemo6StylePrivate()
m_menuBar(0),
m_kinetic(0)
{
+ m_excludeClasses.append("QShapedPixmapWidget");
+ m_excludeClasses.append("QTipLabel");
}
QtMaemo6StylePrivate::~QtMaemo6StylePrivate()
@@ -863,6 +865,10 @@ void QtMaemo6Style::polish(QWidget *widget)
if(qobject_cast<QDesktopWidget*>(widget))
return;
+ //Qt internal class, skip this
+ if(d->m_excludeClasses.contains(widget->metaObject()->className()))
+ return;
+
if( !isStyled( widget ) ) {
return;
}
diff --git a/plainqt/style/qtmaemo6style_p.h b/plainqt/style/qtmaemo6style_p.h
index 2a17cd8c..f2771e3f 100644
--- a/plainqt/style/qtmaemo6style_p.h
+++ b/plainqt/style/qtmaemo6style_p.h
@@ -343,6 +343,7 @@ public:
QtMaemo6KineticScrolling* m_kinetic;
+ QList<QString> m_excludeClasses;
};
#endif