VirtualBox

Changeset 79939 in vbox


Ignore:
Timestamp:
Jul 23, 2019 6:17:05 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132360
Message:

FE/Qt: bugref:7720: VirtualBox Manager: Details pane: Make popup editor dialog a Qt::Tool window.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIDialogContainer.h

    r79900 r79939  
    4646    void setWidget(QWidget *pWidget);
    4747
     48public slots:
     49
     50    /** Activates window. */
     51    void sltActivateWindow() { activateWindow(); }
     52
    4853private:
    4954
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp

    r79923 r79939  
    444444        {
    445445            /* Prepare popup: */
    446             QPointer<QIDialogContainer> pPopup = new QIDialogContainer(0, Qt::Popup);
     446            QPointer<QIDialogContainer> pPopup = new QIDialogContainer(0, Qt::Tool);
    447447            if (pPopup)
    448448            {
     
    452452                                              enmRole == AnchorRole_MachineName /* choose name? */,
    453453                                              false /* choose path? */,
    454                                               enmRole == AnchorRole_OSType  /* choose type? */);
     454                                              enmRole == AnchorRole_OSType /* choose type? */);
    455455                if (pEditor)
    456456                {
     
    470470                pPopup->adjustSize();
    471471
     472                // WORKAROUND:
     473                // On Windows, Tool dialogs aren't activated by default by some reason.
     474                // So we have created sltActivateWindow wrapping actual activateWindow
     475                // to fix that annoying issue.
     476                QMetaObject::invokeMethod(pPopup, "sltActivateWindow", Qt::QueuedConnection);
    472477                /* Execute popup, change machine name if confirmed: */
    473478                if (pPopup->exec() == QDialog::Accepted)
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