[Ktutorial-commits] SF.net SVN: ktutorial:[275] trunk/ktutorial/ktutorial-editor/src/view/ RemoteOb
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2010-10-17 22:53:27
|
Revision: 275 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=275&view=rev Author: danxuliu Date: 2010-10-17 22:53:21 +0000 (Sun, 17 Oct 2010) Log Message: ----------- Force showing the RemoteObjectChooser before showing the information message box to ensure that the message box gets the proper parent (needed in Qt 4.7, which seems to give a 0 winId to a window if it wasn't shown yet). Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/src/view/RemoteObjectChooser.cpp Modified: trunk/ktutorial/ktutorial-editor/src/view/RemoteObjectChooser.cpp =================================================================== --- trunk/ktutorial/ktutorial-editor/src/view/RemoteObjectChooser.cpp 2010-10-17 22:44:08 UTC (rev 274) +++ trunk/ktutorial/ktutorial-editor/src/view/RemoteObjectChooser.cpp 2010-10-17 22:53:21 UTC (rev 275) @@ -132,6 +132,13 @@ //private slots: void RemoteObjectChooser::handleTargetApplicationStarted() { + if (isHidden()) { + //In Qt 4.7 a window seems to need to be shown to get a winId. If the + //parent of a KMessageBox::information does not have a winId, the + //message box gets no parent. + show(); + } + QString text = i18nc("@label", "<para>The " "<application>KTutorial editor</application> windows will be hidden and only " "the list with the objects in the target application will be shown. It is made " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |