[Ktutorial-commits] SF.net SVN: ktutorial:[347] trunk/ktutorial/ktutorial-library/src/tutorials /Us
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2012-06-27 11:35:58
|
Revision: 347 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=347&view=rev Author: danxuliu Date: 2012-06-27 11:35:47 +0000 (Wed, 27 Jun 2012) Log Message: ----------- Set the text area window in the UsingKTutorial tutorial to stay on top. This prevents the text area to be hidden when the user clicks on the "continue" button if the application that shows the tutorial is maximized (as when the button is clicked the tutorial widget gets the focus, and the main application window hides the text area window). Modified Paths: -------------- trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp Modified: trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp =================================================================== --- trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp 2012-06-27 09:34:46 UTC (rev 346) +++ trunk/ktutorial/ktutorial-library/src/tutorials/UsingKTutorial.cpp 2012-06-27 11:35:47 UTC (rev 347) @@ -62,7 +62,7 @@ virtual void setup() { QTextEdit* textEdit = new QTextEdit(KTutorial::self()->parentWidget()); textEdit->setAttribute(Qt::WA_DeleteOnClose); - textEdit->setWindowFlags(Qt::Window); + textEdit->setWindowFlags(Qt::Window | Qt::WindowStaysOnTopHint); textEdit->setObjectName("usingKTutorialTextEdit"); textEdit->setText(i18nc("@info/plain Plain text in a QTextEdit", "Look at me! I am the text area!")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |