summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Dominic K <mdk@codethink.co.uk>2010-12-08 14:45:00 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2010-12-08 14:45:00 (GMT)
commitb850c43896d60b4dda21b01fdbdb15013cca48fa (patch)
tree51be53c2f3c5600e473fb5a61bb7338537410306 /tools
parentc4f4d801f5dd31ca4c65c70b2245c987ac8ff203 (diff)
downloadQt-b850c43896d60b4dda21b01fdbdb15013cca48fa.zip
Qt-b850c43896d60b4dda21b01fdbdb15013cca48fa.tar.gz
Qt-b850c43896d60b4dda21b01fdbdb15013cca48fa.tar.bz2
Check Qt::WA_TranslucentBackground instead of custom widget property.
Merge-request: 2523 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmeegographicssystemhelper/qmeegographicssystemhelper.cpp5
-rw-r--r--tools/qmeegographicssystemhelper/qmeegographicssystemhelper.h18
2 files changed, 2 insertions, 21 deletions
diff --git a/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.cpp b/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.cpp
index 13e44b8..b660eb3 100644
--- a/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.cpp
+++ b/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.cpp
@@ -153,8 +153,3 @@ void QMeeGoGraphicsSystemHelper::setTranslucent(bool translucent)
ENSURE_RUNNING_MEEGO;
QMeeGoRuntime::setTranslucent(translucent);
}
-
-void QMeeGoGraphicsSystemHelper::setTranslucentWidget(QWidget w, bool translucent)
-{
- w.setProperty("qglTranslucent", QVariant(translucent));
-}
diff --git a/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.h b/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.h
index 3e1333d..6df3c22 100644
--- a/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.h
+++ b/tools/qmeegographicssystemhelper/qmeegographicssystemhelper.h
@@ -182,24 +182,10 @@ public:
When called with true, the base window surface will be translucent and initialized
with QGLFormat.alpha == true.
- This function is *deprecated*. Use ::setTranslucentWidget instead.
+ This function is *deprecated*. Set Qt::WA_TranslucentBackground attribute
+ on the top-level widget *before* you show it instead.
*/
static void setTranslucent(bool translucent);
-
- //! Sets translucency (alpha) on the given top-level widget.
- /*!
- This is a new API for enabling GL translucency on top-level widgets.
- The specified widget needs to be top-level. When the time comes to create
- a window surface for the widget, it'll be created with translucency enabled
- (if translucent is true).
-
- This function has no effect if the widget is already visible or if it's
- not a top-level widget.
-
- This function can be called even if not running MeeGo graphics system. It'll
- have no effect though.
- */
- static void setTranslucentWidget(QWidget w, bool translucent);
};
#endif