Changeset 46323 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 30, 2013 11:51:27 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86094
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.cpp
r45210 r46323 47 47 } 48 48 49 int QIDialog::exec(bool fShow /* = true */ )49 int QIDialog::exec(bool fShow /* = true */, bool fApplicationModal /*= false*/) 50 50 { 51 51 /* Reset the result-code: */ … … 59 59 /* Which is the current window-modality? */ 60 60 Qt::WindowModality oldModality = windowModality(); 61 /* For the exec() time, set this attribute to 'window-modal' : */62 setWindowModality( Qt::WindowModal);61 /* For the exec() time, set this attribute to 'window-modal' or 'application-modal': */ 62 setWindowModality(!fApplicationModal ? Qt::WindowModal : Qt::ApplicationModal); 63 63 64 64 /* Show ourself if requested: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.h
r45205 r46323 44 44 45 45 /* API: Exec stuff: */ 46 int exec(bool fShow = true );46 int exec(bool fShow = true, bool fApplicationModal = false); 47 47 48 48 protected:
Note:
See TracChangeset
for help on using the changeset viewer.