Changeset 81258 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 14, 2019 1:13:41 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133953
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 1 deleted
- 6 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r81257 r81258 785 785 src/extensions/QILineEdit.h \ 786 786 src/extensions/QIMainDialog.h \ 787 src/extensions/QIMainWindow.h \ 787 788 src/extensions/QIManagerDialog.h \ 788 789 src/extensions/QIMenu.h \ … … 1266 1267 src/extensions/QILineEdit.cpp \ 1267 1268 src/extensions/QIMainDialog.cpp \ 1269 src/extensions/QIMainWindow.cpp \ 1268 1270 src/extensions/QIManagerDialog.cpp \ 1269 1271 src/extensions/QIMenu.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r81257 r81258 53 53 # include "QIDialogButtonBox.h" 54 54 # include "QIFileDialog.h" 55 # include "QIMainWindow.h" 55 56 # include "QISplitter.h" 56 57 # include "QIWidgetValidator.h" 57 # include "QIWithRestorableGeometry.h"58 58 # include "VBoxUtils.h" 59 59 # include "UIIconPool.h" … … 458 458 459 459 460 /** Q MainWindow extension460 /** QIMainWindow extension 461 461 * providing Extra Data Manager with UI features. */ 462 class UIExtraDataManagerWindow : public QI WithRestorableGeometry<QMainWindow>462 class UIExtraDataManagerWindow : public QIMainWindow 463 463 { 464 464 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r81257 r81258 128 128 /* Ignore for non-active window except for FileOpen event which should be always processed: */ 129 129 if (!isActiveWindow() && pEvent->type() != QEvent::FileOpen) 130 return Q MainWindowWithRestorableGeometryAndRetranslateUi::eventFilter(pObject, pEvent);130 return QIWithRetranslateUI<QIMainWindow>::eventFilter(pObject, pEvent); 131 131 132 132 /* Ignore for other objects: */ 133 133 if (qobject_cast<QWidget*>(pObject) && 134 134 qobject_cast<QWidget*>(pObject)->window() != this) 135 return Q MainWindowWithRestorableGeometryAndRetranslateUi::eventFilter(pObject, pEvent);135 return QIWithRetranslateUI<QIMainWindow>::eventFilter(pObject, pEvent); 136 136 137 137 /* Which event do we have? */ … … 150 150 151 151 /* Call to base-class: */ 152 return Q MainWindowWithRestorableGeometryAndRetranslateUi::eventFilter(pObject, pEvent);152 return QIWithRetranslateUI<QIMainWindow>::eventFilter(pObject, pEvent); 153 153 } 154 154 #endif /* VBOX_WS_MAC */ … … 184 184 } 185 185 /* Call to base-class: */ 186 return Q MainWindowWithRestorableGeometryAndRetranslateUi::event(pEvent);186 return QIWithRetranslateUI<QIMainWindow>::event(pEvent); 187 187 } 188 188 … … 190 190 { 191 191 /* Call to base-class: */ 192 Q MainWindowWithRestorableGeometryAndRetranslateUi::showEvent(pEvent);192 QIWithRetranslateUI<QIMainWindow>::showEvent(pEvent); 193 193 194 194 /* Is polishing required? */ … … 211 211 { 212 212 /* Call to base-class: */ 213 Q MainWindowWithRestorableGeometryAndRetranslateUi::closeEvent(pEvent);213 QIWithRetranslateUI<QIMainWindow>::closeEvent(pEvent); 214 214 215 215 /* Quit application: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r81257 r81258 23 23 24 24 /* Qt includes: */ 25 #include <QMainWindow>26 25 #include <QUrl> 27 26 28 27 /* GUI includes: */ 29 #include "QI WithRestorableGeometry.h"28 #include "QIMainWindow.h" 30 29 #include "QIWithRetranslateUI.h" 31 30 #include "UICommon.h" … … 40 39 41 40 /* Type definitions: */ 42 typedef QIWithRestorableGeometry<QMainWindow> QMainWindowWithRestorableGeometry;43 typedef QIWithRetranslateUI<QMainWindowWithRestorableGeometry> QMainWindowWithRestorableGeometryAndRetranslateUi;44 41 typedef QMap<QString, QIManagerDialog*> VMLogViewerMap; 45 42 46 /** Singleton Q MainWindow extension used as VirtualBox Manager instance. */47 class UIVirtualBoxManager : public Q MainWindowWithRestorableGeometryAndRetranslateUi43 /** Singleton QIMainWindow extension used as VirtualBox Manager instance. */ 44 class UIVirtualBoxManager : public QIWithRetranslateUI<QIMainWindow> 48 45 { 49 46 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r81257 r81258 79 79 80 80 UIVMInformationDialog::UIVMInformationDialog(UIMachineWindow *pMachineWindow) 81 : Q MainWindowWithRestorableGeometryAndRetranslateUi(0)81 : QIWithRetranslateUI<QIMainWindow>(0) 82 82 , m_pTabWidget(0) 83 83 , m_pMachineWindow(pMachineWindow) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.h
r81257 r81258 22 22 #endif 23 23 24 /* Qt includes: */25 #include <QMainWindow>26 27 24 /* GUI includes: */ 28 #include "QI WithRestorableGeometry.h"25 #include "QIMainWindow.h" 29 26 #include "QIWithRetranslateUI.h" 30 27 … … 38 35 class UIMachineWindow; 39 36 40 /* Type definitions: */41 typedef QIWithRestorableGeometry<QMainWindow> QMainWindowWithRestorableGeometry;42 typedef QIWithRetranslateUI<QMainWindowWithRestorableGeometry> QMainWindowWithRestorableGeometryAndRetranslateUi;43 37 44 45 /** QMainWindow subclass providing user 38 /** QIMainWindow subclass providing user 46 39 * with the dialog unifying VM details and statistics. */ 47 class UIVMInformationDialog : public Q MainWindowWithRestorableGeometryAndRetranslateUi40 class UIVMInformationDialog : public QIWithRetranslateUI<QIMainWindow> 48 41 { 49 42 Q_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.