From c714ecaf368c9285c2faffb4d1368f7fa79944dd Mon Sep 17 00:00:00 2001 From: Jason Barron Date: Wed, 29 Apr 2009 11:30:13 +0200 Subject: Undo implementation of setWindowOpacity_sys(). This function was implemented using API from Symbian that will be deprecated. It was never actually suitable anyway since this function cannot be called after the window has been shown and this needs to be a runtime decision for Qt. The solution is to use SetTransparencyAlphaChannel(), but that will come later. --- src/gui/kernel/qwidget_s60.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index a477a09..8fe88d8 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -606,11 +606,9 @@ void QWidgetPrivate::scroll_sys(int dx, int dy, const QRect &r) TRANSPARENCY To a line in the wsini.ini file. */ -void QWidgetPrivate::setWindowOpacity_sys(qreal level) +void QWidgetPrivate::setWindowOpacity_sys(qreal) { - RWindow* rw = static_cast(topData()->rwindow); - if (rw) - rw->SetTransparencyFactor(TRgb::Gray256(255.0 * level)); + // ### TODO: Implement uniform window transparency } void QWidgetPrivate::updateFrameStrut() -- cgit v0.12