diff options
author | John Tapsell <john.tapsell.ext@basyskom.de> | 2010-06-08 22:41:53 +0900 |
---|---|---|
committer | Torsten Rahn <Torsten.Rahn@basyskom.de> | 2010-06-08 15:54:06 +0200 |
commit | bf693e9808cf0907cb95106b6f12f0689195188b (patch) | |
tree | 312c4b370d6b8d874cd5eeb83d9541d8ba88ade9 /plainqt | |
parent | d58b93512b4e07b6feb8ccbc56144b83bbc8c37a (diff) |
Fixes: NB#173114 - Adding QGraphicsProxyWidgets adds windows
RevBy: TrustMe
Details: If a widget is attached to a proxy widget, don't treat it as a window.
Diffstat (limited to 'plainqt')
-rw-r--r-- | plainqt/style/qtmaemo6styleeventfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plainqt/style/qtmaemo6styleeventfilter.cpp b/plainqt/style/qtmaemo6styleeventfilter.cpp index d46e705f..c5420421 100644 --- a/plainqt/style/qtmaemo6styleeventfilter.cpp +++ b/plainqt/style/qtmaemo6styleeventfilter.cpp @@ -61,7 +61,7 @@ bool QtMaemo6StyleEventFilter::eventFilter(QObject *obj, QEvent *event) switch (event->type()) { case QEvent::Show: { if (NULL != widget) { - if (widget->isWindow()) { + if (widget->isWindow() && !widget->graphicsProxyWidget()) { if (QDialog *dialog = qobject_cast<QDialog *>(widget)) { QtMaemo6DialogProxy *dialogProxy = new QtMaemo6DialogProxy(dialog, m_style->m_windowDecoration); dialogProxy->setTitle(widget->windowTitle()); |