Changeset 104313 in vbox
- Timestamp:
- Apr 12, 2024 1:10:30 PM (8 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 164 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp
r103710 r104313 26 26 */ 27 27 28 /* Qt includes: */ 29 #include <QApplication> 30 28 31 /* GUI includes: */ 29 32 #include "QIMessageBox.h" -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
r104251 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QGraphicsSceneMouseEvent> 30 31 #include <QGraphicsView> -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r104251 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QGraphicsLinearLayout> 30 31 #include <QGraphicsScene> -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r104251 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QGraphicsSceneDragDropEvent> 30 31 #include <QGraphicsView> -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r103781 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QDir> 30 31 #include <QFileInfo> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp
r103580 r104313 68 68 #include "UISettingsWarningPane.h" 69 69 #include "UIShortcutPool.h" 70 #include "UITranslationEventListener.h" 70 71 #ifdef VBOX_WS_MAC 71 72 # include "VBoxUtils.h" … … 726 727 const QString &strCategory, 727 728 const QString &strControl) 728 : Q IWithRetranslateUI<QMainWindow>(pParent)729 : QMainWindow(pParent) 729 730 , m_strCategory(strCategory) 730 731 , m_strControl(strControl) … … 834 835 /* Ignore other than wheel events in this handler: */ 835 836 if (pEvent->type() != QEvent::Wheel) 836 return Q IWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent);837 return QMainWindow::eventFilter(pObject, pEvent); 837 838 838 839 /* Do not touch wheel events for m_pScrollArea or it's children: */ … … 843 844 * all the scrolling will be redirected to m_pScrollViewport: */ 844 845 m_pScrollingTimer->start(); 845 return Q IWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent);846 return QMainWindow::eventFilter(pObject, pEvent); 846 847 } 847 848 … … 873 874 874 875 /* Call to base-class: */ 875 return Q IWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent);876 } 877 878 void UIAdvancedSettingsDialog:: retranslateUi()876 return QMainWindow::eventFilter(pObject, pEvent); 877 } 878 879 void UIAdvancedSettingsDialog::sltRetranslateUI() 879 880 { 880 881 /* Translate mode checkbox: */ … … 909 910 910 911 /* Call to base-class: */ 911 Q IWithRetranslateUI<QMainWindow>::showEvent(pEvent);912 QMainWindow::showEvent(pEvent); 912 913 } 913 914 … … 1339 1340 1340 1341 /* Apply language settings: */ 1341 retranslateUi(); 1342 sltRetranslateUI(); 1343 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 1344 this, &UIAdvancedSettingsDialog::sltRetranslateUI); 1342 1345 } 1343 1346 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h
r102262 r104313 36 36 37 37 /* GUI includes: */ 38 #include "QIWithRetranslateUI.h"39 38 #include "UISettingsDefs.h" 40 39 … … 63 62 * base dialog class for both Global Preferences & Machine Settings 64 63 * dialogs, which encapsulates most of their common functionality. */ 65 class SHARED_LIBRARY_STUFF UIAdvancedSettingsDialog : public Q IWithRetranslateUI<QMainWindow>64 class SHARED_LIBRARY_STUFF UIAdvancedSettingsDialog : public QMainWindow 66 65 { 67 66 Q_OBJECT; … … 110 109 virtual void sltHandleSerializationFinished(); 111 110 111 protected slots: 112 113 /** Handles translation event. */ 114 virtual void sltRetranslateUI(); 115 112 116 protected: 113 117 … … 115 119 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 116 120 117 /** Handles translation event. */118 virtual void retranslateUi() RT_OVERRIDE;119 121 /** Handles show @a pEvent. */ 120 122 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp
r103771 r104313 85 85 } 86 86 87 void UIAdvancedSettingsDialogGlobal:: retranslateUi()87 void UIAdvancedSettingsDialogGlobal::sltRetranslateUI() 88 88 { 89 89 /* Selector itself: */ … … 121 121 122 122 /* Base-class UI translation: */ 123 UIAdvancedSettingsDialog:: retranslateUi();123 UIAdvancedSettingsDialog::sltRetranslateUI(); 124 124 125 125 /* Set dialog's name: */ … … 283 283 284 284 /* Apply language settings: */ 285 retranslateUi();285 sltRetranslateUI(); 286 286 } 287 287 … … 328 328 329 329 /* Apply language settings: */ 330 retranslateUi();330 sltRetranslateUI(); 331 331 332 332 /* Choose page/tab: */ … … 337 337 } 338 338 339 void UIAdvancedSettingsDialogMachine:: retranslateUi()339 void UIAdvancedSettingsDialogMachine::sltRetranslateUI() 340 340 { 341 341 /* Selector itself: */ … … 388 388 389 389 /* Base-class UI translation: */ 390 UIAdvancedSettingsDialog:: retranslateUi();390 UIAdvancedSettingsDialog::sltRetranslateUI(); 391 391 392 392 /* Set dialog's name: */ … … 787 787 788 788 /* Apply language settings: */ 789 retranslateUi();789 sltRetranslateUI(); 790 790 } 791 791 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.h
r103803 r104313 59 59 protected: 60 60 61 /** Handles translation event. */62 virtual void retranslateUi() RT_OVERRIDE;63 64 61 /** Loads the dialog data. */ 65 62 virtual bool load() RT_OVERRIDE; … … 71 68 /** Returns the dialog title. */ 72 69 virtual QString title() const RT_OVERRIDE; 70 71 private slots: 72 73 /** Handles translation event. */ 74 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 73 75 74 76 private: … … 110 112 protected: 111 113 112 /** Handles translation event. */113 virtual void retranslateUi() RT_OVERRIDE;114 115 114 /** Loads the dialog data. */ 116 115 virtual bool load() RT_OVERRIDE; … … 142 141 /** Handles machine data change for machine with certain @a uMachineId. */ 143 142 void sltMachineDataChanged(const QUuid &uMachineId); 143 /** Handles translation event. */ 144 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 144 145 145 146 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.cpp
r102526 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QLabel> 30 31 #include <QPainter> 32 #include <QPainterPath> 33 #include <QPaintEvent> 31 34 #include <QStyle> 32 35 #include <QVariant> … … 186 189 } 187 190 188 void UISettingsPageFrame:: retranslateUi()191 void UISettingsPageFrame::sltRetranslateUI() 189 192 { 190 193 // No NLS tags for now; We are receiving our name through the getter. -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h
r103803 r104313 296 296 protected: 297 297 298 /** Handles translation event. */299 virtual void retranslateUi() RT_OVERRIDE;300 301 298 /** Handles paint @a pEvent. */ 302 299 virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE; 300 301 private slots: 302 303 /** Handles translation event. */ 304 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 303 305 304 306 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp
r103988 r104313 31 31 #include <QAction> 32 32 #include <QActionGroup> 33 #include <QApplication> 33 34 #include <QItemDelegate> 35 #include <QGuiApplication> 34 36 #include <QLayout> 35 37 #include <QPainter> 38 #include <QPainterPath> 36 39 #include <QSortFilterProxyModel> 37 40 #include <QTabWidget> -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp
r98103 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QCloseEvent> 29 30 #include <QHBoxLayout> 30 31 #include <QLabel> … … 39 40 #include "UISettingsPage.h" 40 41 #include "UISettingsSerializer.h" 42 #include "UITranslationEventListener.h" 41 43 42 44 … … 214 216 const QVariant &data, 215 217 const UISettingsPageList &pages) 216 : QI WithRetranslateUI<QIDialog>(pParent)218 : QIDialog(pParent) 217 219 , m_enmDirection(enmDirection) 218 220 , m_data(data) … … 228 230 prepare(); 229 231 /* Translate: */ 230 retranslateUi(); 232 sltRetranslateUI(); 233 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 234 this, &UISettingsSerializerProgress::sltRetranslateUI); 231 235 } 232 236 … … 237 241 238 242 /* Call to base-class: */ 239 return QI WithRetranslateUI<QIDialog>::exec();243 return QIDialog::exec(); 240 244 } 241 245 … … 351 355 } 352 356 353 void UISettingsSerializerProgress:: retranslateUi()357 void UISettingsSerializerProgress::sltRetranslateUI() 354 358 { 355 359 /* Translate operation progress label: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h
r103977 r104313 42 42 /* GUI includes: */ 43 43 #include "QIDialog.h" 44 #include "QIWithRetranslateUI.h"45 44 46 45 /* Forward declarations: */ … … 163 162 /** QIDialog reimplementation used to 164 163 * reflect the settings serialization operation. */ 165 class SHARED_LIBRARY_STUFF UISettingsSerializerProgress : public QI WithRetranslateUI<QIDialog>164 class SHARED_LIBRARY_STUFF UISettingsSerializerProgress : public QIDialog 166 165 { 167 166 Q_OBJECT; … … 195 194 void prepare(); 196 195 197 /** Translate routine: */198 virtual void retranslateUi() RT_OVERRIDE;199 200 196 /** Close event-handler called with the given window system @a pEvent. */ 201 197 virtual void closeEvent(QCloseEvent *pEvent) RT_OVERRIDE; 202 198 203 199 private slots: 200 201 /** Translate routine: */ 202 void sltRetranslateUI(); 204 203 205 204 /** Hides the modal dialog and sets the result code to <i>Rejected</i>. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAccelerationFeaturesEditor.cpp
r101011 r104313 80 80 } 81 81 82 void UIAccelerationFeaturesEditor:: retranslateUi()82 void UIAccelerationFeaturesEditor::sltRetranslateUI() 83 83 { 84 84 if (m_pLabel) … … 120 120 121 121 /* Apply language settings: */ 122 retranslateUi();122 sltRetranslateUI(); 123 123 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAccelerationFeaturesEditor.h
r101011 r104313 67 67 void setMinimumLayoutIndent(int iIndent); 68 68 69 pr otected:69 private slots: 70 70 71 71 /** Handles translation event. */ 72 virtual void retranslateUi() RT_OVERRIDE;72 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 73 73 74 74 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioControllerEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UIAudioControllerEditor:: retranslateUi()79 void UIAudioControllerEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 141 141 142 142 /* Apply language settings: */ 143 retranslateUi();143 sltRetranslateUI(); 144 144 } 145 145 … … 173 173 174 174 /* Retranslate finally: */ 175 retranslateUi();175 sltRetranslateUI(); 176 176 } 177 177 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioControllerEditor.h
r103803 r104313 68 68 protected: 69 69 70 /** Handles translation event. */71 virtual void retranslateUi() RT_OVERRIDE;72 73 70 /** Handles filter change. */ 74 71 virtual void handleFilterChange() RT_OVERRIDE; 72 73 private slots: 74 75 /** Handles translation event. */ 76 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 75 77 76 78 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.cpp
r101498 r104313 95 95 } 96 96 97 void UIAudioFeaturesEditor:: retranslateUi()97 void UIAudioFeaturesEditor::sltRetranslateUI() 98 98 { 99 99 if (m_pLabel) … … 140 140 141 141 /* Apply language settings: */ 142 retranslateUi();142 sltRetranslateUI(); 143 143 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.h
r101011 r104313 65 65 void setMinimumLayoutIndent(int iIndent); 66 66 67 pr otected:67 private slots: 68 68 69 69 /** Handles translation event. */ 70 virtual void retranslateUi() RT_OVERRIDE;70 virtual void sltRetranslateUI() RT_OVERRIDE; 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioHostDriverEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UIAudioHostDriverEditor:: retranslateUi()79 void UIAudioHostDriverEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 136 136 137 137 /* Apply language settings: */ 138 retranslateUi();138 sltRetranslateUI(); 139 139 } 140 140 … … 165 165 166 166 /* Retranslate finally: */ 167 retranslateUi();167 sltRetranslateUI(); 168 168 } 169 169 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioHostDriverEditor.h
r103803 r104313 66 66 void setMinimumLayoutIndent(int iIndent); 67 67 68 pr otected:68 private slots: 69 69 70 70 /** Handles translation event. */ 71 virtual void retranslateUi() RT_OVERRIDE;71 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 72 72 73 73 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.cpp
r101717 r104313 133 133 } 134 134 135 void UIAudioSettingsEditor:: retranslateUi()135 void UIAudioSettingsEditor::sltRetranslateUI() 136 136 { 137 137 if (m_pCheckboxFeature) … … 166 166 167 167 /* Apply language settings: */ 168 retranslateUi();168 sltRetranslateUI(); 169 169 } 170 170 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.h
r103803 r104313 107 107 protected: 108 108 109 /** Handles translation event. */110 virtual void retranslateUi() RT_OVERRIDE;111 112 109 /** Handles filter change. */ 113 110 virtual void handleFilterChange() RT_OVERRIDE; … … 117 114 /** Handles feature toggling. */ 118 115 void sltHandleFeatureToggled(); 116 /** Handles translation event. */ 117 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 119 118 120 119 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAutoCaptureKeyboardEditor.cpp
r101011 r104313 61 61 } 62 62 63 void UIAutoCaptureKeyboardEditor:: retranslateUi()63 void UIAutoCaptureKeyboardEditor::sltRetranslateUI() 64 64 { 65 65 if (m_pLabel) … … 94 94 95 95 /* Apply language settings: */ 96 retranslateUi();96 sltRetranslateUI(); 97 97 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAutoCaptureKeyboardEditor.h
r101011 r104313 54 54 bool value() const; 55 55 56 pr otected:56 private slots: 57 57 58 58 /** Handles translation event. */ 59 virtual void retranslateUi() RT_OVERRIDE;59 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 60 60 61 61 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBaseMemoryEditor.cpp
r103771 r104313 299 299 } 300 300 301 void UIBaseMemoryEditor:: retranslateUi()301 void UIBaseMemoryEditor::sltRetranslateUI() 302 302 { 303 303 if (m_pLabelMemory) … … 428 428 429 429 /* Apply language settings: */ 430 retranslateUi();430 sltRetranslateUI(); 431 431 } 432 432 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBaseMemoryEditor.h
r101011 r104313 73 73 void setMinimumLayoutIndent(int iIndent); 74 74 75 pr otected:75 private slots: 76 76 77 77 /** Handles translation event. */ 78 virtual void retranslateUi() RT_OVERRIDE; 79 80 private slots: 81 78 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 82 79 /** Handles slider value changes. */ 83 80 void sltHandleSliderChange(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp
r104042 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QEvent> 29 30 #include <QGridLayout> 30 31 #include <QHeaderView> … … 39 40 #include "UIIconPool.h" 40 41 #include "QIToolBar.h" 42 #include "UITranslationEventListener.h" 41 43 #include "QITreeWidget.h" 42 44 … … 60 62 KDeviceType deviceType() const; 61 63 64 public slots: 65 62 66 /** Performs item translation. */ 63 v irtual void retranslateUi();67 void sltRetranslateUI(); 64 68 65 69 private: … … 71 75 72 76 /** QITreeWidget subclass used as system settings boot-table. */ 73 class UIBootListWidget : public QI WithRetranslateUI<QITreeWidget>77 class UIBootListWidget : public QITreeWidget 74 78 { 75 79 Q_OBJECT; … … 104 108 virtual QSize minimumSizeHint() const RT_OVERRIDE; 105 109 106 /** Handles translation event. */107 virtual void retranslateUi() RT_OVERRIDE;108 109 110 /** Handles drop @a pEvent. */ 110 111 virtual void dropEvent(QDropEvent *pEvent) RT_OVERRIDE; … … 114 115 virtual QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction, 115 116 Qt::KeyboardModifiers fModifiers) RT_OVERRIDE; 117 118 private slots: 119 120 /** Handles translation event. */ 121 virtual void sltRetranslateUI(); 116 122 117 123 private: … … 141 147 default: break; /* Shut up, MSC! */ 142 148 } 143 retranslateUi(); 149 sltRetranslateUI(); 150 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 151 this, &UIBootListWidgetItem::sltRetranslateUI); 144 152 } 145 153 … … 149 157 } 150 158 151 void UIBootListWidgetItem:: retranslateUi()159 void UIBootListWidgetItem::sltRetranslateUI() 152 160 { 153 161 setText(0, gpConverter->toString(m_enmType)); … … 160 168 161 169 UIBootListWidget::UIBootListWidget(QWidget *pParent /* = 0 */) 162 : QI WithRetranslateUI<QITreeWidget>(pParent)170 : QITreeWidget(pParent) 163 171 { 164 172 prepare(); … … 249 257 } 250 258 251 void UIBootListWidget:: retranslateUi()259 void UIBootListWidget::sltRetranslateUI() 252 260 { 253 261 for (int i = 0; i < topLevelItemCount(); ++i) 254 static_cast<UIBootListWidgetItem*>(topLevelItem(i))-> retranslateUi();262 static_cast<UIBootListWidgetItem*>(topLevelItem(i))->sltRetranslateUI(); 255 263 } 256 264 … … 319 327 connect(this, &UIBootListWidget::currentItemChanged, 320 328 this, &UIBootListWidget::sigRowChanged); 329 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 330 this, &UIBootListWidget::sltRetranslateUI); 321 331 } 322 332 … … 527 537 } 528 538 529 void UIBootOrderEditor:: retranslateUi()539 void UIBootOrderEditor::sltRetranslateUI() 530 540 { 531 541 if (m_pLabel) … … 617 627 updateActionAvailability(); 618 628 /* Apply language settings: */ 619 retranslateUi();629 sltRetranslateUI(); 620 630 } 621 631 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.h
r103803 r104313 117 117 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 118 118 119 private slots: 120 119 121 /** Handles translation event. */ 120 virtual void retranslateUi() RT_OVERRIDE; 121 122 private slots: 122 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 123 123 124 124 /** Handles current item change. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UIChipsetEditor:: retranslateUi()79 void UIChipsetEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 144 144 145 145 /* Apply language settings: */ 146 retranslateUi();146 sltRetranslateUI(); 147 147 } 148 148 … … 176 176 177 177 /* Retranslate finally: */ 178 retranslateUi();178 sltRetranslateUI(); 179 179 } 180 180 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.h
r103803 r104313 73 73 protected: 74 74 75 /** Handles translation event. */76 virtual void retranslateUi() RT_OVERRIDE;77 78 75 /** Handles filter change. */ 79 76 virtual void handleFilterChange() RT_OVERRIDE; 77 78 private slots: 79 80 /** Handles translation event. */ 81 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 80 82 81 83 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIColorThemeEditor.cpp
r101011 r104313 62 62 } 63 63 64 void UIColorThemeEditor:: retranslateUi()64 void UIColorThemeEditor::sltRetranslateUI() 65 65 { 66 66 if (m_pLabel) … … 117 117 118 118 /* Apply language settings: */ 119 retranslateUi();119 sltRetranslateUI(); 120 120 } 121 121 … … 143 143 144 144 /* Retranslate finally: */ 145 retranslateUi();145 sltRetranslateUI(); 146 146 } 147 147 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIColorThemeEditor.h
r101011 r104313 55 55 UIColorThemeType value() const; 56 56 57 pr otected:57 private slots: 58 58 59 59 /** Handles translation event. */ 60 virtual void retranslateUi() RT_OVERRIDE;60 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 61 61 62 62 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDefaultMachineFolderEditor.cpp
r103771 r104313 74 74 } 75 75 76 void UIDefaultMachineFolderEditor:: retranslateUi()76 void UIDefaultMachineFolderEditor::sltRetranslateUI() 77 77 { 78 78 if (m_pLabel) … … 115 115 116 116 /* Apply language settings: */ 117 retranslateUi();117 sltRetranslateUI(); 118 118 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDefaultMachineFolderEditor.h
r103610 r104313 65 65 void setMinimumLayoutIndent(int iIndent); 66 66 67 pr otected:67 private slots: 68 68 69 69 /** Handles translation event. */ 70 virtual void retranslateUi() RT_OVERRIDE;70 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDescriptionEditor.cpp
r102164 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QTextEdit> 30 31 #include <QVBoxLayout> … … 58 59 } 59 60 60 void UIDescriptionEditor:: retranslateUi()61 void UIDescriptionEditor::sltRetranslateUI() 61 62 { 62 63 if (m_pTextEdit) … … 109 110 110 111 /* Apply language settings: */ 111 retranslateUi();112 sltRetranslateUI(); 112 113 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDescriptionEditor.h
r101492 r104313 55 55 protected: 56 56 57 /** Handles translation event. */58 virtual void retranslateUi() RT_OVERRIDE;59 60 57 /** Returns the minimum widget size hint. */ 61 58 virtual QSize minimumSizeHint() const RT_OVERRIDE; 62 59 /** Returns the widget size hint. */ 63 60 virtual QSize sizeHint() const RT_OVERRIDE; 61 62 private slots: 63 64 /** Handles translation event. */ 65 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 64 66 65 67 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDiskEncryptionSettingsEditor.cpp
r101563 r104313 100 100 } 101 101 102 void UIDiskEncryptionSettingsEditor:: retranslateUi()102 void UIDiskEncryptionSettingsEditor::sltRetranslateUI() 103 103 { 104 104 if (m_pCheckboxFeature) … … 150 150 151 151 /* Apply language settings: */ 152 retranslateUi();152 sltRetranslateUI(); 153 153 } 154 154 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDiskEncryptionSettingsEditor.h
r101011 r104313 78 78 QString password2() const; 79 79 80 pr otected:80 private slots: 81 81 82 82 /** Handles translation event. */ 83 virtual void retranslateUi() RT_OVERRIDE; 84 85 private slots: 83 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 86 84 87 85 /** Handles whether VRDE is @a fEnabled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayFeaturesEditor.cpp
r101011 r104313 98 98 } 99 99 100 void UIDisplayFeaturesEditor:: retranslateUi()100 void UIDisplayFeaturesEditor::sltRetranslateUI() 101 101 { 102 102 if (m_pLabel) … … 150 150 151 151 /* Apply language settings: */ 152 retranslateUi();152 sltRetranslateUI(); 153 153 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayFeaturesEditor.h
r101011 r104313 65 65 void setMinimumLayoutIndent(int iIndent); 66 66 67 pr otected:67 private slots: 68 68 69 69 /** Handles translation event. */ 70 virtual void retranslateUi() RT_OVERRIDE;70 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayScreenFeaturesEditor.cpp
r101011 r104313 76 76 } 77 77 78 void UIDisplayScreenFeaturesEditor:: retranslateUi()78 void UIDisplayScreenFeaturesEditor::sltRetranslateUI() 79 79 { 80 80 if (m_pLabel) … … 115 115 116 116 /* Apply language settings: */ 117 retranslateUi();117 sltRetranslateUI(); 118 118 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayScreenFeaturesEditor.h
r101011 r104313 65 65 void setMinimumLayoutIndent(int iIndent); 66 66 67 pr otected:67 private slots: 68 68 69 69 /** Handles translation event. */ 70 virtual void retranslateUi() RT_OVERRIDE;70 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDragAndDropEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UIDragAndDropEditor:: retranslateUi()79 void UIDragAndDropEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 136 136 137 137 /* Apply language settings: */ 138 retranslateUi();138 sltRetranslateUI(); 139 139 } 140 140 … … 165 165 166 166 /* Retranslate finally: */ 167 retranslateUi();167 sltRetranslateUI(); 168 168 } 169 169 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDragAndDropEditor.h
r103803 r104313 66 66 void setMinimumLayoutIndent(int iIndent); 67 67 68 pr otected:68 private slots: 69 69 70 70 /** Handles translation event. */ 71 virtual void retranslateUi() RT_OVERRIDE;71 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 72 72 73 73 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.cpp
r102091 r104313 38 38 /* GUI includes: */ 39 39 #include "UIEditor.h" 40 40 #include "UITranslationEventListener.h" 41 41 42 42 UIEditor::UIEditor(QTabWidget *pTabWidget) … … 45 45 , m_pTabWidget(pTabWidget) 46 46 { 47 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 48 this, &UIEditor::sltRetranslateUI); 47 49 } 48 50 49 51 UIEditor::UIEditor(QWidget *pParent /* = 0 */, bool fShowInBasicMode /* = false */) 50 : Q IWithRetranslateUI<QWidget>(pParent)52 : QWidget(pParent) 51 53 , m_fShowInBasicMode(fShowInBasicMode) 52 54 , m_fInExpertMode(true) 53 55 , m_pTabWidget(0) 54 56 { 57 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 58 this, &UIEditor::sltRetranslateUI); 55 59 } 56 60 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.h
r101867 r104313 32 32 #endif 33 33 34 /* Qt includes: */ 35 #include <QWidget> 36 34 37 /* GUI includes: */ 35 #include " QIWithRetranslateUI.h"38 #include "UILibraryDefs.h" 36 39 37 40 /* Forward declarations: */ … … 39 42 40 43 /** QWidget sub-class used as editor interface. */ 41 class SHARED_LIBRARY_STUFF UIEditor : public Q IWithRetranslateUI<QWidget>44 class SHARED_LIBRARY_STUFF UIEditor : public QWidget 42 45 { 43 46 Q_OBJECT; … … 70 73 const QMap<QString, QVariant> &flags); 71 74 72 protected :75 protected slots: 73 76 74 77 /** Handles translation event. */ 75 virtual void retranslateUi() RT_OVERRIDE {} 78 virtual void sltRetranslateUI(){} 79 80 protected: 76 81 77 82 /** Returns editor description which could be used to filter it in. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIExecutionCapEditor.cpp
r101563 r104313 79 79 } 80 80 81 void UIExecutionCapEditor:: retranslateUi()81 void UIExecutionCapEditor::sltRetranslateUI() 82 82 { 83 83 if (m_pLabelExecCap) … … 218 218 219 219 /* Apply language settings: */ 220 retranslateUi();221 } 220 sltRetranslateUI(); 221 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIExecutionCapEditor.h
r101011 r104313 69 69 void setMinimumLayoutIndent(int iIndent); 70 70 71 pr otected:71 private slots: 72 72 73 73 /** Handles translation event. */ 74 virtual void retranslateUi() RT_OVERRIDE; 75 76 private slots: 77 74 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 78 75 /** Handles slider value changes. */ 79 76 void sltHandleSliderChange(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIFontScaleEditor.cpp
r101563 r104313 90 90 } 91 91 92 void UIFontScaleEditor:: retranslateUi()92 void UIFontScaleEditor::sltRetranslateUI() 93 93 { 94 94 if (m_pLabel) … … 184 184 185 185 prepareScaleFactorMinMax(); 186 retranslateUi();186 sltRetranslateUI(); 187 187 } 188 188 … … 229 229 } 230 230 } 231 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIFontScaleEditor.h
r101011 r104313 64 64 int fontScaleFactor() const; 65 65 66 protected:67 68 /** Handles translation event. */69 virtual void retranslateUi() RT_OVERRIDE;70 71 66 private slots: 72 67 … … 77 72 void sltMonitorComboIndexChanged(int iIndex); 78 73 /** @} */ 74 75 /** Handles translation event. */ 76 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 79 77 80 78 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.cpp
r103771 r104313 78 78 } 79 79 80 void UIGraphicsControllerEditor:: retranslateUi()80 void UIGraphicsControllerEditor::sltRetranslateUI() 81 81 { 82 82 if (m_pLabel) … … 149 149 150 150 /* Apply language settings: */ 151 retranslateUi();151 sltRetranslateUI(); 152 152 } 153 153 … … 181 181 182 182 /* Retranslate finally: */ 183 retranslateUi();183 sltRetranslateUI(); 184 184 } 185 185 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.h
r103803 r104313 73 73 protected: 74 74 75 /** Handles translation event. */76 virtual void retranslateUi() RT_OVERRIDE;77 78 75 /** Handles filter change. */ 79 76 virtual void handleFilterChange() RT_OVERRIDE; 80 77 81 78 private slots: 79 80 /** Handles translation event. */ 81 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 82 82 83 83 /** Handles current index change. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp
r101567 r104313 43 43 #include "UIHostComboEditor.h" 44 44 #include "UIIconPool.h" 45 #include "UITranslationEventListener.h" 45 46 #ifdef VBOX_WS_MAC 46 47 # include "UICocoaApplication.h" … … 458 459 459 460 UIHostComboEditor::UIHostComboEditor(QWidget *pParent) 460 : Q IWithRetranslateUI<QWidget>(pParent)461 : QWidget(pParent) 461 462 { 462 463 /* Prepare: */ … … 464 465 } 465 466 466 void UIHostComboEditor:: retranslateUi()467 void UIHostComboEditor::sltRetranslateUI() 467 468 { 468 469 /* Translate 'clear' tool-button: */ … … 512 513 } 513 514 /* Translate finally: */ 514 retranslateUi(); 515 sltRetranslateUI(); 516 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 517 this, &UIHostComboEditor::sltRetranslateUI); 515 518 } 516 519 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.h
r101567 r104313 39 39 40 40 /* GUI includes: */ 41 #include "QIWithRetranslateUI.h"42 41 #include "UILibraryDefs.h" 43 42 … … 127 126 128 127 /** Host-combo editor widget. */ 129 class SHARED_LIBRARY_STUFF UIHostComboEditor : public Q IWithRetranslateUI<QWidget>128 class SHARED_LIBRARY_STUFF UIHostComboEditor : public QWidget 130 129 { 131 130 Q_OBJECT; … … 142 141 UIHostComboEditor(QWidget *pParent); 143 142 144 pr otected:143 private slots: 145 144 146 145 /** Handles translation event. */ 147 virtual void retranslateUi() RT_OVERRIDE; 148 149 private slots: 146 void sltRetranslateUI(); 150 147 151 148 /** Notifies listener about data should be committed. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHotKeyEditor.cpp
r98103 r104313 34 34 35 35 /* GUI includes; */ 36 #include "QIToolButton.h" 36 37 #include "UIHostComboEditor.h" 37 38 #include "UIHotKeyEditor.h" 38 39 #include "UIIconPool.h" 39 #include " QIToolButton.h"40 #include "UITranslationEventListener.h" 40 41 41 42 … … 127 128 128 129 UIHotKeyEditor::UIHotKeyEditor(QWidget *pParent) 129 : Q IWithRetranslateUI<QWidget>(pParent)130 : QWidget(pParent) 130 131 , m_fIsModifiersAllowed(false) 131 132 , m_pMainLayout(new QHBoxLayout(this)) … … 171 172 172 173 /* Translate finally: */ 173 retranslateUi(); 174 sltRetranslateUI(); 175 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 176 this, &UIHotKeyEditor::sltRetranslateUI); 174 177 } 175 178 … … 237 240 } 238 241 239 void UIHotKeyEditor:: retranslateUi()242 void UIHotKeyEditor::sltRetranslateUI() 240 243 { 241 244 m_pResetButton->setToolTip(tr("Reset shortcut to default")); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHotKeyEditor.h
r98103 r104313 38 38 39 39 /* GUI includes: */ 40 #include "QIWithRetranslateUI.h"41 40 #include "UILibraryDefs.h" 42 41 … … 109 108 110 109 /** QWidget subclass wrapping real hot-key editor. */ 111 class SHARED_LIBRARY_STUFF UIHotKeyEditor : public Q IWithRetranslateUI<QWidget>110 class SHARED_LIBRARY_STUFF UIHotKeyEditor : public QWidget 112 111 { 113 112 Q_OBJECT; … … 136 135 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 137 136 138 /** Handles translation event. */139 virtual void retranslateUi() RT_OVERRIDE;140 141 137 /** Handles key-press @a pEvent. */ 142 138 virtual void keyPressEvent(QKeyEvent *pEvent) RT_OVERRIDE; 143 139 /** Handles key-release @a pEvent. */ 144 140 virtual void keyReleaseEvent(QKeyEvent *pEvent) RT_OVERRIDE; 141 142 private slots: 143 144 /** Handles translation event. */ 145 void sltRetranslateUI(); 145 146 146 147 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.cpp
r103988 r104313 236 236 } 237 237 238 void UILanguageSettingsEditor:: retranslateUi()238 void UILanguageSettingsEditor::sltRetranslateUI() 239 239 { 240 240 /* Translate tree-widget: */ … … 360 360 361 361 /* Apply language settings: */ 362 retranslateUi();362 sltRetranslateUI(); 363 363 } 364 364 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.h
r101075 r104313 57 57 protected: 58 58 59 /** Handles translation event. */60 virtual void retranslateUi() RT_OVERRIDE;61 62 59 /** Handles show @a pEvent. */ 63 60 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 66 63 67 64 private slots: 65 66 /** Handles translation event. */ 67 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 68 68 69 69 /** Handles @a pItem painting with passed @a pPainter. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp
r103710 r104313 128 128 } 129 129 130 void UIMaximumGuestScreenSizeEditor:: retranslateUi()130 void UIMaximumGuestScreenSizeEditor::sltRetranslateUI() 131 131 { 132 132 if (m_pLabelPolicy) … … 247 247 248 248 /* Apply language settings: */ 249 retranslateUi();249 sltRetranslateUI(); 250 250 } 251 251 … … 268 268 269 269 /* Retranslate finally: */ 270 retranslateUi();271 } 272 } 270 sltRetranslateUI(); 271 } 272 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMaximumGuestScreenSizeEditor.h
r101011 r104313 85 85 void setMinimumLayoutIndent(int iIndent); 86 86 87 protected:88 89 /** Handles translation event. */90 virtual void retranslateUi() RT_OVERRIDE;91 92 87 private slots: 93 88 94 89 /** Handles current policy index change. */ 95 90 void sltHandleCurrentPolicyIndexChanged(); 91 /** Handles translation event. */ 92 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 96 93 97 94 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMenuBarEditor.cpp
r101013 r104313 666 666 } 667 667 668 void UIMenuBarEditorWidget:: retranslateUi()668 void UIMenuBarEditorWidget::sltRetranslateUI() 669 669 { 670 670 /* Translate widget itself: */ … … 1048 1048 1049 1049 /* Translate contents: */ 1050 retranslateUi();1050 sltRetranslateUI(); 1051 1051 } 1052 1052 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMenuBarEditor.h
r101013 r104313 156 156 protected: 157 157 158 /** Handles translation event. */159 virtual void retranslateUi() RT_OVERRIDE;160 161 158 /** Handles paint @a pEvent. */ 162 159 virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE; 163 160 164 161 private slots: 162 163 /** Handles translation event. */ 164 virtual void sltRetranslateUI() RT_OVERRIDE; 165 165 166 166 /** Handles configuration change. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.cpp
r101011 r104313 95 95 } 96 96 97 void UIMiniToolbarSettingsEditor:: retranslateUi()97 void UIMiniToolbarSettingsEditor::sltRetranslateUI() 98 98 { 99 99 if (m_pLabel) … … 148 148 149 149 /* Apply language settings: */ 150 retranslateUi();150 sltRetranslateUI(); 151 151 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.h
r101011 r104313 65 65 void setMinimumLayoutIndent(int iIndent); 66 66 67 pr otected:67 private slots: 68 68 69 69 /** Handles translation event. */ 70 virtual void retranslateUi() RT_OVERRIDE;70 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMonitorCountEditor.cpp
r103803 r104313 82 82 } 83 83 84 void UIMonitorCountEditor:: retranslateUi()84 void UIMonitorCountEditor::sltRetranslateUI() 85 85 { 86 86 if (m_pLabel) … … 204 204 205 205 /* Apply language settings: */ 206 retranslateUi();207 } 206 sltRetranslateUI(); 207 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMonitorCountEditor.h
r101011 r104313 66 66 void setMinimumLayoutIndent(int iIndent); 67 67 68 pr otected:68 private slots: 69 69 70 70 /** Handles translation event. */ 71 virtual void retranslateUi() RT_OVERRIDE; 72 73 private slots: 74 71 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 75 72 /** Handles slider value changes. */ 76 73 void sltHandleSliderChange(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMotherboardFeaturesEditor.cpp
r102221 r104313 148 148 } 149 149 150 void UIMotherboardFeaturesEditor:: retranslateUi()150 void UIMotherboardFeaturesEditor::sltRetranslateUI() 151 151 { 152 152 if (m_pLabel) … … 295 295 296 296 /* Apply language settings: */ 297 retranslateUi();298 } 297 sltRetranslateUI(); 298 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMotherboardFeaturesEditor.h
r102221 r104313 90 90 void setMinimumLayoutIndent(int iIndent); 91 91 92 pr otected:92 private slots: 93 93 94 94 /** Handles translation event. */ 95 virtual void retranslateUi() RT_OVERRIDE; 96 97 private slots: 95 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 98 96 99 97 /** Handles 'enable EFI' feature being toggled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp
r103906 r104313 274 274 } 275 275 276 void UINameAndSystemEditor:: retranslateUi()276 void UINameAndSystemEditor::sltRetranslateUI() 277 277 { 278 278 if (m_pLabelName) … … 405 405 prepareWidgets(); 406 406 prepareConnections(); 407 retranslateUi();407 sltRetranslateUI(); 408 408 } 409 409 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.h
r103904 r104313 141 141 protected: 142 142 143 /** Handles translation event. */144 virtual void retranslateUi() RT_OVERRIDE;145 146 143 /** Handles filter change. 147 144 * Reimplement this in subclass to handle various filter changes, … … 151 148 private slots: 152 149 150 /** Handles translation event. */ 151 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 153 152 /** Handles VM OS edition @a iIndex change. */ 154 153 void sltSelectedEditionsChanged(int iIndex); 155 156 154 /** Handles VM OS family @a iIndex change. */ 157 155 void sltFamilyChanged(int iIndex); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkAttachmentEditor.cpp
r103771 r104313 198 198 #endif /* VBOX_WITH_VMNET */ 199 199 200 void UINetworkAttachmentEditor:: retranslateUi()200 void UINetworkAttachmentEditor::sltRetranslateUI() 201 201 { 202 202 /* Translate type label: */ … … 347 347 348 348 /* Apply language settings: */ 349 retranslateUi();349 sltRetranslateUI(); 350 350 } 351 351 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkAttachmentEditor.h
r103803 r104313 102 102 protected: 103 103 104 /** Handles translation event. */105 virtual void retranslateUi() RT_OVERRIDE;106 107 104 /** Handles filter change. */ 108 105 virtual void handleFilterChange() RT_OVERRIDE; … … 110 107 private slots: 111 108 109 /** Handles translation event. */ 110 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 112 111 /** Handles current type change. */ 113 112 void sltHandleCurrentTypeChanged(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.cpp
r103771 r104313 212 212 } 213 213 214 void UINetworkFeaturesEditor:: retranslateUi()214 void UINetworkFeaturesEditor::sltRetranslateUI() 215 215 { 216 216 if (m_pLabelAdapterType) … … 384 384 385 385 /* Apply language settings: */ 386 retranslateUi();386 sltRetranslateUI(); 387 387 } 388 388 … … 416 416 417 417 /* Retranslate finally: */ 418 retranslateUi();418 sltRetranslateUI(); 419 419 } 420 420 } … … 449 449 450 450 /* Retranslate finally: */ 451 retranslateUi();452 } 453 } 451 sltRetranslateUI(); 452 } 453 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.h
r103803 r104313 117 117 void generateMac(); 118 118 119 pr otected:119 private slots: 120 120 121 121 /** Handles translation event. */ 122 virtual void retranslateUi() RT_OVERRIDE;122 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 123 123 124 124 /** Handles filter change. */ 125 125 virtual void handleFilterChange() RT_OVERRIDE; 126 127 private slots:128 126 129 127 /** Handles request to open port forwarding dialog. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkSettingsEditor.cpp
r101717 r104313 205 205 } 206 206 207 void UINetworkSettingsEditor:: retranslateUi()207 void UINetworkSettingsEditor::sltRetranslateUI() 208 208 { 209 209 if (m_pCheckboxFeature) … … 259 259 260 260 /* Apply language settings: */ 261 retranslateUi();261 sltRetranslateUI(); 262 262 } 263 263 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkSettingsEditor.h
r103803 r104313 152 152 protected: 153 153 154 /** Handles translation event. */155 virtual void retranslateUi() RT_OVERRIDE;156 157 154 /** Handles filter change. */ 158 155 virtual void handleFilterChange() RT_OVERRIDE; … … 160 157 private slots: 161 158 159 /** Handles translation event. */ 160 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 162 161 /** Handles feature toggling. */ 163 162 void sltHandleFeatureToggled(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UIParavirtProviderEditor:: retranslateUi()79 void UIParavirtProviderEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 141 141 142 142 /* Apply language settings: */ 143 retranslateUi();143 sltRetranslateUI(); 144 144 } 145 145 … … 173 173 174 174 /* Retranslate finally: */ 175 retranslateUi();175 sltRetranslateUI(); 176 176 } 177 177 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.h
r103803 r104313 68 68 protected: 69 69 70 /** Handles translation event. */71 virtual void retranslateUi() RT_OVERRIDE;72 73 70 /** Handles filter change. */ 74 71 virtual void handleFilterChange() RT_OVERRIDE; 72 73 private slots: 74 75 /** Handles translation event. */ 76 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 75 77 76 78 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIPointingHIDEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UIPointingHIDEditor:: retranslateUi()79 void UIPointingHIDEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 138 138 139 139 /* Apply language settings: */ 140 retranslateUi();140 sltRetranslateUI(); 141 141 } 142 142 … … 167 167 168 168 /* Retranslate finally: */ 169 retranslateUi();169 sltRetranslateUI(); 170 170 } 171 171 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIPointingHIDEditor.h
r103803 r104313 71 71 void setMinimumLayoutIndent(int iIndent); 72 72 73 pr otected:73 private slots: 74 74 75 75 /** Handles translation event. */ 76 virtual void retranslateUi() RT_OVERRIDE;76 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 77 77 78 78 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProcessorFeaturesEditor.cpp
r101011 r104313 105 105 } 106 106 107 void UIProcessorFeaturesEditor:: retranslateUi()107 void UIProcessorFeaturesEditor::sltRetranslateUI() 108 108 { 109 109 if (m_pLabel) … … 158 158 159 159 /* Apply language settings: */ 160 retranslateUi();160 sltRetranslateUI(); 161 161 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProcessorFeaturesEditor.h
r101011 r104313 76 76 void setMinimumLayoutIndent(int iIndent); 77 77 78 pr otected:78 private slots: 79 79 80 80 /** Handles translation event. */ 81 virtual void retranslateUi() RT_OVERRIDE;81 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 82 82 83 83 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.cpp
r102036 r104313 110 110 } 111 111 112 void UIProxyFeaturesEditor:: retranslateUi()112 void UIProxyFeaturesEditor::sltRetranslateUI() 113 113 { 114 114 /* Translate proxy mode editor: */ … … 233 233 234 234 /* Apply language settings: */ 235 retranslateUi();236 } 235 sltRetranslateUI(); 236 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.h
r103803 r104313 72 72 QString proxyHost() const; 73 73 74 pr otected:74 private slots: 75 75 76 76 /** Handles translation event. */ 77 virtual void retranslateUi() RT_OVERRIDE; 78 79 private slots: 77 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 80 78 81 79 /** Handles proxy mode change. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.cpp
r103315 r104313 291 291 } 292 292 293 void UIRecordingSettingsEditor:: retranslateUi()293 void UIRecordingSettingsEditor::sltRetranslateUI() 294 294 { 295 295 m_pCheckboxFeature->setText(tr("&Enable Recording")); … … 443 443 444 444 /* Apply language settings: */ 445 retranslateUi();445 sltRetranslateUI(); 446 446 } 447 447 … … 873 873 874 874 /* Retranslate finally: */ 875 retranslateUi();875 sltRetranslateUI(); 876 876 } 877 877 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.h
r103315 r104313 109 109 QVector<bool> screens() const; 110 110 111 protected: 111 112 private slots: 112 113 113 114 /** Handles translation event. */ 114 virtual void retranslateUi() RT_OVERRIDE; 115 116 private slots: 117 115 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 118 116 /** Handles feature toggling. */ 119 117 void sltHandleFeatureToggled(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIScaleFactorEditor.cpp
r101563 r104313 183 183 } 184 184 185 void UIScaleFactorEditor:: retranslateUi()185 void UIScaleFactorEditor::sltRetranslateUI() 186 186 { 187 187 if (m_pLabel) … … 294 294 295 295 prepareScaleFactorMinMaxValues(); 296 retranslateUi();296 sltRetranslateUI(); 297 297 } 298 298 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIScaleFactorEditor.h
r101011 r104313 73 73 void setMinimumLayoutIndent(int iIndent); 74 74 75 pr otected:75 private slots: 76 76 77 77 /** Handles translation event. */ 78 virtual void retranslateUi() RT_OVERRIDE; 79 80 private slots: 78 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 81 79 82 80 /** @name Internal slots handling respective widget's value update. -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISerialSettingsEditor.cpp
r104043 r104313 39 39 #include "UIGlobalSession.h" 40 40 #include "UISerialSettingsEditor.h" 41 #include "UITranslator.h" 41 42 42 43 /* COM includes: */ … … 191 192 } 192 193 193 void UISerialSettingsEditor:: retranslateUi()194 void UISerialSettingsEditor::sltRetranslateUI() 194 195 { 195 196 if (m_pCheckBoxPort) … … 303 304 304 305 /* Apply language settings: */ 305 retranslateUi();306 sltRetranslateUI(); 306 307 } 307 308 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISerialSettingsEditor.h
r103803 r104313 115 115 QString path() const; 116 116 117 pr otected:117 private slots: 118 118 119 119 /** Handles translation event. */ 120 virtual void retranslateUi() RT_OVERRIDE; 121 122 private slots: 120 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 123 121 124 122 /** Handles port availability being toggled to @a fOn. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedClipboardEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UISharedClipboardEditor:: retranslateUi()79 void UISharedClipboardEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 136 136 137 137 /* Apply language settings: */ 138 retranslateUi();138 sltRetranslateUI(); 139 139 } 140 140 … … 165 165 166 166 /* Retranslate finally: */ 167 retranslateUi();167 sltRetranslateUI(); 168 168 } 169 169 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedClipboardEditor.h
r103803 r104313 66 66 void setMinimumLayoutIndent(int iIndent); 67 67 68 pr otected:68 private slots: 69 69 70 70 /** Handles translation event. */ 71 virtual void retranslateUi() RT_OVERRIDE;71 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 72 72 73 73 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFolderDetailsEditor.cpp
r103710 r104313 44 44 const QStringList &usedNames, 45 45 QWidget *pParent /* = 0 */) 46 : QI WithRetranslateUI2<QIDialog>(pParent)46 : QIDialog(pParent) 47 47 , m_enmType(enmType) 48 48 , m_fUsePermanent(fUsePermanent) … … 128 128 } 129 129 130 void UISharedFolderDetailsEditor:: retranslateUi()130 void UISharedFolderDetailsEditor::sltRetranslateUI() 131 131 { 132 132 switch (m_enmType) … … 233 233 234 234 /* Apply language settings: */ 235 retranslateUi();235 sltRetranslateUI(); 236 236 237 237 /* Validate the initial field values: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFolderDetailsEditor.h
r98103 r104313 34 34 /* GUI includes: */ 35 35 #include "QIDialog.h" 36 #include "QIWithRetranslateUI.h"37 36 38 37 /* Forward declarations: */ … … 44 43 45 44 /** QIDialog subclass used as a shared folders editor. */ 46 class SHARED_LIBRARY_STUFF UISharedFolderDetailsEditor : public QI WithRetranslateUI2<QIDialog>45 class SHARED_LIBRARY_STUFF UISharedFolderDetailsEditor : public QIDialog 47 46 { 48 47 Q_OBJECT; … … 96 95 bool isPermanent() const; 97 96 98 pr otected:97 private slots: 99 98 100 99 /** Handles translation event. */ 101 void retranslateUi() RT_OVERRIDE; 102 103 private slots: 104 100 void sltRetranslateUI(); 105 101 /** Holds signal about folder path selected. */ 106 102 void sltSelectPath(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.cpp
r103977 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QHeaderView> 30 31 #include <QMenu> … … 342 343 } 343 344 344 void UISharedFoldersEditor:: retranslateUi()345 void UISharedFoldersEditor::sltRetranslateUI() 345 346 { 346 347 /* Translate tree-widget: */ … … 628 629 629 630 /* Apply language settings: */ 630 retranslateUi();631 sltRetranslateUI(); 631 632 } 632 633 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.h
r101075 r104313 111 111 protected: 112 112 113 /** Handles translation event. */114 virtual void retranslateUi() RT_OVERRIDE;115 116 113 /** Handles show @a pEvent. */ 117 114 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 121 118 122 119 private slots: 120 121 /** Handles translation event. */ 122 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 123 123 124 124 /** Performs request to adjust tree. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.cpp
r103552 r104313 862 862 } 863 863 864 void UIShortcutConfigurationEditor:: retranslateUi()864 void UIShortcutConfigurationEditor::sltRetranslateUI() 865 865 { 866 866 m_pTabWidget->setTabText(TableIndex_Manager, tr("&VirtualBox Manager")); … … 879 879 880 880 /* Apply language settings: */ 881 retranslateUi();881 sltRetranslateUI(); 882 882 } 883 883 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.h
r101011 r104313 185 185 QString tabNameRuntime() const; 186 186 187 pr otected:187 private slots: 188 188 189 189 /** Handles translation event. */ 190 virtual void retranslateUi() RT_OVERRIDE;190 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 191 191 192 192 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISnapshotFolderEditor.cpp
r103710 r104313 88 88 } 89 89 90 void UISnapshotFolderEditor:: retranslateUi()90 void UISnapshotFolderEditor::sltRetranslateUI() 91 91 { 92 92 if (m_pLabel) … … 125 125 126 126 /* Apply language settings: */ 127 retranslateUi();127 sltRetranslateUI(); 128 128 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISnapshotFolderEditor.h
r101011 r104313 65 65 void setMinimumLayoutIndent(int iIndent); 66 66 67 protected:67 private slots: 68 68 69 69 /** Handles translation event. */ 70 virtual void retranslateUi() RT_OVERRIDE;70 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 71 71 72 72 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStatusBarEditor.cpp
r103987 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QAccessibleWidget> 30 31 #include <QCheckBox> … … 49 50 #include "UIMachineWindow.h" 50 51 #include "UIStatusBarEditor.h" 52 #include "UITranslationEventListener.h" 51 53 52 54 /* Forward declarations: */ … … 60 62 61 63 /** QWidget subclass used as status-bar editor button. */ 62 class UIStatusBarEditorButton : public Q IWithRetranslateUI<QWidget>64 class UIStatusBarEditorButton : public QWidget 63 65 { 64 66 Q_OBJECT; … … 95 97 /** Handles any Qt @a pEvent. */ 96 98 virtual bool event(QEvent *pEvent) RT_OVERRIDE RT_FINAL; 97 98 /** Handles translation event. */99 virtual void retranslateUi() RT_OVERRIDE RT_FINAL;100 99 101 100 /** Handles paint @a pEvent. */ … … 112 111 /** Handles mouse-move @a pEvent. */ 113 112 virtual void mouseMoveEvent(QMouseEvent *pEvent) RT_OVERRIDE RT_FINAL; 113 114 private slots: 115 116 /** Handles translation event. */ 117 void sltRetranslateUI(); 114 118 115 119 private: … … 254 258 255 259 /* Call to base-class: */ 256 return Q IWithRetranslateUI<QWidget>::event(pEvent);257 } 258 259 void UIStatusBarEditorButton:: retranslateUi()260 return QWidget::event(pEvent); 261 } 262 263 void UIStatusBarEditorButton::sltRetranslateUI() 260 264 { 261 265 /* Translate tool-tip: */ … … 387 391 388 392 /* Translate finally: */ 389 retranslateUi(); 393 sltRetranslateUI(); 394 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 395 this, &UIStatusBarEditorButton::sltRetranslateUI); 390 396 } 391 397 … … 494 500 } 495 501 496 void UIStatusBarEditorWidget:: retranslateUi()502 void UIStatusBarEditorWidget::sltRetranslateUI() 497 503 { 498 504 /* Translate widget itself: */ … … 836 842 837 843 /* Translate contents: */ 838 retranslateUi();844 sltRetranslateUI(); 839 845 } 840 846 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStatusBarEditor.h
r101013 r104313 107 107 protected: 108 108 109 /** Handles translation event. */110 virtual void retranslateUi() RT_OVERRIDE;111 112 109 /** Handles paint @a pEvent. */ 113 110 virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE; … … 132 129 /** Handles drag object destroy. */ 133 130 void sltHandleDragObjectDestroy(); 131 132 /** Handles translation event. */ 133 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 134 134 135 135 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.cpp
r103977 r104313 29 29 #include <QAction> 30 30 #include <QAbstractItemModel> 31 #include <QApplication> 31 32 #include <QCheckBox> 32 33 #include <QComboBox> … … 3236 3237 } 3237 3238 3238 void UIStorageSettingsEditor:: retranslateUi()3239 void UIStorageSettingsEditor::sltRetranslateUI() 3239 3240 { 3240 3241 m_pLabelSeparatorLeftPane->setText(tr("&Devices")); … … 4458 4459 4459 4460 /* Apply language settings: */ 4460 retranslateUi();4461 sltRetranslateUI(); 4461 4462 } 4462 4463 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.h
r103803 r104313 223 223 protected: 224 224 225 /** Handles translation event. */226 virtual void retranslateUi() RT_OVERRIDE;227 228 225 /** Handles show @a pEvent. */ 229 226 virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE; … … 234 231 private slots: 235 232 233 /** Handles translation event. */ 234 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 236 235 /** Handles enumeration of medium with @a uMediumId. */ 237 236 void sltHandleMediumEnumerated(const QUuid &uMediumId); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.cpp
r103771 r104313 77 77 } 78 78 79 void UITpmEditor:: retranslateUi()79 void UITpmEditor::sltRetranslateUI() 80 80 { 81 81 if (m_pLabel) … … 142 142 143 143 /* Apply language settings: */ 144 retranslateUi();144 sltRetranslateUI(); 145 145 } 146 146 … … 174 174 175 175 /* Retranslate finally: */ 176 retranslateUi();176 sltRetranslateUI(); 177 177 } 178 178 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.h
r103803 r104313 73 73 protected: 74 74 75 /** Handles translation event. */76 virtual void retranslateUi() RT_OVERRIDE;77 78 75 /** Handles filter change. */ 79 76 virtual void handleFilterChange() RT_OVERRIDE; 77 78 private slots: 79 80 /** Handles translation event. */ 81 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 80 82 81 83 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.cpp
r103771 r104313 74 74 } 75 75 76 void UIUSBControllerEditor:: retranslateUi()76 void UIUSBControllerEditor::sltRetranslateUI() 77 77 { 78 78 if (m_pRadioButtonUSB1) … … 147 147 148 148 /* Apply language settings: */ 149 retranslateUi();149 sltRetranslateUI(); 150 150 } 151 151 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.h
r103803 r104313 66 66 protected: 67 67 68 /** Handles translation event. */69 virtual void retranslateUi() RT_OVERRIDE;70 71 68 /** Handles filter change. */ 72 69 virtual void handleFilterChange() RT_OVERRIDE; 70 71 private slots: 72 73 /** Handles translation event. */ 74 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 73 75 74 76 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFilterDetailsEditor.cpp
r104043 r104313 37 37 #include "QILineEdit.h" 38 38 #include "UIConverter.h" 39 #include "UITranslationEventListener.h" 39 40 #include "UIUSBFilterDetailsEditor.h" 40 41 … … 44 45 45 46 UIUSBFilterDetailsEditor::UIUSBFilterDetailsEditor(QWidget *pParent /* = 0 */) 46 : QI WithRetranslateUI2<QIDialog>(pParent, Qt::Sheet)47 : QIDialog(pParent, Qt::Sheet) 47 48 , m_pLabelName(0) 48 49 , m_pEditorName(0) … … 172 173 } 173 174 174 void UIUSBFilterDetailsEditor:: retranslateUi()175 void UIUSBFilterDetailsEditor::sltRetranslateUI() 175 176 { 176 177 setWindowTitle(tr("USB Filter Details")); … … 255 256 256 257 /* Apply language settings: */ 257 retranslateUi(); 258 sltRetranslateUI(); 259 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 260 this, &UIUSBFilterDetailsEditor::sltRetranslateUI); 258 261 259 262 /* Adjust dialog size: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFilterDetailsEditor.h
r99178 r104313 33 33 34 34 #include "QIDialog.h" 35 #include "QIWithRetranslateUI.h"36 35 #include "UIExtraDataDefs.h" 37 36 … … 43 42 44 43 /** QIDialog subclass used as a USB filter editor. */ 45 class SHARED_LIBRARY_STUFF UIUSBFilterDetailsEditor : public QI WithRetranslateUI2<QIDialog>44 class SHARED_LIBRARY_STUFF UIUSBFilterDetailsEditor : public QIDialog 46 45 { 47 46 Q_OBJECT; … … 97 96 UIRemoteMode remoteMode() const; 98 97 99 pr otected:98 private slots: 100 99 101 100 /** Handles translation event. */ 102 virtual void retranslateUi() RT_OVERRIDE; 103 104 private slots: 101 void sltRetranslateUI(); 105 102 106 103 /** Performs validation for connected sender. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.cpp
r103771 r104313 27 27 28 28 /* Qt includes: */ 29 #include <QApplication> 29 30 #include <QHeaderView> 31 #include <QHelpEvent> 30 32 #include <QMenu> 31 33 #include <QRegularExpression> … … 263 265 } 264 266 265 void UIUSBFiltersEditor:: retranslateUi()267 void UIUSBFiltersEditor::sltRetranslateUI() 266 268 { 267 269 /* Tags: */ … … 520 522 521 523 /* Apply language settings: */ 522 retranslateUi();524 sltRetranslateUI(); 523 525 } 524 526 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.h
r101011 r104313 117 117 QList<UIDataUSBFilter> value() const; 118 118 119 pr otected:119 private slots: 120 120 121 121 /** Handles translation event. */ 122 virtual void retranslateUi() RT_OVERRIDE; 123 124 private slots: 125 122 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 126 123 /** Handles @a pCurrentItem change. */ 127 124 void sltHandleCurrentItemChange(QTreeWidgetItem *pCurrentItem); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.cpp
r101230 r104313 102 102 } 103 103 104 void UIUSBSettingsEditor:: retranslateUi()104 void UIUSBSettingsEditor::sltRetranslateUI() 105 105 { 106 106 if (m_pCheckboxFeature) … … 127 127 128 128 /* Apply language settings: */ 129 retranslateUi();129 sltRetranslateUI(); 130 130 } 131 131 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.h
r103803 r104313 91 91 /** @} */ 92 92 93 pr otected:93 private slots: 94 94 95 95 /** Handles translation event. */ 96 virtual void retranslateUi() RT_OVERRIDE; 97 98 private slots: 96 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 99 97 100 98 /** Handles feature toggling. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUpdateSettingsEditor.cpp
r102037 r104313 67 67 } 68 68 69 void UIUpdateSettingsEditor:: retranslateUi()69 void UIUpdateSettingsEditor::sltRetranslateUI() 70 70 { 71 71 /* Translate check-box: */ … … 160 160 161 161 /* Apply language settings: */ 162 retranslateUi();162 sltRetranslateUI(); 163 163 } 164 164 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUpdateSettingsEditor.h
r101717 r104313 63 63 protected: 64 64 65 /** Handles translation event. */66 virtual void retranslateUi() RT_OVERRIDE;67 68 65 /** Handles filter change. */ 69 66 virtual void handleFilterChange() RT_OVERRIDE; … … 75 72 /** Handles update period change. */ 76 73 void sltHandleUpdatePeriodChange(); 74 /** Handles translation event. */ 75 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 77 76 78 77 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDEAuthLibraryEditor.cpp
r103771 r104313 73 73 } 74 74 75 void UIVRDEAuthLibraryEditor:: retranslateUi()75 void UIVRDEAuthLibraryEditor::sltRetranslateUI() 76 76 { 77 77 if (m_pLabel) … … 113 113 114 114 /* Apply language settings: */ 115 retranslateUi();115 sltRetranslateUI(); 116 116 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDEAuthLibraryEditor.h
r101011 r104313 60 60 void setMinimumLayoutIndent(int iIndent); 61 61 62 pr otected:62 private slots: 63 63 64 64 /** Handles translation event. */ 65 virtual void retranslateUi() RT_OVERRIDE;65 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 66 66 67 67 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDESettingsEditor.cpp
r101011 r104313 152 152 } 153 153 154 void UIVRDESettingsEditor:: retranslateUi()154 void UIVRDESettingsEditor::sltRetranslateUI() 155 155 { 156 156 if (m_pCheckboxFeature) … … 212 212 213 213 /* Apply language settings: */ 214 retranslateUi();214 sltRetranslateUI(); 215 215 } 216 216 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDESettingsEditor.h
r103803 r104313 88 88 bool isMultipleConnectionsAllowed() const; 89 89 90 protected: 90 91 private slots: 91 92 92 93 /** Handles translation event. */ 93 virtual void retranslateUi() RT_OVERRIDE; 94 95 private slots: 94 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 96 95 97 96 /** Handles whether VRDE is @a fEnabled. */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.cpp
r103771 r104313 168 168 } 169 169 170 void UIVideoMemoryEditor:: retranslateUi()170 void UIVideoMemoryEditor::sltRetranslateUI() 171 171 { 172 172 if (m_pLabelMemory) … … 310 310 311 311 /* Apply language settings: */ 312 retranslateUi();312 sltRetranslateUI(); 313 313 } 314 314 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.h
r103803 r104313 85 85 void setMinimumLayoutIndent(int iIndent); 86 86 87 pr otected:87 private slots: 88 88 89 89 /** Handles translation event. */ 90 virtual void retranslateUi() RT_OVERRIDE; 91 92 private slots: 93 90 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 94 91 /** Handles slider value changes. */ 95 92 void sltHandleSliderChange(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.cpp
r103803 r104313 81 81 } 82 82 83 void UIVirtualCPUEditor:: retranslateUi()83 void UIVirtualCPUEditor::sltRetranslateUI() 84 84 { 85 85 if (m_pLabelVCPU) … … 221 221 222 222 /* Apply language settings: */ 223 retranslateUi();224 } 223 sltRetranslateUI(); 224 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.h
r101011 r104313 69 69 void setMinimumLayoutIndent(int iIndent); 70 70 71 pr otected:71 private slots: 72 72 73 73 /** Handles translation event. */ 74 virtual void retranslateUi() RT_OVERRIDE; 75 76 private slots: 77 74 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 78 75 /** Handles slider value changes. */ 79 76 void sltHandleSliderChange(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.cpp
r103710 r104313 86 86 } 87 87 88 void UIVisualStateEditor:: retranslateUi()88 void UIVisualStateEditor::sltRetranslateUI() 89 89 { 90 90 if (m_pLabel) … … 145 145 146 146 /* Apply language settings: */ 147 retranslateUi();147 sltRetranslateUI(); 148 148 } 149 149 … … 186 186 187 187 /* Retranslate finally: */ 188 retranslateUi();188 sltRetranslateUI(); 189 189 } 190 190 } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.h
r101011 r104313 70 70 void setMinimumLayoutIndent(int iIndent); 71 71 72 pr otected:72 private slots: 73 73 74 74 /** Handles translation event. */ 75 virtual void retranslateUi() RT_OVERRIDE;75 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 76 76 77 77 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.cpp
r101717 r104313 190 190 } 191 191 192 void UIGlobalSettingsDisplay:: retranslateUi()192 void UIGlobalSettingsDisplay::sltRetranslateUI() 193 193 { 194 194 updateMinimumLayoutHint(); … … 210 210 211 211 /* Apply language settings: */ 212 retranslateUi();212 sltRetranslateUI(); 213 213 } 214 214 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.h
r101717 r104313 74 74 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 75 75 76 /** Handles translation event. */77 virtual void retranslateUi() RT_OVERRIDE;78 79 76 /** Handles filter change. */ 80 77 virtual void handleFilterChange() RT_OVERRIDE; 78 79 private slots: 80 81 /** Handles translation event. */ 82 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 81 83 82 84 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp
r103710 r104313 181 181 } 182 182 183 void UIGlobalSettingsGeneral:: retranslateUi()183 void UIGlobalSettingsGeneral::sltRetranslateUI() 184 184 { 185 185 updateMinimumLayoutHint(); … … 201 201 202 202 /* Apply language settings: */ 203 retranslateUi();203 sltRetranslateUI(); 204 204 } 205 205 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h
r103610 r104313 75 75 virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE; 76 76 77 /** Handles translation event. */78 virtual void retranslateUi() RT_OVERRIDE;79 80 77 /** Handles filter change. */ 81 78 virtual void handleFilterChange() RT_OVERRIDE; 79 80 private slots: 81 82 /** Handles translation event. */ 83 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 82 84 83 85 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp
r101241 r104313 37 37 #include "UIShortcutPool.h" 38 38 #include "UITranslator.h" 39 40 39 41 40 /** Global settings: Input page data structure. */ … … 204 203 } 205 204 206 void UIGlobalSettingsInput:: retranslateUi()205 void UIGlobalSettingsInput::sltRetranslateUI() 207 206 { 208 207 } … … 218 217 219 218 /* Apply language settings: */ 220 retranslateUi();219 sltRetranslateUI(); 221 220 } 222 221 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h
r101241 r104313 75 75 virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE; 76 76 77 private slots: 78 77 79 /** Handles translation event. */ 78 virtual void retranslateUi() RT_OVERRIDE;80 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 79 81 80 82 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInterface.cpp
r101230 r104313 145 145 } 146 146 147 void UIGlobalSettingsInterface:: retranslateUi()147 void UIGlobalSettingsInterface::sltRetranslateUI() 148 148 { 149 149 } … … 159 159 160 160 /* Apply language settings: */ 161 retranslateUi();161 sltRetranslateUI(); 162 162 } 163 163 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInterface.h
r101053 r104313 71 71 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 72 72 73 private slots: 74 73 75 /** Handles translation event. */ 74 virtual void retranslateUi() RT_OVERRIDE;76 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 75 77 76 78 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
r101230 r104313 142 142 } 143 143 144 void UIGlobalSettingsLanguage:: retranslateUi()144 void UIGlobalSettingsLanguage::sltRetranslateUI() 145 145 { 146 146 } … … 156 156 157 157 /* Apply language settings: */ 158 retranslateUi();158 sltRetranslateUI(); 159 159 } 160 160 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.h
r101053 r104313 71 71 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 72 72 73 private slots: 73 74 /** Handles translation event. */ 74 virtual void retranslateUi() RT_OVERRIDE;75 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 75 76 76 77 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp
r101241 r104313 207 207 } 208 208 209 void UIGlobalSettingsProxy:: retranslateUi()209 void UIGlobalSettingsProxy::sltRetranslateUI() 210 210 { 211 211 } … … 221 221 222 222 /* Apply language settings: */ 223 retranslateUi();223 sltRetranslateUI(); 224 224 } 225 225 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.h
r101241 r104313 75 75 virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE; 76 76 77 private slots: 78 77 79 /** Handles translation event. */ 78 virtual void retranslateUi() RT_OVERRIDE;80 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 79 81 80 82 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
r101230 r104313 145 145 } 146 146 147 void UIGlobalSettingsUpdate:: retranslateUi()147 void UIGlobalSettingsUpdate::sltRetranslateUI() 148 148 { 149 149 } … … 159 159 160 160 /* Apply language settings: */ 161 retranslateUi();161 sltRetranslateUI(); 162 162 } 163 163 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.h
r101053 r104313 72 72 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 73 73 74 private slots: 75 74 76 /** Handles translation event. */ 75 virtual void retranslateUi() RT_OVERRIDE;77 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 76 78 77 79 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp
r101230 r104313 189 189 } 190 190 191 void UIMachineSettingsAudio:: retranslateUi()191 void UIMachineSettingsAudio::sltRetranslateUI() 192 192 { 193 193 } … … 216 216 217 217 /* Apply language settings: */ 218 retranslateUi();218 sltRetranslateUI(); 219 219 } 220 220 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.h
r98103 r104313 71 71 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 72 72 73 /** Handles translation event. */74 virtual void retranslateUi() RT_OVERRIDE;75 76 73 /** Performs final page polishing. */ 77 74 virtual void polishPage() RT_OVERRIDE; 75 76 private slots: 77 78 /** Handles translation event. */ 79 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 78 80 79 81 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r103771 r104313 752 752 } 753 753 754 void UIMachineSettingsDisplay:: retranslateUi()754 void UIMachineSettingsDisplay::sltRetranslateUI() 755 755 { 756 756 /* Translate tab-widget: */ … … 844 844 845 845 /* Apply language settings: */ 846 retranslateUi();846 sltRetranslateUI(); 847 847 } 848 848 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h
r103803 r104313 102 102 virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE; 103 103 104 /** Handles translation event. */105 virtual void retranslateUi() RT_OVERRIDE;106 107 104 /** Handles filter change. */ 108 105 virtual void handleFilterChange() RT_OVERRIDE; … … 121 118 void sltHandle3DAccelerationFeatureStateChange(); 122 119 #endif 120 /** Handles translation event. */ 121 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 123 122 124 123 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r103771 r104313 459 459 } 460 460 461 void UIMachineSettingsGeneral:: retranslateUi()461 void UIMachineSettingsGeneral::sltRetranslateUI() 462 462 { 463 463 m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabBasic), tr("Basi&c")); … … 525 525 526 526 /* Apply language settings: */ 527 retranslateUi();527 sltRetranslateUI(); 528 528 } 529 529 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h
r101752 r104313 86 86 virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE; 87 87 88 /** Handles translation event. */89 virtual void retranslateUi() RT_OVERRIDE;90 91 88 /** Handles filter change. */ 92 89 virtual void handleFilterChange() RT_OVERRIDE; … … 101 98 /** Handles encryption password change. */ 102 99 void sltHandleEncryptionPasswordChanged(); 100 /** Handles translation event. */ 101 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 103 102 104 103 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp
r103552 r104313 333 333 } 334 334 335 void UIMachineSettingsInterface:: retranslateUi()335 void UIMachineSettingsInterface::sltRetranslateUI() 336 336 { 337 337 updateMinimumLayoutHint(); … … 369 369 370 370 /* Apply language settings: */ 371 retranslateUi();371 sltRetranslateUI(); 372 372 } 373 373 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h
r101717 r104313 76 76 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 77 77 78 /** Handles translation event. */79 virtual void retranslateUi() RT_OVERRIDE;80 81 78 /** Handles filter change. */ 82 79 virtual void handleFilterChange() RT_OVERRIDE; … … 84 81 /** Performs final page polishing. */ 85 82 virtual void polishPage() RT_OVERRIDE; 83 84 private slots: 85 86 /** Handles translation event. */ 87 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 86 88 87 89 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r103771 r104313 278 278 279 279 /* Apply language settings: */ 280 retranslateUi();280 sltRetranslateUI(); 281 281 282 282 /* Polish page finally: */ … … 335 335 } 336 336 337 void UIMachineSettingsNetwork:: retranslateUi()337 void UIMachineSettingsNetwork::sltRetranslateUI() 338 338 { 339 339 /* Sanity check: */ … … 434 434 435 435 /* Apply language settings: */ 436 retranslateUi();436 sltRetranslateUI(); 437 437 } 438 438 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h
r101717 r104313 98 98 virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE; 99 99 100 /** Handles translation event. */101 virtual void retranslateUi() RT_OVERRIDE;102 103 100 /** Handles filter change. */ 104 101 virtual void handleFilterChange() RT_OVERRIDE; … … 111 108 /** Handles adapter alternative name change. */ 112 109 void sltHandleAlternativeNameChange(); 110 111 /** Handles translation event. */ 112 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 113 113 114 114 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp
r100896 r104313 31 31 32 32 /* GUI includes: */ 33 #include "QIDialogButtonBox.h" 33 34 #include "UIDesktopWidgetWatchdog.h" 34 35 #include "UIMachineSettingsPortForwardingDlg.h" 35 36 #include "UIIconPool.h" 36 37 #include "UIMessageCenter.h" 37 #include "QIDialogButtonBox.h" 38 38 #include "UITranslationEventListener.h" 39 39 40 40 UIMachineSettingsPortForwardingDlg::UIMachineSettingsPortForwardingDlg(QWidget *pParent, 41 41 const UIPortForwardingDataList &rules) 42 : QI WithRetranslateUI<QIDialog>(pParent)42 : QIDialog(pParent) 43 43 , m_pTable(0) 44 44 , m_pButtonBox(0) … … 73 73 74 74 /* Retranslate dialog: */ 75 retranslateUi(); 75 sltRetranslateUI(); 76 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 77 this, &UIMachineSettingsPortForwardingDlg::sltRetranslateUI); 76 78 77 79 /* Limit the minimum size to 33% of screen size: */ … … 93 95 return; 94 96 /* Call to base-class: */ 95 QI WithRetranslateUI<QIDialog>::accept();97 QIDialog::accept(); 96 98 } 97 99 … … 103 105 return; 104 106 /* Call to base-class: */ 105 QI WithRetranslateUI<QIDialog>::reject();107 QIDialog::reject(); 106 108 } 107 109 108 void UIMachineSettingsPortForwardingDlg:: retranslateUi()110 void UIMachineSettingsPortForwardingDlg::sltRetranslateUI() 109 111 { 110 112 /* Set window title: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.h
r103977 r104313 33 33 34 34 /* GUI includes: */ 35 #include "QIWithRetranslateUI.h"36 35 #include "QIDialog.h" 37 36 #include "UIPortForwardingTable.h" … … 41 40 42 41 /* Machine settings / Network page / NAT attachment / Port forwarding dialog: */ 43 class SHARED_LIBRARY_STUFF UIMachineSettingsPortForwardingDlg : public QI WithRetranslateUI<QIDialog>42 class SHARED_LIBRARY_STUFF UIMachineSettingsPortForwardingDlg : public QIDialog 44 43 { 45 44 Q_OBJECT; … … 58 57 void accept() RT_OVERRIDE; 59 58 void reject() RT_OVERRIDE; 59 /* Handler: Translation stuff: */ 60 void sltRetranslateUI(); 60 61 61 62 private: 62 63 /* Handler: Translation stuff: */64 virtual void retranslateUi() RT_OVERRIDE;65 63 66 64 /* Widgets: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r101230 r104313 207 207 } 208 208 209 void UIMachineSettingsSF:: retranslateUi()209 void UIMachineSettingsSF::sltRetranslateUI() 210 210 { 211 211 } … … 230 230 231 231 /* Apply language settings: */ 232 retranslateUi();232 sltRetranslateUI(); 233 233 } 234 234 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h
r101072 r104313 78 78 virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE; 79 79 80 /** Handles translation event. */81 virtual void retranslateUi() RT_OVERRIDE;82 83 80 /** Performs final page polishing. */ 84 81 virtual void polishPage() RT_OVERRIDE; 82 83 private slots: 84 85 /** Handles translation event. */ 86 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 85 87 86 88 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp
r103771 r104313 189 189 190 190 /* Apply language settings: */ 191 retranslateUi();191 sltRetranslateUI(); 192 192 193 193 /* Polish page finally: */ … … 246 246 } 247 247 248 void UIMachineSettingsSerial:: retranslateUi()248 void UIMachineSettingsSerial::sltRetranslateUI() 249 249 { 250 250 /* Sanity check: */ … … 296 296 297 297 /* Apply language settings: */ 298 retranslateUi();298 sltRetranslateUI(); 299 299 } 300 300 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h
r101607 r104313 82 82 virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE; 83 83 84 /** Handles translation event. */85 virtual void retranslateUi() RT_OVERRIDE;86 87 84 /** Performs final page polishing. */ 88 85 virtual void polishPage() RT_OVERRIDE; … … 94 91 /** Handles path change. */ 95 92 void sltHandlePathChange(); 93 /** Handles translation event. */ 94 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 96 95 97 96 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r101230 r104313 458 458 } 459 459 460 void UIMachineSettingsStorage:: retranslateUi()460 void UIMachineSettingsStorage::sltRetranslateUI() 461 461 { 462 462 } … … 482 482 483 483 /* Apply language settings: */ 484 retranslateUi();484 sltRetranslateUI(); 485 485 } 486 486 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r103803 r104313 93 93 virtual void setConfigurationAccessLevel(ConfigurationAccessLevel enmLevel) RT_OVERRIDE; 94 94 95 /** Handles translation event. */96 virtual void retranslateUi() RT_OVERRIDE;97 98 95 /** Performs final page polishing. */ 99 96 virtual void polishPage() RT_OVERRIDE; 97 98 private slots: 99 100 /** Handles translation event. */ 101 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 100 102 101 103 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r103820 r104313 613 613 } 614 614 615 void UIMachineSettingsSystem:: retranslateUi()615 void UIMachineSettingsSystem::sltRetranslateUI() 616 616 { 617 617 m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabMotherboard), tr("&Motherboard")); … … 679 679 680 680 /* Apply language settings: */ 681 retranslateUi();681 sltRetranslateUI(); 682 682 } 683 683 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r103803 r104313 113 113 virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE; 114 114 115 /** Handles translation event. */116 virtual void retranslateUi() RT_OVERRIDE;117 118 115 /** Handles filter change. */ 119 116 virtual void handleFilterChange() RT_OVERRIDE; … … 121 118 /** Performs final page polishing. */ 122 119 virtual void polishPage() RT_OVERRIDE; 120 121 private slots: 122 123 /** Handles translation event. */ 124 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 123 125 124 126 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r103710 r104313 312 312 } 313 313 314 void UIMachineSettingsUSB:: retranslateUi()314 void UIMachineSettingsUSB::sltRetranslateUI() 315 315 { 316 316 } … … 335 335 336 336 /* Apply language settings: */ 337 retranslateUi();337 sltRetranslateUI(); 338 338 } 339 339 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.h
r98103 r104313 82 82 virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE; 83 83 84 /** Handles translation event. */85 virtual void retranslateUi() RT_OVERRIDE;86 87 84 /** Performs final page polishing. */ 88 85 virtual void polishPage() RT_OVERRIDE; 86 87 private slots: 88 89 /** Handles translation event. */ 90 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL; 89 91 90 92 private:
Note:
See TracChangeset
for help on using the changeset viewer.