Changeset 79939 in vbox
- Timestamp:
- Jul 23, 2019 6:17:05 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132360
- 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 46 46 void setWidget(QWidget *pWidget); 47 47 48 public slots: 49 50 /** Activates window. */ 51 void sltActivateWindow() { activateWindow(); } 52 48 53 private: 49 54 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp
r79923 r79939 444 444 { 445 445 /* Prepare popup: */ 446 QPointer<QIDialogContainer> pPopup = new QIDialogContainer(0, Qt:: Popup);446 QPointer<QIDialogContainer> pPopup = new QIDialogContainer(0, Qt::Tool); 447 447 if (pPopup) 448 448 { … … 452 452 enmRole == AnchorRole_MachineName /* choose name? */, 453 453 false /* choose path? */, 454 enmRole == AnchorRole_OSType 454 enmRole == AnchorRole_OSType /* choose type? */); 455 455 if (pEditor) 456 456 { … … 470 470 pPopup->adjustSize(); 471 471 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); 472 477 /* Execute popup, change machine name if confirmed: */ 473 478 if (pPopup->exec() == QDialog::Accepted)
Note:
See TracChangeset
for help on using the changeset viewer.