src/hbcore/gui/hbmainwindow.cpp
changeset 30 80e4d18b72f5
parent 23 e6ad4ef83b23
--- a/src/hbcore/gui/hbmainwindow.cpp	Fri Sep 17 08:32:10 2010 +0300
+++ b/src/hbcore/gui/hbmainwindow.cpp	Mon Oct 04 00:38:12 2010 +0300
@@ -265,6 +265,10 @@
   \internal
  */
 
+#ifdef Q_OS_SYMBIAN
+#define HB_SPLASH_FLICKER_WORKAROUND
+#endif
+
 class HbRootItem : public HbWidget
 {
 public:
@@ -1029,7 +1033,7 @@
                     d->mTheTestUtility = new HbTheTestUtility(this);
                 }
             }
-#ifdef Q_OS_SYMBIAN
+#ifdef HB_SPLASH_FLICKER_WORKAROUND
             // Disable surface transparency unless we were really asked to be transparent.
             // Must be done before destroying the splash screen widget.
             if (!testAttribute(Qt::WA_TranslucentBackground)) {
@@ -1105,7 +1109,7 @@
 
 void HbMainWindow::showEvent(QShowEvent *event)
 {
-#ifdef Q_OS_SYMBIAN
+#ifdef HB_SPLASH_FLICKER_WORKAROUND
     // Enable surface transparency if QWidget did not do it already. This is a
     // workaround for having non-transparent surfaces filled automatically with
     // black color. The showEvent is a suitable place because the native control