diff options
author | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2011-01-14 14:56:51 +0200 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2011-01-14 14:57:44 +0200 |
commit | 809de335cd7e1b8c018c60cf25c76bf103ac140d (patch) | |
tree | 79709816d9c7f49a0bb615dbc70fe5a502ddcafc | |
parent | 7535c91ea0934e26e19e8fec23d7b36705381aa5 (diff) |
Changes: Improve documentation of MDialog::appear(deletionPolicy);
RevBy: TrustMe
-rw-r--r-- | src/corelib/widgets/mdialog.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/corelib/widgets/mdialog.h b/src/corelib/widgets/mdialog.h index 17908764..566c3201 100644 --- a/src/corelib/widgets/mdialog.h +++ b/src/corelib/widgets/mdialog.h @@ -564,17 +564,23 @@ public: public Q_SLOTS: /*! - * Shows the dialog on the currently active window and registers it in the - * associated MSceneManager. Uses an animation to show the window. + * \brief Shows the dialog on the currently active window or seperately on its own. * - * If systemModal property is true, it will be displayed as a separate top level - * MWindow regardless of whether there's an active window and the user - * won't be able to switch to any other application or to the home screen until - * the dialog is closed (the home button won't be accessible). + * If isSystem() is true, it will be displayed as a separate top level + * MWindow regardless of whether there's an active window and if isModal() + * is true as well the user also won't be able to switch to any other + * application or to the home screen until that dialog is closed + * (the home button won't be accessible). + * + * \attention If your application has multiple MWindows and isSystem() is false, + * usage of this method is strongly discouraged since it can make a dialog + * appear in an MWindow different from the intended one. That's due to the fact + * that it depends on which MWindow happens to be active when this method is called. + * In such scenarios use either appear(MWindow*) or appear(QGraphicsScene*). * * \param policy Deletion policy, defines the ownership for this window * - * \sa setSystemModal() + * \sa isSystem(), isModal() */ virtual void appear(MSceneWindow::DeletionPolicy policy = KeepWhenDone); |