[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenox/konq-embed/src
From:       Stefan Eilers <stefan.eilers () basyskom ! de>
Date:       2006-11-13 13:31:26
Message-ID: 1163424686.934133.9380.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 604616 by eilers:

Fixing problems with download progress dialog: 
The dialog was invisible if the main widget was in fullscreen mode.
Reason: QApplication::mainWidget() returned NULL, this resulted in a
miscalculation of the z level (the altitude) for the progress dialog.
The QTopia documentation says that "showMainDocumentWidget()" is
setting the "mainWidget()"
(see http://doc.trolltech.com/qtopia1.6/html/qpeapplication.html#showMainDocumentWidget).
Once this was right. But, while implementing FastLoading, the call
"setMainWidget()" was removed.

Solution: Readd the "setMainWidget()" call right before the
"showMainDocument()" call. 

Warning: The call "setMainWidget()" was removed because it has side
effects with the FastLoading mechanism (it forces lastWindowClose() to
close the app). As this app isn't fast loaded,
we don't have to care about this right now.


 M  +9 -0      main.cc  


--- trunk/kdenox/konq-embed/src/main.cc #604615:604616
@@ -346,7 +346,16 @@
     bool openedMainWindow = false;
 
 #if defined(_QT_QPE_)
+    // Fixing problems with download progress dialog: The dialog was invisible if konqE was
+    // in fullscreen mode. (se)
+    // The QTopia documentation says that "showMainDocumentWidget()" is setting the "mainWidget()"
+    // (see http://doc.trolltech.com/qtopia1.6/html/qpeapplication.html#showMainDocumentWidget).
+    // Once this was right. But, while implementing FastLoading, the following call was removed:
+    app.setMainWidget( toplevel ); // Set mainWidget()
     app.showMainDocumentWidget( toplevel );
+    if ( app.mainWidget() != toplevel ){
+            qFatal( "Mainwidget was not set!");
+    }
 
     openedMainWindow = ( argc == 3 ) && !strcmp( "-qcop", argv[ 1 ] ) && 
 	               ( toplevel->currentView() != 0 );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic