diff options
author | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2010-01-22 09:08:08 (GMT) |
---|---|---|
committer | Jani Hautakangas <ext-jani.hautakangas@nokia.com> | 2010-01-22 09:11:00 (GMT) |
commit | b22b06debf9d7e964244a0a613354be0ea9e07b7 (patch) | |
tree | 7feb63a4fc260dc886cfda15b9d26d922a78a6fb /src/gui/kernel/qwidget.cpp | |
parent | e575816cd618841e90e8933ff52e40a8581d3328 (diff) | |
download | Qt-b22b06debf9d7e964244a0a613354be0ea9e07b7.zip Qt-b22b06debf9d7e964244a0a613354be0ea9e07b7.tar.gz Qt-b22b06debf9d7e964244a0a613354be0ea9e07b7.tar.bz2 |
Fix for symbian dialog background transparency.
If Avkon components support transparency then dialog background is transparent
enabling rounded corners.
Reviewed-by: Sami Merila
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index 81a9a80..542da5e 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -2026,6 +2026,14 @@ void QWidgetPrivate::updateIsOpaque() } #endif +#ifdef Q_WS_S60 + if (q->windowType() == Qt::Dialog && q->testAttribute(Qt::WA_TranslucentBackground) + && S60->avkonComponentsSupportTransparency()) { + setOpaque(false); + return; + } +#endif + if (q->testAttribute(Qt::WA_OpaquePaintEvent) || q->testAttribute(Qt::WA_PaintOnScreen)) { setOpaque(true); return; |