VirtualBox

Changeset 46323 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 30, 2013 11:51:27 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86094
Message:

FE/Qt: QIDialog: Application-modality support.

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  
    4747}
    4848
    49 int QIDialog::exec(bool fShow /* = true */)
     49int QIDialog::exec(bool fShow /* = true */, bool fApplicationModal /*= false*/)
    5050{
    5151    /* Reset the result-code: */
     
    5959    /* Which is the current window-modality? */
    6060    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);
    6363
    6464    /* Show ourself if requested: */
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialog.h

    r45205 r46323  
    4444
    4545    /* API: Exec stuff: */
    46     int exec(bool fShow = true);
     46    int exec(bool fShow = true, bool fApplicationModal = false);
    4747
    4848protected:
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette