diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-04-29 13:41:47 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-04-29 13:41:47 (GMT) |
commit | 065cc545c985f31751edb1b80d577af8c964255f (patch) | |
tree | c853257ecd0b0a65bbdb96e376b449c4e08157dd /src/gui | |
parent | c714ecaf368c9285c2faffb4d1368f7fa79944dd (diff) | |
download | Qt-065cc545c985f31751edb1b80d577af8c964255f.zip Qt-065cc545c985f31751edb1b80d577af8c964255f.tar.gz Qt-065cc545c985f31751edb1b80d577af8c964255f.tar.bz2 |
Some code cleanups after review.
Change these lines of code to either make it more consistent or more
readable after review.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index 8fe88d8..f424e93 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -203,11 +203,11 @@ void QWidgetPrivate::create_sys(WId window, bool initializeWindow, bool destroyO | EPointerFilterMove | EPointerFilterDrag, 0); topExtra->rwindow->EnableVisibilityChangeEvents(); - if (q->testAttribute(Qt::WA_TranslucentBackground)) { + if (!isOpaque) { RWindow *rwindow = static_cast<RWindow*>(topExtra->rwindow); TDisplayMode gotDM = (TDisplayMode)rwindow->SetRequiredDisplayMode(EColor16MA); if (rwindow->SetTransparencyAlphaChannel() == KErrNone) - rwindow->SetBackgroundColor(~0); + rwindow->SetBackgroundColor(TRgb(255, 255, 255, 0)); } } @@ -453,7 +453,7 @@ void QWidgetPrivate::s60UpdateIsOpaque() RWindow *rwindow = static_cast<RWindow*>(topExtra->rwindow); TDisplayMode gotDM = (TDisplayMode)rwindow->SetRequiredDisplayMode(EColor16MA); if (rwindow->SetTransparencyAlphaChannel() == KErrNone) - rwindow->SetBackgroundColor(~0); + rwindow->SetBackgroundColor(TRgb(255, 255, 255, 0)); } else { QTLWExtra *topExtra = topData(); RWindow *rwindow = static_cast<RWindow*>(topExtra->rwindow); |