Changeset 104251 in vbox
- Timestamp:
- Apr 9, 2024 12:36:47 PM (8 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r103987 r104251 73 73 #include "UINotificationCenter.h" 74 74 #include "UIQObjectStuff.h" 75 #include "UITranslationEventListener.h" 75 76 #include "UIVirtualBoxManager.h" 76 77 #include "UIVirtualBoxManagerWidget.h" … … 117 118 118 119 /** QDialog extension used to ask for a public key for console connection needs. */ 119 class UIAcquirePublicKeyDialog : public Q IWithRetranslateUI<QDialog>120 class UIAcquirePublicKeyDialog : public QDialog 120 121 { 121 122 Q_OBJECT; … … 142 143 void sltRevalidate(); 143 144 144 protected:145 146 145 /** Handles translation event. */ 147 v irtual void retranslateUi() RT_OVERRIDE RT_FINAL;146 void sltRetranslateUI(); 148 147 149 148 private: … … 174 173 175 174 /** QDialog extension used to ask for a cloud machine clone name. */ 176 class UIAcquireCloudMachineCloneNameDialog : public Q IWithRetranslateUI<QDialog>175 class UIAcquireCloudMachineCloneNameDialog : public QDialog 177 176 { 178 177 Q_OBJECT; … … 187 186 QString value() const; 188 187 189 pr otected:188 private slots: 190 189 191 190 /** Handles translation event. */ 192 virtual void retranslateUi() RT_OVERRIDE RT_FINAL; 193 194 private slots: 191 void sltRetranslateUI(); 195 192 196 193 /** Performs revalidation. */ … … 219 216 220 217 UIAcquirePublicKeyDialog::UIAcquirePublicKeyDialog(QWidget *pParent /* = 0 */) 221 : Q IWithRetranslateUI<QDialog>(pParent)218 : QDialog(pParent) 222 219 , m_pHelpViewer(0) 223 220 , m_pTextEditor(0) … … 271 268 } 272 269 273 void UIAcquirePublicKeyDialog:: retranslateUi()270 void UIAcquirePublicKeyDialog::sltRetranslateUI() 274 271 { 275 272 setWindowTitle(tr("Public key")); … … 318 315 prepareEditorContents(); 319 316 /* Apply language settings: */ 320 retranslateUi(); 317 sltRetranslateUI(); 318 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 319 this, &UIAcquirePublicKeyDialog::sltRetranslateUI); 321 320 322 321 /* Resize to suitable size: */ … … 481 480 482 481 UIAcquireCloudMachineCloneNameDialog::UIAcquireCloudMachineCloneNameDialog(QWidget *pParent, const QString &strName) 483 : Q IWithRetranslateUI<QDialog>(pParent)482 : QDialog(pParent) 484 483 , m_strName(strName) 485 484 , m_pEditor(0) … … 500 499 prepareWidgets(); 501 500 /* Apply language settings: */ 502 retranslateUi(); 501 sltRetranslateUI(); 502 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 503 this, &UIAcquireCloudMachineCloneNameDialog::sltRetranslateUI); 503 504 504 505 /* Resize to suitable size: */ … … 538 539 } 539 540 540 void UIAcquireCloudMachineCloneNameDialog:: retranslateUi()541 void UIAcquireCloudMachineCloneNameDialog::sltRetranslateUI() 541 542 { 542 543 setWindowTitle(tr("Clone name")); … … 617 618 /* Ignore for non-active window except for FileOpen event which should be always processed: */ 618 619 if (!isActiveWindow() && pEvent->type() != QEvent::FileOpen) 619 return QMainWindowWithRestorableGeometry AndRetranslateUi::eventFilter(pObject, pEvent);620 return QMainWindowWithRestorableGeometry::eventFilter(pObject, pEvent); 620 621 621 622 /* Ignore for other objects: */ 622 623 if (qobject_cast<QWidget*>(pObject) && 623 624 qobject_cast<QWidget*>(pObject)->window() != this) 624 return QMainWindowWithRestorableGeometry AndRetranslateUi::eventFilter(pObject, pEvent);625 return QMainWindowWithRestorableGeometry::eventFilter(pObject, pEvent); 625 626 626 627 /* Which event do we have? */ … … 639 640 640 641 /* Call to base-class: */ 641 return QMainWindowWithRestorableGeometry AndRetranslateUi::eventFilter(pObject, pEvent);642 return QMainWindowWithRestorableGeometry::eventFilter(pObject, pEvent); 642 643 } 643 644 #endif /* VBOX_WS_MAC */ 644 645 645 void UIVirtualBoxManager:: retranslateUi()646 void UIVirtualBoxManager::sltRetranslateUI() 646 647 { 647 648 /* Set window title: */ … … 697 698 } 698 699 /* Call to base-class: */ 699 return QMainWindowWithRestorableGeometry AndRetranslateUi::event(pEvent);700 return QMainWindowWithRestorableGeometry::event(pEvent); 700 701 } 701 702 … … 703 704 { 704 705 /* Call to base-class: */ 705 QMainWindowWithRestorableGeometry AndRetranslateUi::showEvent(pEvent);706 QMainWindowWithRestorableGeometry::showEvent(pEvent); 706 707 707 708 /* Is polishing required? */ … … 724 725 { 725 726 /* Call to base-class: */ 726 QMainWindowWithRestorableGeometry AndRetranslateUi::closeEvent(pEvent);727 QMainWindowWithRestorableGeometry::closeEvent(pEvent); 727 728 728 729 /* Quit application: */ … … 2396 2397 2397 2398 /* Translate UI: */ 2398 retranslateUi(); 2399 sltRetranslateUI(); 2400 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 2401 this, &UIVirtualBoxManager::sltRetranslateUI); 2399 2402 2400 2403 #ifdef VBOX_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r103549 r104251 39 39 /* GUI includes: */ 40 40 #include "QIWithRestorableGeometry.h" 41 #include "QIWithRetranslateUI.h"42 41 #include "UIAdvancedSettingsDialog.h" 43 42 #include "UICloudMachineSettingsDialog.h" … … 60 59 /* Type definitions: */ 61 60 typedef QIWithRestorableGeometry<QMainWindow> QMainWindowWithRestorableGeometry; 62 typedef QIWithRetranslateUI<QMainWindowWithRestorableGeometry> QMainWindowWithRestorableGeometryAndRetranslateUi;63 61 64 62 /** Singleton QMainWindow extension used as VirtualBox Manager instance. */ 65 class UIVirtualBoxManager : public QMainWindowWithRestorableGeometry AndRetranslateUi63 class UIVirtualBoxManager : public QMainWindowWithRestorableGeometry 66 64 { 67 65 Q_OBJECT; … … 106 104 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 107 105 #endif 108 109 /** Handles translation event. */110 virtual void retranslateUi() RT_OVERRIDE;111 106 112 107 /** Handles any Qt @a pEvent. */ … … 173 168 /** Handles state change for cloud machine with certain @a uId. */ 174 169 void sltHandleCloudMachineStateChange(const QUuid &uId); 170 171 /** Handles translation event. */ 172 void sltRetranslateUI(); 175 173 /** @} */ 176 174 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r104054 r104251 49 49 #include "UITabBar.h" 50 50 #include "QIToolBar.h" 51 #include "UITranslationEventListener.h" 51 52 #include "UIVirtualBoxEventHandler.h" 52 53 #include "UIVirtualMachineItemCloud.h" … … 348 349 } 349 350 350 void UIVirtualBoxManagerWidget:: retranslateUi()351 void UIVirtualBoxManagerWidget::sltRetranslateUI() 351 352 { 352 353 /* Make sure chosen item fetched: */ … … 627 628 628 629 /* Translate UI: */ 629 retranslateUi(); 630 sltRetranslateUI(); 631 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 632 this, &UIVirtualBoxManagerWidget::sltRetranslateUI); 630 633 631 634 /* Make sure current Chooser-pane index fetched: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h
r103023 r104251 37 37 38 38 /* GUI includes: */ 39 #include "QIWithRetranslateUI.h"40 39 #include "UISlidingAnimation.h" 41 40 #include "UIToolPaneGlobal.h" … … 55 54 56 55 /** QWidget extension used as VirtualBox Manager Widget instance. */ 57 class UIVirtualBoxManagerWidget : public Q IWithRetranslateUI<QWidget>56 class UIVirtualBoxManagerWidget : public QWidget 58 57 { 59 58 Q_OBJECT; … … 261 260 /** @} */ 262 261 263 pr otected:262 private slots: 264 263 265 264 /** @name Event handling stuff. 266 265 * @{ */ 267 266 /** Handles translation event. */ 268 virtual void retranslateUi() RT_OVERRIDE; 269 /** @} */ 270 271 private slots: 267 void sltRetranslateUI(); 268 /** @} */ 272 269 273 270 /** @name General stuff. -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItem.h
r98103 r104251 39 39 40 40 /* GUI includes: */ 41 #include "QIWithRetranslateUI.h"42 41 #include "UIManagerDefs.h" 43 42 #include "UISettingsDefs.h" … … 51 50 52 51 /** Virtual Machine item interface. A wrapper caching VM data. */ 53 class UIVirtualMachineItem : public Q IWithRetranslateUI3<QObject>52 class UIVirtualMachineItem : public QObject 54 53 { 55 54 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp
r103710 r104251 37 37 #include "UINotificationCenter.h" 38 38 #include "UIProgressTask.h" 39 #include "UITranslationEventListener.h" 39 40 #include "UIThreadPool.h" 40 41 #include "UIVirtualMachineItemCloud.h" … … 269 270 270 271 /* Retranslate finally: */ 271 retranslateUi(); 272 sltRetranslateUI(); 273 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 274 this, &UIVirtualMachineItemCloud::sltRetranslateUI); 272 275 } 273 276 … … 341 344 } 342 345 343 void UIVirtualMachineItemCloud:: retranslateUi()346 void UIVirtualMachineItemCloud::sltRetranslateUI() 344 347 { 345 348 /* If machine is accessible: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.h
r103803 r104251 128 128 /** @} */ 129 129 130 pr otected:130 private slots: 131 131 132 132 /** @name Event handling. 133 133 * @{ */ 134 134 /** Handles translation event. */ 135 v irtual void retranslateUi() RT_OVERRIDE;135 void sltRetranslateUI(); 136 136 /** @} */ 137 137 138 private slots: 139 140 /** Handles signal about cloud VM info refresh progress is done. */ 141 void sltHandleRefreshCloudMachineInfoDone(); 138 /** Handles signal about cloud VM info refresh progress is done. */ 139 void sltHandleRefreshCloudMachineInfoDone(); 142 140 143 141 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp
r98103 r104251 36 36 #include "UIExtraDataManager.h" 37 37 #include "UIIconPool.h" 38 #include "UITranslationEventListener.h" 38 39 #include "UIVirtualMachineItemLocal.h" 39 40 #ifdef VBOX_WS_MAC … … 160 161 161 162 /* Retranslate finally: */ 162 retranslateUi(); 163 sltRetranslateUI(); 164 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 165 this, &UIVirtualMachineItemLocal::sltRetranslateUI); 163 166 } 164 167 … … 263 266 } 264 267 265 void UIVirtualMachineItemLocal:: retranslateUi()268 void UIVirtualMachineItemLocal::sltRetranslateUI() 266 269 { 267 270 /* This is used in tool-tip generation: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.h
r98103 r104251 117 117 /** @} */ 118 118 119 pr otected:119 private slots: 120 120 121 121 /** @name Event handling. 122 122 * @{ */ 123 123 /** Handles translation event. */ 124 v irtual void retranslateUi() RT_OVERRIDE;124 void sltRetranslateUI(); 125 125 /** @} */ 126 126 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIWelcomePane.cpp
r103094 r104251 36 36 /* GUI includes */ 37 37 #include "QIRichTextLabel.h" 38 #include "QIWithRetranslateUI.h"39 38 #include "UICommon.h" 40 39 #include "UIDesktopWidgetWatchdog.h" 41 40 #include "UIExtraDataManager.h" 42 41 #include "UIIconPool.h" 42 #include "UITranslationEventListener.h" 43 43 #include "UIWelcomePane.h" 44 44 … … 49 49 50 50 UIWelcomePane::UIWelcomePane(QWidget *pParent /* = 0 */) 51 : Q IWithRetranslateUI<QWidget>(pParent)51 : QWidget(pParent) 52 52 , m_pLabelGreetings(0) 53 53 , m_pLabelMode(0) … … 75 75 76 76 /* Call to base-class: */ 77 return Q IWithRetranslateUI<QWidget>::event(pEvent);78 } 79 80 void UIWelcomePane:: retranslateUi()77 return QWidget::event(pEvent); 78 } 79 80 void UIWelcomePane::sltRetranslateUI() 81 81 { 82 82 /* Translate greetings text: */ … … 225 225 226 226 /* Translate finally: */ 227 retranslateUi(); 227 sltRetranslateUI(); 228 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 229 this, &UIWelcomePane::sltRetranslateUI); 230 228 231 /* Update stuff: */ 229 232 updateTextLabels(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIWelcomePane.h
r103094 r104251 37 37 38 38 /* GUI includes: */ 39 #include " QIWithRetranslateUI.h"39 #include "UILibraryDefs.h" 40 40 41 41 /* Forward declarations: */ … … 45 45 46 46 /** QWidget subclass holding Welcome information about VirtualBox. */ 47 class UIWelcomePane : public Q IWithRetranslateUI<QWidget>47 class UIWelcomePane : public QWidget 48 48 { 49 49 Q_OBJECT; … … 59 59 virtual bool event(QEvent *pEvent) RT_OVERRIDE; 60 60 61 /** Handles translation event. */62 virtual void retranslateUi() RT_OVERRIDE;63 64 61 private slots: 65 62 … … 69 66 /** Handles @a pButton click. */ 70 67 void sltHandleButtonClicked(QAbstractButton *pButton); 68 69 /** Handles translation event. */ 70 void sltRetranslateUI(); 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
r98103 r104251 239 239 UIChooserItem::UIChooserItem(UIChooserItem *pParent, UIChooserNode *pNode, 240 240 int iDefaultValue /* = 0 */, int iHoveredValue /* = 100 */) 241 : QI WithRetranslateUI4<QIGraphicsWidget>(pParent)241 : QIGraphicsWidget(pParent) 242 242 , m_pParent(pParent) 243 243 , m_pNode(pNode) -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h
r103988 r104251 41 41 /* GUI includes: */ 42 42 #include "QIGraphicsWidget.h" 43 #include "QIWithRetranslateUI.h"44 43 #include "UIChooserDefs.h" 45 44 … … 84 83 /** QIGraphicsWidget extension used as interface 85 84 * for graphics chooser model/view architecture. */ 86 class UIChooserItem : public QI WithRetranslateUI4<QIGraphicsWidget>85 class UIChooserItem : public QIGraphicsWidget 87 86 { 88 87 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
r102423 r104251 39 39 #include "UIIconPool.h" 40 40 #include "UIImageTools.h" 41 #include "UITranslationEventListener.h" 41 42 #include "UIVirtualBoxManager.h" 42 43 … … 122 123 } 123 124 124 void UIChooserItemGlobal:: retranslateUi()125 void UIChooserItemGlobal::sltRetranslateUI() 125 126 { 126 127 } … … 379 380 380 381 /* Apply language settings: */ 381 retranslateUi(); 382 sltRetranslateUI(); 383 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 384 this, &UIChooserItemGlobal::sltRetranslateUI); 382 385 } 383 386 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.h
r102423 r104251 77 77 /** @name Event-handling stuff. 78 78 * @{ */ 79 /** Handles translation event. */80 virtual void retranslateUi() RT_OVERRIDE;81 82 79 /** Handles show @a pEvent. */ 83 80 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 170 167 /** Handles top-level window remaps. */ 171 168 void sltHandleWindowRemapped(); 169 /** @} */ 170 171 /** @name Event handling stuff. 172 * @{ */ 173 /** Handles translation event. */ 174 void sltRetranslateUI(); 172 175 /** @} */ 173 176 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r101559 r104251 49 49 #include "UIIconPool.h" 50 50 #include "UIImageTools.h" 51 #include "UITranslationEventListener.h" 51 52 #include "UIVirtualBoxManager.h" 52 53 #include "UIVirtualMachineItem.h" … … 206 207 } 207 208 208 void UIChooserItemGroup:: retranslateUi()209 void UIChooserItemGroup::sltRetranslateUI() 209 210 { 210 211 updateToggleButtonToolTip(); … … 1184 1185 1185 1186 /* Apply language settings: */ 1186 retranslateUi(); 1187 sltRetranslateUI(); 1188 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 1189 this, &UIChooserItemGroup::sltRetranslateUI); 1187 1190 1188 1191 /* Initialize non-root items: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.h
r98103 r104251 32 32 #endif 33 33 34 /* Qt includes: */ 35 #include <QWidget> 36 34 37 /* GUI includes: */ 35 38 #include "UIChooserItem.h" … … 130 133 /** @name Event-handling stuff. 131 134 * @{ */ 132 /** Handles translation event. */133 virtual void retranslateUi() RT_OVERRIDE;134 135 135 /** Handles show @a pEvent. */ 136 136 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 236 236 /** Handles group toggle finish for group finally @a fToggled. */ 237 237 void sltGroupToggleFinish(bool fToggled); 238 /** @} */ 239 240 /** @name Event handling stuff. 241 * @{ */ 242 /** Handles translation event. */ 243 void sltRetranslateUI(); 238 244 /** @} */ 239 245 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r102836 r104251 41 41 #include "UIIconPool.h" 42 42 #include "UIImageTools.h" 43 #include "UITranslationEventListener.h" 43 44 #include "UIVirtualBoxManager.h" 44 45 #include "UIVirtualMachineItemCloud.h" … … 178 179 } 179 180 180 void UIChooserItemMachine:: retranslateUi()181 void UIChooserItemMachine::sltRetranslateUI() 181 182 { 182 183 } … … 611 612 612 613 /* Apply language settings: */ 613 retranslateUi(); 614 sltRetranslateUI(); 615 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 616 this, &UIChooserItemMachine::sltRetranslateUI); 614 617 } 615 618 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.h
r98103 r104251 95 95 /** @name Event-handling stuff. 96 96 * @{ */ 97 /** Handles translation event. */98 virtual void retranslateUi() RT_OVERRIDE;99 100 97 /** Handles show @a pEvent. */ 101 98 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 191 188 /** Updates first row maximum width. */ 192 189 void sltUpdateFirstRowMaximumWidth() { updateFirstRowMaximumWidth(); } 190 /** @} */ 191 192 /** @name Event handling stuff. 193 * @{ */ 194 /** Handles translation event. */ 195 void sltRetranslateUI(); 193 196 /** @} */ 194 197 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNode.cpp
r98103 r104251 37 37 38 38 UIChooserNode::UIChooserNode(UIChooserNode *pParent /* = 0 */, bool fFavorite /* = false */) 39 : Q IWithRetranslateUI3<QObject>(pParent)39 : QObject(pParent) 40 40 , m_pParent(pParent) 41 41 , m_fFavorite(fFavorite) -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNode.h
r98103 r104251 38 38 39 39 /* GUI includes: */ 40 #include "QIWithRetranslateUI.h"41 40 #include "UIChooserDefs.h" 42 41 #include "UIChooserItem.h" … … 52 51 * These nodes can be of three types (group, global and machine node). 53 52 * They can be used to compose a tree of nodes loaded from VBox setting. */ 54 class UIChooserNode : public Q IWithRetranslateUI3<QObject>53 class UIChooserNode : public QObject 55 54 { 56 55 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGlobal.cpp
r98103 r104251 29 29 #include "UIChooserAbstractModel.h" 30 30 #include "UIChooserNodeGlobal.h" 31 #include "UITranslationEventListener.h" 31 32 32 33 /* Other VBox includes: */ … … 45 46 46 47 /* Apply language settings: */ 47 retranslateUi(); 48 sltRetranslateUI(); 49 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 50 this, &UIChooserNodeGlobal::sltRetranslateUI); 48 51 } 49 52 … … 58 61 59 62 /* Apply language settings: */ 60 retranslateUi(); 63 sltRetranslateUI(); 64 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 65 this, &UIChooserNodeGlobal::sltRetranslateUI); 61 66 } 62 67 … … 171 176 } 172 177 173 void UIChooserNodeGlobal:: retranslateUi()178 void UIChooserNodeGlobal::sltRetranslateUI() 174 179 { 175 180 /* Translate name & description: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGlobal.h
r98103 r104251 100 100 virtual void sortNodes() RT_OVERRIDE; 101 101 102 pr otected:102 private slots: 103 103 104 104 /** Handles translation event. */ 105 v irtual void retranslateUi() RT_OVERRIDE;105 void sltRetranslateUI(); 106 106 107 107 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.cpp
r100554 r104251 31 31 #include "UIChooserNodeGlobal.h" 32 32 #include "UIChooserNodeMachine.h" 33 #include "UITranslationEventListener.h" 33 34 34 35 /* Other VBox includes: */ … … 53 54 54 55 /* Apply language settings: */ 55 retranslateUi(); 56 sltRetranslateUI(); 57 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 58 this, &UIChooserNodeGroup::sltRetranslateUI); 56 59 } 57 60 … … 73 76 74 77 /* Apply language settings: */ 75 retranslateUi(); 78 sltRetranslateUI(); 79 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 80 this, &UIChooserNodeGroup::sltRetranslateUI); 76 81 } 77 82 … … 311 316 } 312 317 313 void UIChooserNodeGroup:: retranslateUi()318 void UIChooserNodeGroup::sltRetranslateUI() 314 319 { 315 320 /* Update group-item: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.h
r98103 r104251 123 123 QUuid id() const; 124 124 125 pr otected:125 private slots: 126 126 127 127 /** Handles translation event. */ 128 v irtual void retranslateUi() RT_OVERRIDE;128 void sltRetranslateUI(); 129 129 130 130 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.cpp
r101571 r104251 32 32 #include "UIChooserAbstractModel.h" 33 33 #include "UIChooserNodeMachine.h" 34 #include "UITranslationEventListener.h" 34 35 #include "UIVirtualMachineItemCloud.h" 35 36 #include "UIVirtualMachineItemLocal.h" … … 47 48 48 49 /* Apply language settings: */ 49 retranslateUi(); 50 sltRetranslateUI(); 51 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 52 this, &UIChooserNodeMachine::sltRetranslateUI); 50 53 } 51 54 … … 69 72 70 73 /* Apply language settings: */ 71 retranslateUi(); 74 sltRetranslateUI(); 75 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 76 this, &UIChooserNodeMachine::sltRetranslateUI); 72 77 } 73 78 … … 83 88 84 89 /* Apply language settings: */ 85 retranslateUi(); 90 sltRetranslateUI(); 91 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 92 this, &UIChooserNodeMachine::sltRetranslateUI); 86 93 } 87 94 … … 112 119 113 120 /* Apply language settings: */ 114 retranslateUi(); 121 sltRetranslateUI(); 122 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 123 this, &UIChooserNodeMachine::sltRetranslateUI); 115 124 } 116 125 … … 269 278 } 270 279 271 void UIChooserNodeMachine:: retranslateUi()280 void UIChooserNodeMachine::sltRetranslateUI() 272 281 { 273 282 /* Update internal stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.h
r98103 r104251 126 126 bool accessible() const; 127 127 128 pr otected:128 private slots: 129 129 130 130 /** Handles translation event. */ 131 virtual void retranslateUi() RT_OVERRIDE; 132 133 private slots: 131 void sltRetranslateUI(); 134 132 135 133 /** Handles machine state change. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserSearchWidget.cpp
r98103 r104251 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 30 #include <QKeyEvent> 29 31 #include <QStyle> 30 32 #include <QVBoxLayout> … … 37 39 #include "UIIconPool.h" 38 40 #include "UISearchLineEdit.h" 41 #include "UITranslationEventListener.h" 39 42 40 43 UIChooserSearchWidget::UIChooserSearchWidget(QWidget *pParent) 41 : Q IWithRetranslateUI<QWidget>(pParent)44 : QWidget(pParent) 42 45 , m_pLineEdit(0) 43 46 , m_pMainLayout(0) … … 50 53 prepareWidgets(); 51 54 prepareConnections(); 52 retranslateUi(); 55 sltRetranslateUI(); 56 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 57 this, &UIChooserSearchWidget::sltRetranslateUI); 53 58 } 54 59 … … 157 162 } 158 163 159 void UIChooserSearchWidget:: retranslateUi()164 void UIChooserSearchWidget::sltRetranslateUI() 160 165 { 161 166 if (m_pScrollToNextMatchButton) … … 192 197 193 198 /* Call to base-class: */ 194 return Q IWithRetranslateUI<QWidget>::eventFilter(pWatched, pEvent);199 return QWidget::eventFilter(pWatched, pEvent); 195 200 } 196 201 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserSearchWidget.h
r98103 r104251 36 36 37 37 /* GUI includes: */ 38 #include " QIWithRetranslateUI.h"38 #include "UILibraryDefs.h" 39 39 40 40 /* Forward declarations: */ … … 45 45 46 46 /** QWidget extension used as virtual machine search widget in the VM Chooser-pane. */ 47 class UIChooserSearchWidget : public Q IWithRetranslateUI<QWidget>47 class UIChooserSearchWidget : public QWidget 48 48 { 49 49 Q_OBJECT; … … 74 74 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; 75 75 virtual void hideEvent(QHideEvent *pEvent) RT_OVERRIDE; 76 virtual void retranslateUi() RT_OVERRIDE;77 76 virtual bool eventFilter(QObject *pWatched, QEvent *pEvent) RT_OVERRIDE; 78 79 public slots:80 77 81 78 private slots: … … 86 83 /** Emits sigToggleVisibility, */ 87 84 void sltHandleCloseButtonClick(); 85 void sltRetranslateUI(); 88 86 89 87 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.cpp
r102477 r104251 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QAccessibleWidget> 30 31 #include <QScrollBar> … … 36 37 #include "UIChooserView.h" 37 38 #include "UICommon.h" 39 #include "UITranslationEventListener.h" 38 40 39 41 /* Other VBox includes: */ 40 42 #include <iprt/assert.h> 41 42 43 43 44 /** QAccessibleWidget extension used as an accessibility interface for Chooser-view. */ … … 120 121 121 122 UIChooserView::UIChooserView(QWidget *pParent) 122 : QI WithRetranslateUI<QIGraphicsView>(pParent)123 : QIGraphicsView(pParent) 123 124 , m_pChooserModel(0) 124 125 , m_pSearchWidget(0) … … 247 248 } 248 249 249 void UIChooserView:: retranslateUi()250 void UIChooserView::sltRetranslateUI() 250 251 { 251 252 /* Translate this: */ … … 256 257 { 257 258 /* Call to base-class: */ 258 QI WithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);259 QIGraphicsView::resizeEvent(pEvent); 259 260 /* Notify listeners: */ 260 261 emit sigResized(); … … 279 280 280 281 /* Apply language settings: */ 281 retranslateUi(); 282 sltRetranslateUI(); 283 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 284 this, &UIChooserView::sltRetranslateUI); 282 285 } 283 286 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.h
r102477 r104251 34 34 /* GUI includes: */ 35 35 #include "QIGraphicsView.h" 36 #include "QIWithRetranslateUI.h"37 36 38 37 /* Forward declarations: */ … … 41 40 42 41 /** QIGraphicsView extension used as VM chooser pane view. */ 43 class UIChooserView : public QI WithRetranslateUI<QIGraphicsView>42 class UIChooserView : public QIGraphicsView 44 43 { 45 44 Q_OBJECT; … … 96 95 /** @name Event handling stuff. 97 96 * @{ */ 98 /** Handles translation event. */99 virtual void retranslateUi() RT_OVERRIDE;100 101 97 /** Handles resize @a pEvent. */ 102 98 virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE; … … 121 117 /** Handles request to scroll to make search widget @a fVisible. */ 122 118 void sltHandleSearchWidgetVisibilityToggle(bool fVisible); 119 /** @} */ 120 121 /** @name Event handling stuff. 122 * @{ */ 123 /** Handles translation event. */ 124 void sltRetranslateUI(); 123 125 /** @} */ 124 126 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsContextMenu.cpp
r98103 r104251 35 35 #include "UIDetailsContextMenu.h" 36 36 #include "UIDetailsModel.h" 37 37 #include "UITranslationEventListener.h" 38 38 39 39 UIDetailsContextMenu::UIDetailsContextMenu(UIDetailsModel *pModel) 40 : Q IWithRetranslateUI2<QWidget>(0, Qt::Popup)40 : QWidget(0, Qt::Popup) 41 41 , m_pModel(pModel) 42 42 , m_pListWidgetCategories(0) … … 259 259 } 260 260 261 void UIDetailsContextMenu:: retranslateUi()261 void UIDetailsContextMenu::sltRetranslateUI() 262 262 { 263 263 retranslateCategories(); … … 655 655 populateOptions(); 656 656 /* Apply language settings: */ 657 retranslateUi(); 657 sltRetranslateUI(); 658 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 659 this, &UIDetailsContextMenu::sltRetranslateUI); 658 660 } 659 661 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsContextMenu.h
r98103 r104251 32 32 #endif 33 33 34 /* Qt includes: */ 35 #include <QWidget> 36 34 37 /* GUI includes: */ 35 #include "QIWithRetranslateUI.h"36 38 #include "UIExtraDataDefs.h" 37 39 … … 42 44 43 45 /** QWidget subclass used as Details pane context menu. */ 44 class UIDetailsContextMenu : public Q IWithRetranslateUI2<QWidget>46 class UIDetailsContextMenu : public QWidget 45 47 { 46 48 Q_OBJECT; … … 66 68 protected: 67 69 68 /** Handles translation event. */69 virtual void retranslateUi() RT_OVERRIDE;70 71 70 /** Handles translation event for categories list. */ 72 71 void retranslateCategories(); … … 87 86 /** Handles signal about option list-widget @a pItem clicked. */ 88 87 void sltOptionItemClicked(QListWidgetItem *pItem); 88 /** Handles translation event. */ 89 void sltRetranslateUI(); 89 90 90 91 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp
r98103 r104251 43 43 #include "UIMachinePreview.h" 44 44 #include "UIThreadPool.h" 45 #include "UITranslationEventListener.h" 45 46 46 47 /* COM includes: */ … … 116 117 117 118 /* Translate finally: */ 118 retranslateUi(); 119 } 120 121 void UIDetailsElementInterface::retranslateUi() 119 sltRetranslateUI(); 120 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 121 this, &UIDetailsElementInterface::sltRetranslateUI); 122 } 123 124 void UIDetailsElementInterface::sltRetranslateUI() 122 125 { 123 126 /* Assign corresponding name: */ … … 176 179 177 180 /* Translate finally: */ 178 retranslateUi(); 181 sltRetranslateUI(); 182 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 183 this, &UIDetailsElementPreview::sltRetranslateUI); 179 184 } 180 185 … … 204 209 } 205 210 206 void UIDetailsElementPreview:: retranslateUi()211 void UIDetailsElementPreview::sltRetranslateUI() 207 212 { 208 213 /* Assign corresponding name: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.h
r103988 r104251 37 37 /* GUI includes: */ 38 38 #include "UIDetailsElement.h" 39 #include "UILibraryDefs.h" 39 40 #include "UITask.h" 40 41 … … 100 101 protected: 101 102 102 /** Performs translation. */103 virtual void retranslateUi() RT_OVERRIDE;104 105 103 /** Updates appearance. */ 106 104 virtual void updateAppearance() RT_OVERRIDE; … … 113 111 /** Handles the signal about update @a pTask is finished. */ 114 112 virtual void sltUpdateAppearanceFinished(UITask *pTask); 113 114 /** Performs translation. */ 115 void sltRetranslateUI(); 115 116 116 117 private: … … 140 141 void sltPreviewSizeHintChanged(); 141 142 142 private:143 144 143 /** Performs translation. */ 145 virtual void retranslateUi() RT_OVERRIDE; 144 void sltRetranslateUI(); 145 146 private: 146 147 147 148 /** Returns minimum width hint. */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsItem.cpp
r98103 r104251 202 202 203 203 UIDetailsItem::UIDetailsItem(UIDetailsItem *pParent) 204 : QI WithRetranslateUI4<QIGraphicsWidget>(pParent)204 : QIGraphicsWidget(pParent) 205 205 , m_pParent(pParent) 206 206 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsItem.h
r98103 r104251 37 37 /* GUI includes: */ 38 38 #include "QIGraphicsWidget.h" 39 #include "QIWithRetranslateUI.h"40 39 41 40 /* Forward declaration: */ … … 61 60 /** QIGraphicsWidget extension used as interface 62 61 * for graphics details model/view architecture. */ 63 class UIDetailsItem : public QI WithRetranslateUI4<QIGraphicsWidget>62 class UIDetailsItem : public QIGraphicsWidget 64 63 { 65 64 Q_OBJECT; … … 149 148 virtual void sltBuildStep(const QUuid &uStepId, int iStepNumber); 150 149 151 protected:152 153 /** @name Event-handling stuff.154 * @{ */155 /** Handles translation event. */156 virtual void retranslateUi() RT_OVERRIDE {}157 /** @} */158 159 150 private: 160 151 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp
r98103 r104251 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QPainter> 30 31 #include <QStyle> -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsView.cpp
r102477 r104251 28 28 /* Qt includes: */ 29 29 #include <QAccessibleWidget> 30 #include <QApplication> 30 31 #include <QScrollBar> 31 32 … … 36 37 #include "UIDetailsModel.h" 37 38 #include "UIDetailsView.h" 39 #include "UITranslationEventListener.h" 38 40 39 41 /* Other VBox includes: */ … … 134 136 135 137 UIDetailsView::UIDetailsView(UIDetails *pParent) 136 : QI WithRetranslateUI<QIGraphicsView>(pParent)138 : QIGraphicsView(pParent) 137 139 , m_pDetails(pParent) 138 140 , m_iMinimumWidthHint(0) … … 159 161 } 160 162 161 void UIDetailsView:: retranslateUi()163 void UIDetailsView::sltRetranslateUI() 162 164 { 163 165 /* Translate this: */ … … 168 170 { 169 171 /* Call to base-class: */ 170 QI WithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);172 QIGraphicsView::resizeEvent(pEvent); 171 173 /* Notify listeners: */ 172 174 emit sigResized(); … … 188 190 189 191 /* Translate finally: */ 190 retranslateUi(); 192 sltRetranslateUI(); 193 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 194 this, &UIDetailsView::sltRetranslateUI); 191 195 } 192 196 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsView.h
r102477 r104251 34 34 /* GUI includes: */ 35 35 #include "QIGraphicsView.h" 36 #include "QIWithRetranslateUI.h"37 36 38 37 /* Forward declarations: */ … … 40 39 41 40 /* Graphics details-view: */ 42 class UIDetailsView : public QI WithRetranslateUI<QIGraphicsView>41 class UIDetailsView : public QIGraphicsView 43 42 { 44 43 Q_OBJECT; … … 65 64 protected: 66 65 67 /** Handles translation event. */68 virtual void retranslateUi() RT_OVERRIDE;69 70 66 /** Handles resize @a pEvent. */ 71 67 virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE; … … 75 71 /** Updates palette. */ 76 72 void sltUpdatePalette() { preparePalette(); } 73 74 /** Handles translation event. */ 75 void sltRetranslateUI(); 77 76 78 77 private: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIMachinePreview.cpp
r103710 r104251 28 28 /* Qt includes: */ 29 29 #include <QActionGroup> 30 #include <QApplication> 30 31 #include <QGraphicsSceneContextMenuEvent> 31 32 #include <QMenu> … … 35 36 36 37 /* GUI includes: */ 37 #include "UIMachinePreview.h"38 #include "UIVirtualBoxEventHandler.h"39 38 #include "UIExtraDataManager.h" 40 #include "UIImageTools.h"41 39 #include "UIConverter.h" 42 40 #include "UIIconPool.h" 41 #include "UIMachinePreview.h" 42 #include "UIImageTools.h" 43 #include "UITranslationEventListener.h" 44 #include "UIVirtualBoxEventHandler.h" 43 45 44 46 /* COM includes: */ … … 51 53 52 54 UIMachinePreview::UIMachinePreview(QIGraphicsWidget *pParent) 53 : QI WithRetranslateUI4<QIGraphicsWidget>(pParent)55 : QIGraphicsWidget(pParent) 54 56 , m_pUpdateTimer(new QTimer(this)) 55 57 , m_pUpdateTimerMenu(0) … … 90 92 } 91 93 92 void UIMachinePreview:: retranslateUi()94 void UIMachinePreview::sltRetranslateUI() 93 95 { 94 96 /* Translate actions: */ … … 435 437 436 438 /* Retranslate the UI */ 437 retranslateUi(); 439 sltRetranslateUI(); 440 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 441 this, &UIMachinePreview::sltRetranslateUI); 438 442 } 439 443 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIMachinePreview.h
r103803 r104251 36 36 37 37 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h"39 38 #include "UIDetailsItem.h" 40 39 #include "UIExtraDataDefs.h" … … 52 51 53 52 /** QIGraphicsWidget sub-class used as VM Preview widget inside Details pane. */ 54 class UIMachinePreview : public QI WithRetranslateUI4<QIGraphicsWidget>53 class UIMachinePreview : public QIGraphicsWidget 55 54 { 56 55 Q_OBJECT; … … 86 85 /** @name Event-handling stuff. 87 86 * @{ */ 88 /** Handles translation event. */89 virtual void retranslateUi() RT_OVERRIDE;90 91 87 /** Handles resize @a pEvent. */ 92 88 virtual void resizeEvent(QGraphicsSceneResizeEvent *pEvent) RT_OVERRIDE; … … 124 120 /** Handles machine-state change for item with @a uId. */ 125 121 void sltMachineStateChange(const QUuid &uId); 122 /** Handles translation event. */ 123 void sltRetranslateUI(); 126 124 /** @} */ 127 125 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r103710 r104251 43 43 #include "UIToolsHandlerKeyboard.h" 44 44 #include "UIToolsModel.h" 45 #include "UITranslationEventListener.h" 45 46 #include "UIExtraDataDefs.h" 46 47 #include "UIExtraDataManager.h" … … 62 63 63 64 UIToolsModel::UIToolsModel(UIToolClass enmClass, UITools *pParent) 64 : Q IWithRetranslateUI3<QObject>(pParent)65 : QObject(pParent) 65 66 , m_enmClass(enmClass) 66 67 , m_pTools(pParent) … … 383 384 /* Process only scene events: */ 384 385 if (pWatched != scene()) 385 return Q IWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);386 return QObject::eventFilter(pWatched, pEvent); 386 387 387 388 /* Process only item focused by model: */ 388 389 if (scene()->focusItem()) 389 return Q IWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);390 return QObject::eventFilter(pWatched, pEvent); 390 391 391 392 /* Do not handle disabled items: */ 392 393 if (!currentItem()->isEnabled()) 393 return Q IWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);394 return QObject::eventFilter(pWatched, pEvent); 394 395 395 396 /* Checking event-type: */ … … 411 412 412 413 /* Call to base-class: */ 413 return Q IWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);414 } 415 416 void UIToolsModel:: retranslateUi()414 return QObject::eventFilter(pWatched, pEvent); 415 } 416 417 void UIToolsModel::sltRetranslateUI() 417 418 { 418 419 foreach (UIToolsItem *pItem, m_items) … … 450 451 prepareHandlers(); 451 452 /* Apply language settings: */ 452 retranslateUi(); 453 sltRetranslateUI(); 454 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 455 this, &UIToolsModel::sltRetranslateUI); 453 456 } 454 457 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h
r103803 r104251 39 39 40 40 /* GUI includes: */ 41 #include "QIWithRetranslateUI.h"42 41 #include "UIToolsItem.h" 43 42 … … 57 56 58 57 /** QObject extension used as VM Tools-pane model: */ 59 class UIToolsModel : public Q IWithRetranslateUI3<QObject>58 class UIToolsModel : public QObject 60 59 { 61 60 Q_OBJECT; … … 195 194 /** Preprocesses Qt @a pEvent for passed @a pObject. */ 196 195 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 197 198 /** Handles translation event. */199 virtual void retranslateUi() RT_OVERRIDE;200 196 /** @} */ 201 197 … … 206 202 /** Handles focus item destruction. */ 207 203 void sltFocusItemDestroyed(); 204 /** @} */ 205 206 /** @name Event handling stuff. 207 * @{ */ 208 /** Handles translation event. */ 209 void sltRetranslateUI(); 208 210 /** @} */ 209 211 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.cpp
r98103 r104251 36 36 #include "UIToolsModel.h" 37 37 #include "UIToolsView.h" 38 #include "UITranslationEventListener.h" 38 39 39 40 /* Other VBox includes: */ … … 115 116 116 117 UIToolsView::UIToolsView(UITools *pParent) 117 : QI WithRetranslateUI<QIGraphicsView>(pParent)118 : QIGraphicsView(pParent) 118 119 , m_pTools(pParent) 119 120 , m_iMinimumWidthHint(0) … … 171 172 } 172 173 173 void UIToolsView:: retranslateUi()174 void UIToolsView::sltRetranslateUI() 174 175 { 175 176 /* Translate this: */ … … 197 198 198 199 /* Apply language settings: */ 199 retranslateUi(); 200 sltRetranslateUI(); 201 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 202 this, &UIToolsView::sltRetranslateUI); 200 203 } 201 204 … … 211 214 { 212 215 /* Call to base-class: */ 213 QI WithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);216 QIGraphicsView::resizeEvent(pEvent); 214 217 /* Notify listeners: */ 215 218 emit sigResized(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.h
r98103 r104251 34 34 /* GUI includes: */ 35 35 #include "QIGraphicsView.h" 36 #include "QIWithRetranslateUI.h"37 36 38 37 /* Forward declarations: */ … … 40 39 41 40 /** QIGraphicsView extension used as VM Tools-pane view. */ 42 class UIToolsView : public QI WithRetranslateUI<QIGraphicsView>41 class UIToolsView : public QIGraphicsView 43 42 { 44 43 Q_OBJECT; … … 81 80 /** @name Event handling stuff. 82 81 * @{ */ 83 /** Handles translation event. */84 virtual void retranslateUi() RT_OVERRIDE;85 86 82 /** Handles resize @a pEvent. */ 87 83 virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE; 84 /** @} */ 85 86 private slots: 87 88 /** @name Event handling stuff. 89 * @{ */ 90 /** Handles translation event. */ 91 void sltRetranslateUI(); 88 92 /** @} */ 89 93
Note:
See TracChangeset
for help on using the changeset viewer.