VirtualBox

Changeset 104313 in vbox


Ignore:
Timestamp:
Apr 12, 2024 1:10:30 PM (8 months ago)
Author:
vboxsync
Message:

FE/Qt. bugref:10622. Using new UITranslationEventListener in the settings related GUI classes.

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  
    2626 */
    2727
     28/* Qt includes: */
     29#include <QApplication>
     30
    2831/* GUI includes: */
    2932#include "QIMessageBox.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp

    r104251 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QGraphicsSceneMouseEvent>
    3031#include <QGraphicsView>
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp

    r104251 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QGraphicsLinearLayout>
    3031#include <QGraphicsScene>
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp

    r104251 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QGraphicsSceneDragDropEvent>
    3031#include <QGraphicsView>
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp

    r103781 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QDir>
    3031#include <QFileInfo>
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp

    r103580 r104313  
    6868#include "UISettingsWarningPane.h"
    6969#include "UIShortcutPool.h"
     70#include "UITranslationEventListener.h"
    7071#ifdef VBOX_WS_MAC
    7172# include "VBoxUtils.h"
     
    726727                                                   const QString &strCategory,
    727728                                                   const QString &strControl)
    728     : QIWithRetranslateUI<QMainWindow>(pParent)
     729    : QMainWindow(pParent)
    729730    , m_strCategory(strCategory)
    730731    , m_strControl(strControl)
     
    834835    /* Ignore other than wheel events in this handler: */
    835836    if (pEvent->type() != QEvent::Wheel)
    836         return QIWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent);
     837        return QMainWindow::eventFilter(pObject, pEvent);
    837838
    838839    /* Do not touch wheel events for m_pScrollArea or it's children: */
     
    843844         * all the scrolling will be redirected to m_pScrollViewport: */
    844845        m_pScrollingTimer->start();
    845         return QIWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent);
     846        return QMainWindow::eventFilter(pObject, pEvent);
    846847    }
    847848
     
    873874
    874875    /* Call to base-class: */
    875     return QIWithRetranslateUI<QMainWindow>::eventFilter(pObject, pEvent);
    876 }
    877 
    878 void UIAdvancedSettingsDialog::retranslateUi()
     876    return QMainWindow::eventFilter(pObject, pEvent);
     877}
     878
     879void UIAdvancedSettingsDialog::sltRetranslateUI()
    879880{
    880881    /* Translate mode checkbox: */
     
    909910
    910911    /* Call to base-class: */
    911     QIWithRetranslateUI<QMainWindow>::showEvent(pEvent);
     912    QMainWindow::showEvent(pEvent);
    912913}
    913914
     
    13391340
    13401341    /* Apply language settings: */
    1341     retranslateUi();
     1342    sltRetranslateUI();
     1343    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     1344            this, &UIAdvancedSettingsDialog::sltRetranslateUI);
    13421345}
    13431346
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h

    r102262 r104313  
    3636
    3737/* GUI includes: */
    38 #include "QIWithRetranslateUI.h"
    3938#include "UISettingsDefs.h"
    4039
     
    6362  * base dialog class for both Global Preferences & Machine Settings
    6463  * dialogs, which encapsulates most of their common functionality. */
    65 class SHARED_LIBRARY_STUFF UIAdvancedSettingsDialog : public QIWithRetranslateUI<QMainWindow>
     64class SHARED_LIBRARY_STUFF UIAdvancedSettingsDialog : public QMainWindow
    6665{
    6766    Q_OBJECT;
     
    110109    virtual void sltHandleSerializationFinished();
    111110
     111protected slots:
     112
     113    /** Handles translation event. */
     114    virtual void sltRetranslateUI();
     115
    112116protected:
    113117
     
    115119    virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
    116120
    117     /** Handles translation event. */
    118     virtual void retranslateUi() RT_OVERRIDE;
    119121    /** Handles show @a pEvent. */
    120122    virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp

    r103771 r104313  
    8585}
    8686
    87 void UIAdvancedSettingsDialogGlobal::retranslateUi()
     87void UIAdvancedSettingsDialogGlobal::sltRetranslateUI()
    8888{
    8989    /* Selector itself: */
     
    121121
    122122    /* Base-class UI translation: */
    123     UIAdvancedSettingsDialog::retranslateUi();
     123    UIAdvancedSettingsDialog::sltRetranslateUI();
    124124
    125125    /* Set dialog's name: */
     
    283283
    284284    /* Apply language settings: */
    285     retranslateUi();
     285    sltRetranslateUI();
    286286}
    287287
     
    328328
    329329    /* Apply language settings: */
    330     retranslateUi();
     330    sltRetranslateUI();
    331331
    332332    /* Choose page/tab: */
     
    337337}
    338338
    339 void UIAdvancedSettingsDialogMachine::retranslateUi()
     339void UIAdvancedSettingsDialogMachine::sltRetranslateUI()
    340340{
    341341    /* Selector itself: */
     
    388388
    389389    /* Base-class UI translation: */
    390     UIAdvancedSettingsDialog::retranslateUi();
     390    UIAdvancedSettingsDialog::sltRetranslateUI();
    391391
    392392    /* Set dialog's name: */
     
    787787
    788788    /* Apply language settings: */
    789     retranslateUi();
     789    sltRetranslateUI();
    790790}
    791791
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.h

    r103803 r104313  
    5959protected:
    6060
    61     /** Handles translation event. */
    62     virtual void retranslateUi() RT_OVERRIDE;
    63 
    6461    /** Loads the dialog data. */
    6562    virtual bool load() RT_OVERRIDE;
     
    7168    /** Returns the dialog title. */
    7269    virtual QString title() const RT_OVERRIDE;
     70
     71private slots:
     72
     73    /** Handles translation event. */
     74    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7375
    7476private:
     
    110112protected:
    111113
    112     /** Handles translation event. */
    113     virtual void retranslateUi() RT_OVERRIDE;
    114 
    115114    /** Loads the dialog data. */
    116115    virtual bool load() RT_OVERRIDE;
     
    142141    /** Handles machine data change for machine with certain @a uMachineId. */
    143142    void sltMachineDataChanged(const QUuid &uMachineId);
     143    /** Handles translation event. */
     144    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    144145
    145146private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.cpp

    r102526 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QLabel>
    3031#include <QPainter>
     32#include <QPainterPath>
     33#include <QPaintEvent>
    3134#include <QStyle>
    3235#include <QVariant>
     
    186189}
    187190
    188 void UISettingsPageFrame::retranslateUi()
     191void UISettingsPageFrame::sltRetranslateUI()
    189192{
    190193    // No NLS tags for now; We are receiving our name through the getter.
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsPage.h

    r103803 r104313  
    296296protected:
    297297
    298     /** Handles translation event. */
    299     virtual void retranslateUi() RT_OVERRIDE;
    300 
    301298    /** Handles paint @a pEvent. */
    302299    virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE;
     300
     301private slots:
     302
     303    /** Handles translation event. */
     304    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    303305
    304306private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp

    r103988 r104313  
    3131#include <QAction>
    3232#include <QActionGroup>
     33#include <QApplication>
    3334#include <QItemDelegate>
     35#include <QGuiApplication>
    3436#include <QLayout>
    3537#include <QPainter>
     38#include <QPainterPath>
    3639#include <QSortFilterProxyModel>
    3740#include <QTabWidget>
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.cpp

    r98103 r104313  
    2727
    2828/* Qt includes: */
     29#include <QCloseEvent>
    2930#include <QHBoxLayout>
    3031#include <QLabel>
     
    3940#include "UISettingsPage.h"
    4041#include "UISettingsSerializer.h"
     42#include "UITranslationEventListener.h"
    4143
    4244
     
    214216                                                           const QVariant &data,
    215217                                                           const UISettingsPageList &pages)
    216     : QIWithRetranslateUI<QIDialog>(pParent)
     218    : QIDialog(pParent)
    217219    , m_enmDirection(enmDirection)
    218220    , m_data(data)
     
    228230    prepare();
    229231    /* Translate: */
    230     retranslateUi();
     232    sltRetranslateUI();
     233    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     234            this, &UISettingsSerializerProgress::sltRetranslateUI);
    231235}
    232236
     
    237241
    238242    /* Call to base-class: */
    239     return QIWithRetranslateUI<QIDialog>::exec();
     243    return QIDialog::exec();
    240244}
    241245
     
    351355}
    352356
    353 void UISettingsSerializerProgress::retranslateUi()
     357void UISettingsSerializerProgress::sltRetranslateUI()
    354358{
    355359    /* Translate operation progress label: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSerializer.h

    r103977 r104313  
    4242/* GUI includes: */
    4343#include "QIDialog.h"
    44 #include "QIWithRetranslateUI.h"
    4544
    4645/* Forward declarations: */
     
    163162/** QIDialog reimplementation used to
    164163  * reflect the settings serialization operation. */
    165 class SHARED_LIBRARY_STUFF UISettingsSerializerProgress : public QIWithRetranslateUI<QIDialog>
     164class SHARED_LIBRARY_STUFF UISettingsSerializerProgress : public QIDialog
    166165{
    167166    Q_OBJECT;
     
    195194    void prepare();
    196195
    197     /** Translate routine: */
    198     virtual void retranslateUi() RT_OVERRIDE;
    199 
    200196    /** Close event-handler called with the given window system @a pEvent. */
    201197    virtual void closeEvent(QCloseEvent *pEvent) RT_OVERRIDE;
    202198
    203199private slots:
     200
     201    /** Translate routine: */
     202    void sltRetranslateUI();
    204203
    205204    /** 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  
    8080}
    8181
    82 void UIAccelerationFeaturesEditor::retranslateUi()
     82void UIAccelerationFeaturesEditor::sltRetranslateUI()
    8383{
    8484    if (m_pLabel)
     
    120120
    121121    /* Apply language settings: */
    122     retranslateUi();
     122    sltRetranslateUI();
    123123}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAccelerationFeaturesEditor.h

    r101011 r104313  
    6767    void setMinimumLayoutIndent(int iIndent);
    6868
    69 protected:
     69private slots:
    7070
    7171    /** Handles translation event. */
    72     virtual void retranslateUi() RT_OVERRIDE;
     72    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7373
    7474private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioControllerEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UIAudioControllerEditor::retranslateUi()
     79void UIAudioControllerEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    141141
    142142    /* Apply language settings: */
    143     retranslateUi();
     143    sltRetranslateUI();
    144144}
    145145
     
    173173
    174174        /* Retranslate finally: */
    175         retranslateUi();
     175        sltRetranslateUI();
    176176    }
    177177}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioControllerEditor.h

    r103803 r104313  
    6868protected:
    6969
    70     /** Handles translation event. */
    71     virtual void retranslateUi() RT_OVERRIDE;
    72 
    7370    /** Handles filter change. */
    7471    virtual void handleFilterChange() RT_OVERRIDE;
     72
     73private slots:
     74
     75    /** Handles translation event. */
     76    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7577
    7678private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.cpp

    r101498 r104313  
    9595}
    9696
    97 void UIAudioFeaturesEditor::retranslateUi()
     97void UIAudioFeaturesEditor::sltRetranslateUI()
    9898{
    9999    if (m_pLabel)
     
    140140
    141141    /* Apply language settings: */
    142     retranslateUi();
     142    sltRetranslateUI();
    143143}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioFeaturesEditor.h

    r101011 r104313  
    6565    void setMinimumLayoutIndent(int iIndent);
    6666
    67 protected:
     67private slots:
    6868
    6969    /** Handles translation event. */
    70     virtual void retranslateUi() RT_OVERRIDE;
     70    virtual void sltRetranslateUI() RT_OVERRIDE;
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioHostDriverEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UIAudioHostDriverEditor::retranslateUi()
     79void UIAudioHostDriverEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    136136
    137137    /* Apply language settings: */
    138     retranslateUi();
     138    sltRetranslateUI();
    139139}
    140140
     
    165165
    166166        /* Retranslate finally: */
    167         retranslateUi();
     167        sltRetranslateUI();
    168168    }
    169169}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioHostDriverEditor.h

    r103803 r104313  
    6666    void setMinimumLayoutIndent(int iIndent);
    6767
    68 protected:
     68private slots:
    6969
    7070    /** Handles translation event. */
    71     virtual void retranslateUi() RT_OVERRIDE;
     71    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7272
    7373private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.cpp

    r101717 r104313  
    133133}
    134134
    135 void UIAudioSettingsEditor::retranslateUi()
     135void UIAudioSettingsEditor::sltRetranslateUI()
    136136{
    137137    if (m_pCheckboxFeature)
     
    166166
    167167    /* Apply language settings: */
    168     retranslateUi();
     168    sltRetranslateUI();
    169169}
    170170
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAudioSettingsEditor.h

    r103803 r104313  
    107107protected:
    108108
    109     /** Handles translation event. */
    110     virtual void retranslateUi() RT_OVERRIDE;
    111 
    112109    /** Handles filter change. */
    113110    virtual void handleFilterChange() RT_OVERRIDE;
     
    117114    /** Handles feature toggling. */
    118115    void sltHandleFeatureToggled();
     116    /** Handles translation event. */
     117    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    119118
    120119private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAutoCaptureKeyboardEditor.cpp

    r101011 r104313  
    6161}
    6262
    63 void UIAutoCaptureKeyboardEditor::retranslateUi()
     63void UIAutoCaptureKeyboardEditor::sltRetranslateUI()
    6464{
    6565    if (m_pLabel)
     
    9494
    9595    /* Apply language settings: */
    96     retranslateUi();
     96    sltRetranslateUI();
    9797}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIAutoCaptureKeyboardEditor.h

    r101011 r104313  
    5454    bool value() const;
    5555
    56 protected:
     56private slots:
    5757
    5858    /** Handles translation event. */
    59     virtual void retranslateUi() RT_OVERRIDE;
     59    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    6060
    6161private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBaseMemoryEditor.cpp

    r103771 r104313  
    299299}
    300300
    301 void UIBaseMemoryEditor::retranslateUi()
     301void UIBaseMemoryEditor::sltRetranslateUI()
    302302{
    303303    if (m_pLabelMemory)
     
    428428
    429429    /* Apply language settings: */
    430     retranslateUi();
     430    sltRetranslateUI();
    431431}
    432432
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBaseMemoryEditor.h

    r101011 r104313  
    7373    void setMinimumLayoutIndent(int iIndent);
    7474
    75 protected:
     75private slots:
    7676
    7777    /** Handles translation event. */
    78     virtual void retranslateUi() RT_OVERRIDE;
    79 
    80 private slots:
    81 
     78    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8279    /** Handles slider value changes. */
    8380    void sltHandleSliderChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp

    r104042 r104313  
    2727
    2828/* Qt includes: */
     29#include <QEvent>
    2930#include <QGridLayout>
    3031#include <QHeaderView>
     
    3940#include "UIIconPool.h"
    4041#include "QIToolBar.h"
     42#include "UITranslationEventListener.h"
    4143#include "QITreeWidget.h"
    4244
     
    6062    KDeviceType deviceType() const;
    6163
     64public slots:
     65
    6266    /** Performs item translation. */
    63     virtual void retranslateUi();
     67    void sltRetranslateUI();
    6468
    6569private:
     
    7175
    7276/** QITreeWidget subclass used as system settings boot-table. */
    73 class UIBootListWidget : public QIWithRetranslateUI<QITreeWidget>
     77class UIBootListWidget : public QITreeWidget
    7478{
    7579    Q_OBJECT;
     
    104108    virtual QSize minimumSizeHint() const RT_OVERRIDE;
    105109
    106     /** Handles translation event. */
    107     virtual void retranslateUi() RT_OVERRIDE;
    108 
    109110    /** Handles drop @a pEvent. */
    110111    virtual void dropEvent(QDropEvent *pEvent) RT_OVERRIDE;
     
    114115    virtual QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction,
    115116                                   Qt::KeyboardModifiers fModifiers) RT_OVERRIDE;
     117
     118private slots:
     119
     120    /** Handles translation event. */
     121    virtual void sltRetranslateUI();
    116122
    117123private:
     
    141147        default: break; /* Shut up, MSC! */
    142148    }
    143     retranslateUi();
     149    sltRetranslateUI();
     150    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     151        this, &UIBootListWidgetItem::sltRetranslateUI);
    144152}
    145153
     
    149157}
    150158
    151 void UIBootListWidgetItem::retranslateUi()
     159void UIBootListWidgetItem::sltRetranslateUI()
    152160{
    153161    setText(0, gpConverter->toString(m_enmType));
     
    160168
    161169UIBootListWidget::UIBootListWidget(QWidget *pParent /* = 0 */)
    162     : QIWithRetranslateUI<QITreeWidget>(pParent)
     170    : QITreeWidget(pParent)
    163171{
    164172    prepare();
     
    249257}
    250258
    251 void UIBootListWidget::retranslateUi()
     259void UIBootListWidget::sltRetranslateUI()
    252260{
    253261    for (int i = 0; i < topLevelItemCount(); ++i)
    254         static_cast<UIBootListWidgetItem*>(topLevelItem(i))->retranslateUi();
     262        static_cast<UIBootListWidgetItem*>(topLevelItem(i))->sltRetranslateUI();
    255263}
    256264
     
    319327    connect(this, &UIBootListWidget::currentItemChanged,
    320328            this, &UIBootListWidget::sigRowChanged);
     329    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     330            this, &UIBootListWidget::sltRetranslateUI);
    321331}
    322332
     
    527537}
    528538
    529 void UIBootOrderEditor::retranslateUi()
     539void UIBootOrderEditor::sltRetranslateUI()
    530540{
    531541    if (m_pLabel)
     
    617627    updateActionAvailability();
    618628    /* Apply language settings: */
    619     retranslateUi();
     629    sltRetranslateUI();
    620630}
    621631
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.h

    r103803 r104313  
    117117    virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
    118118
     119private slots:
     120
    119121    /** Handles translation event. */
    120     virtual void retranslateUi() RT_OVERRIDE;
    121 
    122 private slots:
     122    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    123123
    124124    /** Handles current item change. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UIChipsetEditor::retranslateUi()
     79void UIChipsetEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    144144
    145145    /* Apply language settings: */
    146     retranslateUi();
     146    sltRetranslateUI();
    147147}
    148148
     
    176176
    177177        /* Retranslate finally: */
    178         retranslateUi();
     178        sltRetranslateUI();
    179179    }
    180180}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIChipsetEditor.h

    r103803 r104313  
    7373protected:
    7474
    75     /** Handles translation event. */
    76     virtual void retranslateUi() RT_OVERRIDE;
    77 
    7875    /** Handles filter change. */
    7976    virtual void handleFilterChange() RT_OVERRIDE;
     77
     78private slots:
     79
     80    /** Handles translation event. */
     81    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8082
    8183private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIColorThemeEditor.cpp

    r101011 r104313  
    6262}
    6363
    64 void UIColorThemeEditor::retranslateUi()
     64void UIColorThemeEditor::sltRetranslateUI()
    6565{
    6666    if (m_pLabel)
     
    117117
    118118    /* Apply language settings: */
    119     retranslateUi();
     119    sltRetranslateUI();
    120120}
    121121
     
    143143
    144144        /* Retranslate finally: */
    145         retranslateUi();
     145        sltRetranslateUI();
    146146    }
    147147}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIColorThemeEditor.h

    r101011 r104313  
    5555    UIColorThemeType value() const;
    5656
    57 protected:
     57private slots:
    5858
    5959    /** Handles translation event. */
    60     virtual void retranslateUi() RT_OVERRIDE;
     60    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    6161
    6262private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDefaultMachineFolderEditor.cpp

    r103771 r104313  
    7474}
    7575
    76 void UIDefaultMachineFolderEditor::retranslateUi()
     76void UIDefaultMachineFolderEditor::sltRetranslateUI()
    7777{
    7878    if (m_pLabel)
     
    115115
    116116    /* Apply language settings: */
    117     retranslateUi();
     117    sltRetranslateUI();
    118118}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDefaultMachineFolderEditor.h

    r103610 r104313  
    6565    void setMinimumLayoutIndent(int iIndent);
    6666
    67 protected:
     67private slots:
    6868
    6969    /** Handles translation event. */
    70     virtual void retranslateUi() RT_OVERRIDE;
     70    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDescriptionEditor.cpp

    r102164 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QTextEdit>
    3031#include <QVBoxLayout>
     
    5859}
    5960
    60 void UIDescriptionEditor::retranslateUi()
     61void UIDescriptionEditor::sltRetranslateUI()
    6162{
    6263    if (m_pTextEdit)
     
    109110
    110111    /* Apply language settings: */
    111     retranslateUi();
     112    sltRetranslateUI();
    112113}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDescriptionEditor.h

    r101492 r104313  
    5555protected:
    5656
    57     /** Handles translation event. */
    58     virtual void retranslateUi() RT_OVERRIDE;
    59 
    6057    /** Returns the minimum widget size hint. */
    6158    virtual QSize minimumSizeHint() const RT_OVERRIDE;
    6259    /** Returns the widget size hint. */
    6360    virtual QSize sizeHint() const RT_OVERRIDE;
     61
     62private slots:
     63
     64    /** Handles translation event. */
     65    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    6466
    6567private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDiskEncryptionSettingsEditor.cpp

    r101563 r104313  
    100100}
    101101
    102 void UIDiskEncryptionSettingsEditor::retranslateUi()
     102void UIDiskEncryptionSettingsEditor::sltRetranslateUI()
    103103{
    104104    if (m_pCheckboxFeature)
     
    150150
    151151    /* Apply language settings: */
    152     retranslateUi();
     152    sltRetranslateUI();
    153153}
    154154
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDiskEncryptionSettingsEditor.h

    r101011 r104313  
    7878    QString password2() const;
    7979
    80 protected:
     80private slots:
    8181
    8282    /** Handles translation event. */
    83     virtual void retranslateUi() RT_OVERRIDE;
    84 
    85 private slots:
     83    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8684
    8785    /** Handles whether VRDE is @a fEnabled. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayFeaturesEditor.cpp

    r101011 r104313  
    9898}
    9999
    100 void UIDisplayFeaturesEditor::retranslateUi()
     100void UIDisplayFeaturesEditor::sltRetranslateUI()
    101101{
    102102    if (m_pLabel)
     
    150150
    151151    /* Apply language settings: */
    152     retranslateUi();
     152    sltRetranslateUI();
    153153}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayFeaturesEditor.h

    r101011 r104313  
    6565    void setMinimumLayoutIndent(int iIndent);
    6666
    67 protected:
     67private slots:
    6868
    6969    /** Handles translation event. */
    70     virtual void retranslateUi() RT_OVERRIDE;
     70    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayScreenFeaturesEditor.cpp

    r101011 r104313  
    7676}
    7777
    78 void UIDisplayScreenFeaturesEditor::retranslateUi()
     78void UIDisplayScreenFeaturesEditor::sltRetranslateUI()
    7979{
    8080    if (m_pLabel)
     
    115115
    116116    /* Apply language settings: */
    117     retranslateUi();
     117    sltRetranslateUI();
    118118}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDisplayScreenFeaturesEditor.h

    r101011 r104313  
    6565    void setMinimumLayoutIndent(int iIndent);
    6666
    67 protected:
     67private slots:
    6868
    6969    /** Handles translation event. */
    70     virtual void retranslateUi() RT_OVERRIDE;
     70    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDragAndDropEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UIDragAndDropEditor::retranslateUi()
     79void UIDragAndDropEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    136136
    137137    /* Apply language settings: */
    138     retranslateUi();
     138    sltRetranslateUI();
    139139}
    140140
     
    165165
    166166        /* Retranslate finally: */
    167         retranslateUi();
     167        sltRetranslateUI();
    168168    }
    169169}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIDragAndDropEditor.h

    r103803 r104313  
    6666    void setMinimumLayoutIndent(int iIndent);
    6767
    68 protected:
     68private slots:
    6969
    7070    /** Handles translation event. */
    71     virtual void retranslateUi() RT_OVERRIDE;
     71    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7272
    7373private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.cpp

    r102091 r104313  
    3838/* GUI includes: */
    3939#include "UIEditor.h"
    40 
     40#include "UITranslationEventListener.h"
    4141
    4242UIEditor::UIEditor(QTabWidget *pTabWidget)
     
    4545    , m_pTabWidget(pTabWidget)
    4646{
     47    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     48            this, &UIEditor::sltRetranslateUI);
    4749}
    4850
    4951UIEditor::UIEditor(QWidget *pParent /* = 0 */, bool fShowInBasicMode /* = false */)
    50     : QIWithRetranslateUI<QWidget>(pParent)
     52    : QWidget(pParent)
    5153    , m_fShowInBasicMode(fShowInBasicMode)
    5254    , m_fInExpertMode(true)
    5355    , m_pTabWidget(0)
    5456{
     57    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     58            this, &UIEditor::sltRetranslateUI);
    5559}
    5660
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.h

    r101867 r104313  
    3232#endif
    3333
     34/* Qt includes: */
     35#include <QWidget>
     36
    3437/* GUI includes: */
    35 #include "QIWithRetranslateUI.h"
     38#include "UILibraryDefs.h"
    3639
    3740/* Forward declarations: */
     
    3942
    4043/** QWidget sub-class used as editor interface. */
    41 class SHARED_LIBRARY_STUFF UIEditor : public QIWithRetranslateUI<QWidget>
     44class SHARED_LIBRARY_STUFF UIEditor : public QWidget
    4245{
    4346    Q_OBJECT;
     
    7073                           const QMap<QString, QVariant> &flags);
    7174
    72 protected:
     75protected slots:
    7376
    7477    /** Handles translation event. */
    75     virtual void retranslateUi() RT_OVERRIDE {}
     78    virtual void sltRetranslateUI(){}
     79
     80protected:
    7681
    7782    /** Returns editor description which could be used to filter it in. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIExecutionCapEditor.cpp

    r101563 r104313  
    7979}
    8080
    81 void UIExecutionCapEditor::retranslateUi()
     81void UIExecutionCapEditor::sltRetranslateUI()
    8282{
    8383    if (m_pLabelExecCap)
     
    218218
    219219    /* Apply language settings: */
    220     retranslateUi();
    221 }
     220    sltRetranslateUI();
     221}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIExecutionCapEditor.h

    r101011 r104313  
    6969    void setMinimumLayoutIndent(int iIndent);
    7070
    71 protected:
     71private slots:
    7272
    7373    /** Handles translation event. */
    74     virtual void retranslateUi() RT_OVERRIDE;
    75 
    76 private slots:
    77 
     74    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7875    /** Handles slider value changes. */
    7976    void sltHandleSliderChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIFontScaleEditor.cpp

    r101563 r104313  
    9090}
    9191
    92 void UIFontScaleEditor::retranslateUi()
     92void UIFontScaleEditor::sltRetranslateUI()
    9393{
    9494    if (m_pLabel)
     
    184184
    185185    prepareScaleFactorMinMax();
    186     retranslateUi();
     186    sltRetranslateUI();
    187187}
    188188
     
    229229    }
    230230}
    231 
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIFontScaleEditor.h

    r101011 r104313  
    6464    int fontScaleFactor() const;
    6565
    66 protected:
    67 
    68     /** Handles translation event. */
    69     virtual void retranslateUi() RT_OVERRIDE;
    70 
    7166private slots:
    7267
     
    7772        void sltMonitorComboIndexChanged(int iIndex);
    7873    /** @} */
     74
     75    /** Handles translation event. */
     76    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7977
    8078private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.cpp

    r103771 r104313  
    7878}
    7979
    80 void UIGraphicsControllerEditor::retranslateUi()
     80void UIGraphicsControllerEditor::sltRetranslateUI()
    8181{
    8282    if (m_pLabel)
     
    149149
    150150    /* Apply language settings: */
    151     retranslateUi();
     151    sltRetranslateUI();
    152152}
    153153
     
    181181
    182182        /* Retranslate finally: */
    183         retranslateUi();
     183        sltRetranslateUI();
    184184    }
    185185}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIGraphicsControllerEditor.h

    r103803 r104313  
    7373protected:
    7474
    75     /** Handles translation event. */
    76     virtual void retranslateUi() RT_OVERRIDE;
    77 
    7875    /** Handles filter change. */
    7976    virtual void handleFilterChange() RT_OVERRIDE;
    8077
    8178private slots:
     79
     80    /** Handles translation event. */
     81    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8282
    8383    /** Handles current index change. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.cpp

    r101567 r104313  
    4343#include "UIHostComboEditor.h"
    4444#include "UIIconPool.h"
     45#include "UITranslationEventListener.h"
    4546#ifdef VBOX_WS_MAC
    4647# include "UICocoaApplication.h"
     
    458459
    459460UIHostComboEditor::UIHostComboEditor(QWidget *pParent)
    460     : QIWithRetranslateUI<QWidget>(pParent)
     461    : QWidget(pParent)
    461462{
    462463    /* Prepare: */
     
    464465}
    465466
    466 void UIHostComboEditor::retranslateUi()
     467void UIHostComboEditor::sltRetranslateUI()
    467468{
    468469    /* Translate 'clear' tool-button: */
     
    512513    }
    513514    /* Translate finally: */
    514     retranslateUi();
     515    sltRetranslateUI();
     516    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     517        this, &UIHostComboEditor::sltRetranslateUI);
    515518}
    516519
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHostComboEditor.h

    r101567 r104313  
    3939
    4040/* GUI includes: */
    41 #include "QIWithRetranslateUI.h"
    4241#include "UILibraryDefs.h"
    4342
     
    127126
    128127/** Host-combo editor widget. */
    129 class SHARED_LIBRARY_STUFF UIHostComboEditor : public QIWithRetranslateUI<QWidget>
     128class SHARED_LIBRARY_STUFF UIHostComboEditor : public QWidget
    130129{
    131130    Q_OBJECT;
     
    142141    UIHostComboEditor(QWidget *pParent);
    143142
    144 protected:
     143private slots:
    145144
    146145    /** Handles translation event. */
    147     virtual void retranslateUi() RT_OVERRIDE;
    148 
    149 private slots:
     146    void sltRetranslateUI();
    150147
    151148    /** Notifies listener about data should be committed. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHotKeyEditor.cpp

    r98103 r104313  
    3434
    3535/* GUI includes; */
     36#include "QIToolButton.h"
    3637#include "UIHostComboEditor.h"
    3738#include "UIHotKeyEditor.h"
    3839#include "UIIconPool.h"
    39 #include "QIToolButton.h"
     40#include "UITranslationEventListener.h"
    4041
    4142
     
    127128
    128129UIHotKeyEditor::UIHotKeyEditor(QWidget *pParent)
    129     : QIWithRetranslateUI<QWidget>(pParent)
     130    : QWidget(pParent)
    130131    , m_fIsModifiersAllowed(false)
    131132    , m_pMainLayout(new QHBoxLayout(this))
     
    171172
    172173    /* Translate finally: */
    173     retranslateUi();
     174    sltRetranslateUI();
     175    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     176            this, &UIHotKeyEditor::sltRetranslateUI);
    174177}
    175178
     
    237240}
    238241
    239 void UIHotKeyEditor::retranslateUi()
     242void UIHotKeyEditor::sltRetranslateUI()
    240243{
    241244    m_pResetButton->setToolTip(tr("Reset shortcut to default"));
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIHotKeyEditor.h

    r98103 r104313  
    3838
    3939/* GUI includes: */
    40 #include "QIWithRetranslateUI.h"
    4140#include "UILibraryDefs.h"
    4241
     
    109108
    110109/** QWidget subclass wrapping real hot-key editor. */
    111 class SHARED_LIBRARY_STUFF UIHotKeyEditor : public QIWithRetranslateUI<QWidget>
     110class SHARED_LIBRARY_STUFF UIHotKeyEditor : public QWidget
    112111{
    113112    Q_OBJECT;
     
    136135    virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
    137136
    138     /** Handles translation event. */
    139     virtual void retranslateUi() RT_OVERRIDE;
    140 
    141137    /** Handles key-press @a pEvent. */
    142138    virtual void keyPressEvent(QKeyEvent *pEvent) RT_OVERRIDE;
    143139    /** Handles key-release @a pEvent. */
    144140    virtual void keyReleaseEvent(QKeyEvent *pEvent) RT_OVERRIDE;
     141
     142private slots:
     143
     144    /** Handles translation event. */
     145    void sltRetranslateUI();
    145146
    146147private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.cpp

    r103988 r104313  
    236236}
    237237
    238 void UILanguageSettingsEditor::retranslateUi()
     238void UILanguageSettingsEditor::sltRetranslateUI()
    239239{
    240240    /* Translate tree-widget: */
     
    360360
    361361    /* Apply language settings: */
    362     retranslateUi();
     362    sltRetranslateUI();
    363363}
    364364
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.h

    r101075 r104313  
    5757protected:
    5858
    59     /** Handles translation event. */
    60     virtual void retranslateUi() RT_OVERRIDE;
    61 
    6259    /** Handles show @a pEvent. */
    6360    virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
     
    6663
    6764private slots:
     65
     66    /** Handles translation event. */
     67    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    6868
    6969    /** Handles @a pItem painting with passed @a pPainter. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMaximumGuestScreenSizeEditor.cpp

    r103710 r104313  
    128128}
    129129
    130 void UIMaximumGuestScreenSizeEditor::retranslateUi()
     130void UIMaximumGuestScreenSizeEditor::sltRetranslateUI()
    131131{
    132132    if (m_pLabelPolicy)
     
    247247
    248248    /* Apply language settings: */
    249     retranslateUi();
     249    sltRetranslateUI();
    250250}
    251251
     
    268268
    269269        /* Retranslate finally: */
    270         retranslateUi();
    271     }
    272 }
     270        sltRetranslateUI();
     271    }
     272}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMaximumGuestScreenSizeEditor.h

    r101011 r104313  
    8585    void setMinimumLayoutIndent(int iIndent);
    8686
    87 protected:
    88 
    89     /** Handles translation event. */
    90     virtual void retranslateUi() RT_OVERRIDE;
    91 
    9287private slots:
    9388
    9489    /** Handles current policy index change. */
    9590    void sltHandleCurrentPolicyIndexChanged();
     91    /** Handles translation event. */
     92    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    9693
    9794private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMenuBarEditor.cpp

    r101013 r104313  
    666666}
    667667
    668 void UIMenuBarEditorWidget::retranslateUi()
     668void UIMenuBarEditorWidget::sltRetranslateUI()
    669669{
    670670    /* Translate widget itself: */
     
    10481048
    10491049    /* Translate contents: */
    1050     retranslateUi();
     1050    sltRetranslateUI();
    10511051}
    10521052
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMenuBarEditor.h

    r101013 r104313  
    156156protected:
    157157
    158     /** Handles translation event. */
    159     virtual void retranslateUi() RT_OVERRIDE;
    160 
    161158    /** Handles paint @a pEvent. */
    162159    virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE;
    163160
    164161private slots:
     162
     163    /** Handles translation event. */
     164    virtual void sltRetranslateUI() RT_OVERRIDE;
    165165
    166166    /** Handles configuration change. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.cpp

    r101011 r104313  
    9595}
    9696
    97 void UIMiniToolbarSettingsEditor::retranslateUi()
     97void UIMiniToolbarSettingsEditor::sltRetranslateUI()
    9898{
    9999    if (m_pLabel)
     
    148148
    149149    /* Apply language settings: */
    150     retranslateUi();
     150    sltRetranslateUI();
    151151}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMiniToolbarSettingsEditor.h

    r101011 r104313  
    6565    void setMinimumLayoutIndent(int iIndent);
    6666
    67 protected:
     67private slots:
    6868
    6969    /** Handles translation event. */
    70     virtual void retranslateUi() RT_OVERRIDE;
     70    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMonitorCountEditor.cpp

    r103803 r104313  
    8282}
    8383
    84 void UIMonitorCountEditor::retranslateUi()
     84void UIMonitorCountEditor::sltRetranslateUI()
    8585{
    8686    if (m_pLabel)
     
    204204
    205205    /* Apply language settings: */
    206     retranslateUi();
    207 }
     206    sltRetranslateUI();
     207}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMonitorCountEditor.h

    r101011 r104313  
    6666    void setMinimumLayoutIndent(int iIndent);
    6767
    68 protected:
     68private slots:
    6969
    7070    /** Handles translation event. */
    71     virtual void retranslateUi() RT_OVERRIDE;
    72 
    73 private slots:
    74 
     71    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7572    /** Handles slider value changes. */
    7673    void sltHandleSliderChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMotherboardFeaturesEditor.cpp

    r102221 r104313  
    148148}
    149149
    150 void UIMotherboardFeaturesEditor::retranslateUi()
     150void UIMotherboardFeaturesEditor::sltRetranslateUI()
    151151{
    152152    if (m_pLabel)
     
    295295
    296296    /* Apply language settings: */
    297     retranslateUi();
    298 }
     297    sltRetranslateUI();
     298}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIMotherboardFeaturesEditor.h

    r102221 r104313  
    9090    void setMinimumLayoutIndent(int iIndent);
    9191
    92 protected:
     92private slots:
    9393
    9494    /** Handles translation event. */
    95     virtual void retranslateUi() RT_OVERRIDE;
    96 
    97 private slots:
     95    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    9896
    9997    /** Handles 'enable EFI' feature being toggled. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp

    r103906 r104313  
    274274}
    275275
    276 void UINameAndSystemEditor::retranslateUi()
     276void UINameAndSystemEditor::sltRetranslateUI()
    277277{
    278278    if (m_pLabelName)
     
    405405    prepareWidgets();
    406406    prepareConnections();
    407     retranslateUi();
     407    sltRetranslateUI();
    408408}
    409409
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.h

    r103904 r104313  
    141141protected:
    142142
    143     /** Handles translation event. */
    144     virtual void retranslateUi() RT_OVERRIDE;
    145 
    146143    /** Handles filter change.
    147144      * Reimplement this in subclass to handle various filter changes,
     
    151148private slots:
    152149
     150    /** Handles translation event. */
     151    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    153152    /** Handles VM OS edition @a iIndex change. */
    154153    void sltSelectedEditionsChanged(int iIndex);
    155 
    156154    /** Handles VM OS family @a iIndex change. */
    157155    void sltFamilyChanged(int iIndex);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkAttachmentEditor.cpp

    r103771 r104313  
    198198#endif /* VBOX_WITH_VMNET */
    199199
    200 void UINetworkAttachmentEditor::retranslateUi()
     200void UINetworkAttachmentEditor::sltRetranslateUI()
    201201{
    202202    /* Translate type label: */
     
    347347
    348348    /* Apply language settings: */
    349     retranslateUi();
     349    sltRetranslateUI();
    350350}
    351351
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkAttachmentEditor.h

    r103803 r104313  
    102102protected:
    103103
    104     /** Handles translation event. */
    105     virtual void retranslateUi() RT_OVERRIDE;
    106 
    107104    /** Handles filter change. */
    108105    virtual void handleFilterChange() RT_OVERRIDE;
     
    110107private slots:
    111108
     109    /** Handles translation event. */
     110    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    112111    /** Handles current type change. */
    113112    void sltHandleCurrentTypeChanged();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.cpp

    r103771 r104313  
    212212}
    213213
    214 void UINetworkFeaturesEditor::retranslateUi()
     214void UINetworkFeaturesEditor::sltRetranslateUI()
    215215{
    216216    if (m_pLabelAdapterType)
     
    384384
    385385    /* Apply language settings: */
    386     retranslateUi();
     386    sltRetranslateUI();
    387387}
    388388
     
    416416
    417417        /* Retranslate finally: */
    418         retranslateUi();
     418        sltRetranslateUI();
    419419    }
    420420}
     
    449449
    450450        /* Retranslate finally: */
    451         retranslateUi();
    452     }
    453 }
     451        sltRetranslateUI();
     452    }
     453}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkFeaturesEditor.h

    r103803 r104313  
    117117    void generateMac();
    118118
    119 protected:
     119private slots:
    120120
    121121    /** Handles translation event. */
    122     virtual void retranslateUi() RT_OVERRIDE;
     122    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    123123
    124124    /** Handles filter change. */
    125125    virtual void handleFilterChange() RT_OVERRIDE;
    126 
    127 private slots:
    128126
    129127    /** Handles request to open port forwarding dialog. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkSettingsEditor.cpp

    r101717 r104313  
    205205}
    206206
    207 void UINetworkSettingsEditor::retranslateUi()
     207void UINetworkSettingsEditor::sltRetranslateUI()
    208208{
    209209    if (m_pCheckboxFeature)
     
    259259
    260260    /* Apply language settings: */
    261     retranslateUi();
     261    sltRetranslateUI();
    262262}
    263263
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINetworkSettingsEditor.h

    r103803 r104313  
    152152protected:
    153153
    154     /** Handles translation event. */
    155     virtual void retranslateUi() RT_OVERRIDE;
    156 
    157154    /** Handles filter change. */
    158155    virtual void handleFilterChange() RT_OVERRIDE;
     
    160157private slots:
    161158
     159    /** Handles translation event. */
     160    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    162161    /** Handles feature toggling. */
    163162    void sltHandleFeatureToggled();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UIParavirtProviderEditor::retranslateUi()
     79void UIParavirtProviderEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    141141
    142142    /* Apply language settings: */
    143     retranslateUi();
     143    sltRetranslateUI();
    144144}
    145145
     
    173173
    174174        /* Retranslate finally: */
    175         retranslateUi();
     175        sltRetranslateUI();
    176176    }
    177177}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIParavirtProviderEditor.h

    r103803 r104313  
    6868protected:
    6969
    70     /** Handles translation event. */
    71     virtual void retranslateUi() RT_OVERRIDE;
    72 
    7370    /** Handles filter change. */
    7471    virtual void handleFilterChange() RT_OVERRIDE;
     72
     73private slots:
     74
     75    /** Handles translation event. */
     76    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7577
    7678private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIPointingHIDEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UIPointingHIDEditor::retranslateUi()
     79void UIPointingHIDEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    138138
    139139    /* Apply language settings: */
    140     retranslateUi();
     140    sltRetranslateUI();
    141141}
    142142
     
    167167
    168168        /* Retranslate finally: */
    169         retranslateUi();
     169        sltRetranslateUI();
    170170    }
    171171}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIPointingHIDEditor.h

    r103803 r104313  
    7171    void setMinimumLayoutIndent(int iIndent);
    7272
    73 protected:
     73private slots:
    7474
    7575    /** Handles translation event. */
    76     virtual void retranslateUi() RT_OVERRIDE;
     76    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7777
    7878private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProcessorFeaturesEditor.cpp

    r101011 r104313  
    105105}
    106106
    107 void UIProcessorFeaturesEditor::retranslateUi()
     107void UIProcessorFeaturesEditor::sltRetranslateUI()
    108108{
    109109    if (m_pLabel)
     
    158158
    159159    /* Apply language settings: */
    160     retranslateUi();
     160    sltRetranslateUI();
    161161}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProcessorFeaturesEditor.h

    r101011 r104313  
    7676    void setMinimumLayoutIndent(int iIndent);
    7777
    78 protected:
     78private slots:
    7979
    8080    /** Handles translation event. */
    81     virtual void retranslateUi() RT_OVERRIDE;
     81    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8282
    8383private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.cpp

    r102036 r104313  
    110110}
    111111
    112 void UIProxyFeaturesEditor::retranslateUi()
     112void UIProxyFeaturesEditor::sltRetranslateUI()
    113113{
    114114    /* Translate proxy mode editor: */
     
    233233
    234234    /* Apply language settings: */
    235     retranslateUi();
    236 }
     235    sltRetranslateUI();
     236}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIProxyFeaturesEditor.h

    r103803 r104313  
    7272    QString proxyHost() const;
    7373
    74 protected:
     74private slots:
    7575
    7676    /** Handles translation event. */
    77     virtual void retranslateUi() RT_OVERRIDE;
    78 
    79 private slots:
     77    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8078
    8179    /** Handles proxy mode change. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.cpp

    r103315 r104313  
    291291}
    292292
    293 void UIRecordingSettingsEditor::retranslateUi()
     293void UIRecordingSettingsEditor::sltRetranslateUI()
    294294{
    295295    m_pCheckboxFeature->setText(tr("&Enable Recording"));
     
    443443
    444444    /* Apply language settings: */
    445     retranslateUi();
     445    sltRetranslateUI();
    446446}
    447447
     
    873873
    874874        /* Retranslate finally: */
    875         retranslateUi();
     875        sltRetranslateUI();
    876876    }
    877877}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIRecordingSettingsEditor.h

    r103315 r104313  
    109109    QVector<bool> screens() const;
    110110
    111 protected:
     111
     112private slots:
    112113
    113114    /** Handles translation event. */
    114     virtual void retranslateUi() RT_OVERRIDE;
    115 
    116 private slots:
    117 
     115    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    118116    /** Handles feature toggling. */
    119117    void sltHandleFeatureToggled();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIScaleFactorEditor.cpp

    r101563 r104313  
    183183}
    184184
    185 void UIScaleFactorEditor::retranslateUi()
     185void UIScaleFactorEditor::sltRetranslateUI()
    186186{
    187187    if (m_pLabel)
     
    294294
    295295    prepareScaleFactorMinMaxValues();
    296     retranslateUi();
     296    sltRetranslateUI();
    297297}
    298298
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIScaleFactorEditor.h

    r101011 r104313  
    7373    void setMinimumLayoutIndent(int iIndent);
    7474
    75 protected:
     75private slots:
    7676
    7777    /** Handles translation event. */
    78     virtual void retranslateUi() RT_OVERRIDE;
    79 
    80 private slots:
     78    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8179
    8280    /** @name Internal slots handling respective widget's value update.
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISerialSettingsEditor.cpp

    r104043 r104313  
    3939#include "UIGlobalSession.h"
    4040#include "UISerialSettingsEditor.h"
     41#include "UITranslator.h"
    4142
    4243/* COM includes: */
     
    191192}
    192193
    193 void UISerialSettingsEditor::retranslateUi()
     194void UISerialSettingsEditor::sltRetranslateUI()
    194195{
    195196    if (m_pCheckBoxPort)
     
    303304
    304305    /* Apply language settings: */
    305     retranslateUi();
     306    sltRetranslateUI();
    306307}
    307308
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISerialSettingsEditor.h

    r103803 r104313  
    115115    QString path() const;
    116116
    117 protected:
     117private slots:
    118118
    119119    /** Handles translation event. */
    120     virtual void retranslateUi() RT_OVERRIDE;
    121 
    122 private slots:
     120    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    123121
    124122    /** Handles port availability being toggled to @a fOn. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedClipboardEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UISharedClipboardEditor::retranslateUi()
     79void UISharedClipboardEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    136136
    137137    /* Apply language settings: */
    138     retranslateUi();
     138    sltRetranslateUI();
    139139}
    140140
     
    165165
    166166        /* Retranslate finally: */
    167         retranslateUi();
     167        sltRetranslateUI();
    168168    }
    169169}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedClipboardEditor.h

    r103803 r104313  
    6666    void setMinimumLayoutIndent(int iIndent);
    6767
    68 protected:
     68private slots:
    6969
    7070    /** Handles translation event. */
    71     virtual void retranslateUi() RT_OVERRIDE;
     71    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7272
    7373private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFolderDetailsEditor.cpp

    r103710 r104313  
    4444                                                         const QStringList &usedNames,
    4545                                                         QWidget *pParent /* = 0 */)
    46     : QIWithRetranslateUI2<QIDialog>(pParent)
     46    : QIDialog(pParent)
    4747    , m_enmType(enmType)
    4848    , m_fUsePermanent(fUsePermanent)
     
    128128}
    129129
    130 void UISharedFolderDetailsEditor::retranslateUi()
     130void UISharedFolderDetailsEditor::sltRetranslateUI()
    131131{
    132132    switch (m_enmType)
     
    233233
    234234    /* Apply language settings: */
    235     retranslateUi();
     235    sltRetranslateUI();
    236236
    237237    /* Validate the initial field values: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFolderDetailsEditor.h

    r98103 r104313  
    3434/* GUI includes: */
    3535#include "QIDialog.h"
    36 #include "QIWithRetranslateUI.h"
    3736
    3837/* Forward declarations: */
     
    4443
    4544/** QIDialog subclass used as a shared folders editor. */
    46 class SHARED_LIBRARY_STUFF UISharedFolderDetailsEditor : public QIWithRetranslateUI2<QIDialog>
     45class SHARED_LIBRARY_STUFF UISharedFolderDetailsEditor : public QIDialog
    4746{
    4847    Q_OBJECT;
     
    9695    bool isPermanent() const;
    9796
    98 protected:
     97private slots:
    9998
    10099    /** Handles translation event. */
    101     void retranslateUi() RT_OVERRIDE;
    102 
    103 private slots:
    104 
     100    void sltRetranslateUI();
    105101    /** Holds signal about folder path selected. */
    106102    void sltSelectPath();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.cpp

    r103977 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QHeaderView>
    3031#include <QMenu>
     
    342343}
    343344
    344 void UISharedFoldersEditor::retranslateUi()
     345void UISharedFoldersEditor::sltRetranslateUI()
    345346{
    346347    /* Translate tree-widget: */
     
    628629
    629630    /* Apply language settings: */
    630     retranslateUi();
     631    sltRetranslateUI();
    631632}
    632633
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.h

    r101075 r104313  
    111111protected:
    112112
    113     /** Handles translation event. */
    114     virtual void retranslateUi() RT_OVERRIDE;
    115 
    116113    /** Handles show @a pEvent. */
    117114    virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
     
    121118
    122119private slots:
     120
     121    /** Handles translation event. */
     122    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    123123
    124124    /** Performs request to adjust tree. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.cpp

    r103552 r104313  
    862862}
    863863
    864 void UIShortcutConfigurationEditor::retranslateUi()
     864void UIShortcutConfigurationEditor::sltRetranslateUI()
    865865{
    866866    m_pTabWidget->setTabText(TableIndex_Manager, tr("&VirtualBox Manager"));
     
    879879
    880880    /* Apply language settings: */
    881     retranslateUi();
     881    sltRetranslateUI();
    882882}
    883883
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.h

    r101011 r104313  
    185185    QString tabNameRuntime() const;
    186186
    187 protected:
     187private slots:
    188188
    189189    /** Handles translation event. */
    190     virtual void retranslateUi() RT_OVERRIDE;
     190    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    191191
    192192private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISnapshotFolderEditor.cpp

    r103710 r104313  
    8888}
    8989
    90 void UISnapshotFolderEditor::retranslateUi()
     90void UISnapshotFolderEditor::sltRetranslateUI()
    9191{
    9292    if (m_pLabel)
     
    125125
    126126    /* Apply language settings: */
    127     retranslateUi();
     127    sltRetranslateUI();
    128128}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISnapshotFolderEditor.h

    r101011 r104313  
    6565    void setMinimumLayoutIndent(int iIndent);
    6666
    67 protected:
     67 private slots:
    6868
    6969    /** Handles translation event. */
    70     virtual void retranslateUi() RT_OVERRIDE;
     70    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStatusBarEditor.cpp

    r103987 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QAccessibleWidget>
    3031#include <QCheckBox>
     
    4950#include "UIMachineWindow.h"
    5051#include "UIStatusBarEditor.h"
     52#include "UITranslationEventListener.h"
    5153
    5254/* Forward declarations: */
     
    6062
    6163/** QWidget subclass used as status-bar editor button. */
    62 class UIStatusBarEditorButton : public QIWithRetranslateUI<QWidget>
     64class UIStatusBarEditorButton : public QWidget
    6365{
    6466    Q_OBJECT;
     
    9597    /** Handles any Qt @a pEvent. */
    9698    virtual bool event(QEvent *pEvent) RT_OVERRIDE RT_FINAL;
    97 
    98     /** Handles translation event. */
    99     virtual void retranslateUi() RT_OVERRIDE RT_FINAL;
    10099
    101100    /** Handles paint @a pEvent. */
     
    112111    /** Handles mouse-move @a pEvent. */
    113112    virtual void mouseMoveEvent(QMouseEvent *pEvent) RT_OVERRIDE RT_FINAL;
     113
     114private slots:
     115
     116    /** Handles translation event. */
     117    void sltRetranslateUI();
    114118
    115119private:
     
    254258
    255259    /* Call to base-class: */
    256     return QIWithRetranslateUI<QWidget>::event(pEvent);
    257 }
    258 
    259 void UIStatusBarEditorButton::retranslateUi()
     260    return QWidget::event(pEvent);
     261}
     262
     263void UIStatusBarEditorButton::sltRetranslateUI()
    260264{
    261265    /* Translate tool-tip: */
     
    387391
    388392    /* Translate finally: */
    389     retranslateUi();
     393    sltRetranslateUI();
     394    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     395        this, &UIStatusBarEditorButton::sltRetranslateUI);
    390396}
    391397
     
    494500}
    495501
    496 void UIStatusBarEditorWidget::retranslateUi()
     502void UIStatusBarEditorWidget::sltRetranslateUI()
    497503{
    498504    /* Translate widget itself: */
     
    836842
    837843    /* Translate contents: */
    838     retranslateUi();
     844    sltRetranslateUI();
    839845}
    840846
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStatusBarEditor.h

    r101013 r104313  
    107107protected:
    108108
    109     /** Handles translation event. */
    110     virtual void retranslateUi() RT_OVERRIDE;
    111 
    112109    /** Handles paint @a pEvent. */
    113110    virtual void paintEvent(QPaintEvent *pEvent) RT_OVERRIDE;
     
    132129    /** Handles drag object destroy. */
    133130    void sltHandleDragObjectDestroy();
     131
     132    /** Handles translation event. */
     133    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    134134
    135135private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.cpp

    r103977 r104313  
    2929#include <QAction>
    3030#include <QAbstractItemModel>
     31#include <QApplication>
    3132#include <QCheckBox>
    3233#include <QComboBox>
     
    32363237}
    32373238
    3238 void UIStorageSettingsEditor::retranslateUi()
     3239void UIStorageSettingsEditor::sltRetranslateUI()
    32393240{
    32403241    m_pLabelSeparatorLeftPane->setText(tr("&Devices"));
     
    44584459
    44594460    /* Apply language settings: */
    4460     retranslateUi();
     4461    sltRetranslateUI();
    44614462}
    44624463
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.h

    r103803 r104313  
    223223protected:
    224224
    225     /** Handles translation event. */
    226     virtual void retranslateUi() RT_OVERRIDE;
    227 
    228225    /** Handles show @a pEvent. */
    229226    virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
     
    234231private slots:
    235232
     233    /** Handles translation event. */
     234    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    236235    /** Handles enumeration of medium with @a uMediumId. */
    237236    void sltHandleMediumEnumerated(const QUuid &uMediumId);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.cpp

    r103771 r104313  
    7777}
    7878
    79 void UITpmEditor::retranslateUi()
     79void UITpmEditor::sltRetranslateUI()
    8080{
    8181    if (m_pLabel)
     
    142142
    143143    /* Apply language settings: */
    144     retranslateUi();
     144    sltRetranslateUI();
    145145}
    146146
     
    174174
    175175        /* Retranslate finally: */
    176         retranslateUi();
     176        sltRetranslateUI();
    177177    }
    178178}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UITpmEditor.h

    r103803 r104313  
    7373protected:
    7474
    75     /** Handles translation event. */
    76     virtual void retranslateUi() RT_OVERRIDE;
    77 
    7875    /** Handles filter change. */
    7976    virtual void handleFilterChange() RT_OVERRIDE;
     77
     78private slots:
     79
     80    /** Handles translation event. */
     81    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8082
    8183private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.cpp

    r103771 r104313  
    7474}
    7575
    76 void UIUSBControllerEditor::retranslateUi()
     76void UIUSBControllerEditor::sltRetranslateUI()
    7777{
    7878    if (m_pRadioButtonUSB1)
     
    147147
    148148    /* Apply language settings: */
    149     retranslateUi();
     149    sltRetranslateUI();
    150150}
    151151
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBControllerEditor.h

    r103803 r104313  
    6666protected:
    6767
    68     /** Handles translation event. */
    69     virtual void retranslateUi() RT_OVERRIDE;
    70 
    7168    /** Handles filter change. */
    7269    virtual void handleFilterChange() RT_OVERRIDE;
     70
     71private slots:
     72
     73    /** Handles translation event. */
     74    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7375
    7476private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFilterDetailsEditor.cpp

    r104043 r104313  
    3737#include "QILineEdit.h"
    3838#include "UIConverter.h"
     39#include "UITranslationEventListener.h"
    3940#include "UIUSBFilterDetailsEditor.h"
    4041
     
    4445
    4546UIUSBFilterDetailsEditor::UIUSBFilterDetailsEditor(QWidget *pParent /* = 0 */)
    46     : QIWithRetranslateUI2<QIDialog>(pParent, Qt::Sheet)
     47    : QIDialog(pParent, Qt::Sheet)
    4748    , m_pLabelName(0)
    4849    , m_pEditorName(0)
     
    172173}
    173174
    174 void UIUSBFilterDetailsEditor::retranslateUi()
     175void UIUSBFilterDetailsEditor::sltRetranslateUI()
    175176{
    176177    setWindowTitle(tr("USB Filter Details"));
     
    255256
    256257    /* Apply language settings: */
    257     retranslateUi();
     258    sltRetranslateUI();
     259    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     260            this, &UIUSBFilterDetailsEditor::sltRetranslateUI);
    258261
    259262    /* Adjust dialog size: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFilterDetailsEditor.h

    r99178 r104313  
    3333
    3434#include "QIDialog.h"
    35 #include "QIWithRetranslateUI.h"
    3635#include "UIExtraDataDefs.h"
    3736
     
    4342
    4443/** QIDialog subclass used as a USB filter editor. */
    45 class SHARED_LIBRARY_STUFF UIUSBFilterDetailsEditor : public QIWithRetranslateUI2<QIDialog>
     44class SHARED_LIBRARY_STUFF UIUSBFilterDetailsEditor : public QIDialog
    4645{
    4746    Q_OBJECT;
     
    9796    UIRemoteMode remoteMode() const;
    9897
    99 protected:
     98private slots:
    10099
    101100    /** Handles translation event. */
    102     virtual void retranslateUi() RT_OVERRIDE;
    103 
    104 private slots:
     101    void sltRetranslateUI();
    105102
    106103    /** Performs validation for connected sender. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.cpp

    r103771 r104313  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QHeaderView>
     31#include <QHelpEvent>
    3032#include <QMenu>
    3133#include <QRegularExpression>
     
    263265}
    264266
    265 void UIUSBFiltersEditor::retranslateUi()
     267void UIUSBFiltersEditor::sltRetranslateUI()
    266268{
    267269    /* Tags: */
     
    520522
    521523    /* Apply language settings: */
    522     retranslateUi();
     524    sltRetranslateUI();
    523525}
    524526
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBFiltersEditor.h

    r101011 r104313  
    117117    QList<UIDataUSBFilter> value() const;
    118118
    119 protected:
     119private slots:
    120120
    121121    /** Handles translation event. */
    122     virtual void retranslateUi() RT_OVERRIDE;
    123 
    124 private slots:
    125 
     122    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    126123    /** Handles @a pCurrentItem change. */
    127124    void sltHandleCurrentItemChange(QTreeWidgetItem *pCurrentItem);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.cpp

    r101230 r104313  
    102102}
    103103
    104 void UIUSBSettingsEditor::retranslateUi()
     104void UIUSBSettingsEditor::sltRetranslateUI()
    105105{
    106106    if (m_pCheckboxFeature)
     
    127127
    128128    /* Apply language settings: */
    129     retranslateUi();
     129    sltRetranslateUI();
    130130}
    131131
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.h

    r103803 r104313  
    9191    /** @} */
    9292
    93 protected:
     93private slots:
    9494
    9595    /** Handles translation event. */
    96     virtual void retranslateUi() RT_OVERRIDE;
    97 
    98 private slots:
     96    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    9997
    10098    /** Handles feature toggling. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUpdateSettingsEditor.cpp

    r102037 r104313  
    6767}
    6868
    69 void UIUpdateSettingsEditor::retranslateUi()
     69void UIUpdateSettingsEditor::sltRetranslateUI()
    7070{
    7171    /* Translate check-box: */
     
    160160
    161161    /* Apply language settings: */
    162     retranslateUi();
     162    sltRetranslateUI();
    163163}
    164164
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUpdateSettingsEditor.h

    r101717 r104313  
    6363protected:
    6464
    65     /** Handles translation event. */
    66     virtual void retranslateUi() RT_OVERRIDE;
    67 
    6865    /** Handles filter change. */
    6966    virtual void handleFilterChange() RT_OVERRIDE;
     
    7572    /** Handles update period change. */
    7673    void sltHandleUpdatePeriodChange();
     74    /** Handles translation event. */
     75    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7776
    7877private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDEAuthLibraryEditor.cpp

    r103771 r104313  
    7373}
    7474
    75 void UIVRDEAuthLibraryEditor::retranslateUi()
     75void UIVRDEAuthLibraryEditor::sltRetranslateUI()
    7676{
    7777    if (m_pLabel)
     
    113113
    114114    /* Apply language settings: */
    115     retranslateUi();
     115    sltRetranslateUI();
    116116}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDEAuthLibraryEditor.h

    r101011 r104313  
    6060    void setMinimumLayoutIndent(int iIndent);
    6161
    62 protected:
     62private slots:
    6363
    6464    /** Handles translation event. */
    65     virtual void retranslateUi() RT_OVERRIDE;
     65    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    6666
    6767private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDESettingsEditor.cpp

    r101011 r104313  
    152152}
    153153
    154 void UIVRDESettingsEditor::retranslateUi()
     154void UIVRDESettingsEditor::sltRetranslateUI()
    155155{
    156156    if (m_pCheckboxFeature)
     
    212212
    213213    /* Apply language settings: */
    214     retranslateUi();
     214    sltRetranslateUI();
    215215}
    216216
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVRDESettingsEditor.h

    r103803 r104313  
    8888    bool isMultipleConnectionsAllowed() const;
    8989
    90 protected:
     90
     91private slots:
    9192
    9293    /** Handles translation event. */
    93     virtual void retranslateUi() RT_OVERRIDE;
    94 
    95 private slots:
     94    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    9695
    9796    /** Handles whether VRDE is @a fEnabled. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.cpp

    r103771 r104313  
    168168}
    169169
    170 void UIVideoMemoryEditor::retranslateUi()
     170void UIVideoMemoryEditor::sltRetranslateUI()
    171171{
    172172    if (m_pLabelMemory)
     
    310310
    311311    /* Apply language settings: */
    312     retranslateUi();
     312    sltRetranslateUI();
    313313}
    314314
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVideoMemoryEditor.h

    r103803 r104313  
    8585    void setMinimumLayoutIndent(int iIndent);
    8686
    87 protected:
     87private slots:
    8888
    8989    /** Handles translation event. */
    90     virtual void retranslateUi() RT_OVERRIDE;
    91 
    92 private slots:
    93 
     90    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    9491    /** Handles slider value changes. */
    9592    void sltHandleSliderChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.cpp

    r103803 r104313  
    8181}
    8282
    83 void UIVirtualCPUEditor::retranslateUi()
     83void UIVirtualCPUEditor::sltRetranslateUI()
    8484{
    8585    if (m_pLabelVCPU)
     
    221221
    222222    /* Apply language settings: */
    223     retranslateUi();
    224 }
     223    sltRetranslateUI();
     224}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVirtualCPUEditor.h

    r101011 r104313  
    6969    void setMinimumLayoutIndent(int iIndent);
    7070
    71 protected:
     71private slots:
    7272
    7373    /** Handles translation event. */
    74     virtual void retranslateUi() RT_OVERRIDE;
    75 
    76 private slots:
    77 
     74    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7875    /** Handles slider value changes. */
    7976    void sltHandleSliderChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.cpp

    r103710 r104313  
    8686}
    8787
    88 void UIVisualStateEditor::retranslateUi()
     88void UIVisualStateEditor::sltRetranslateUI()
    8989{
    9090    if (m_pLabel)
     
    145145
    146146    /* Apply language settings: */
    147     retranslateUi();
     147    sltRetranslateUI();
    148148}
    149149
     
    186186
    187187        /* Retranslate finally: */
    188         retranslateUi();
     188        sltRetranslateUI();
    189189    }
    190190}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIVisualStateEditor.h

    r101011 r104313  
    7070    void setMinimumLayoutIndent(int iIndent);
    7171
    72 protected:
     72private slots:
    7373
    7474    /** Handles translation event. */
    75     virtual void retranslateUi() RT_OVERRIDE;
     75    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7676
    7777private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.cpp

    r101717 r104313  
    190190}
    191191
    192 void UIGlobalSettingsDisplay::retranslateUi()
     192void UIGlobalSettingsDisplay::sltRetranslateUI()
    193193{
    194194    updateMinimumLayoutHint();
     
    210210
    211211    /* Apply language settings: */
    212     retranslateUi();
     212    sltRetranslateUI();
    213213}
    214214
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.h

    r101717 r104313  
    7474    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7575
    76     /** Handles translation event. */
    77     virtual void retranslateUi() RT_OVERRIDE;
    78 
    7976    /** Handles filter change. */
    8077    virtual void handleFilterChange() RT_OVERRIDE;
     78
     79private slots:
     80
     81    /** Handles translation event. */
     82    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8183
    8284private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.cpp

    r103710 r104313  
    181181}
    182182
    183 void UIGlobalSettingsGeneral::retranslateUi()
     183void UIGlobalSettingsGeneral::sltRetranslateUI()
    184184{
    185185    updateMinimumLayoutHint();
     
    201201
    202202    /* Apply language settings: */
    203     retranslateUi();
     203    sltRetranslateUI();
    204204}
    205205
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.h

    r103610 r104313  
    7575    virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE;
    7676
    77     /** Handles translation event. */
    78     virtual void retranslateUi() RT_OVERRIDE;
    79 
    8077    /** Handles filter change. */
    8178    virtual void handleFilterChange() RT_OVERRIDE;
     79
     80private slots:
     81
     82    /** Handles translation event. */
     83    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8284
    8385private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.cpp

    r101241 r104313  
    3737#include "UIShortcutPool.h"
    3838#include "UITranslator.h"
    39 
    4039
    4140/** Global settings: Input page data structure. */
     
    204203}
    205204
    206 void UIGlobalSettingsInput::retranslateUi()
     205void UIGlobalSettingsInput::sltRetranslateUI()
    207206{
    208207}
     
    218217
    219218    /* Apply language settings: */
    220     retranslateUi();
     219    sltRetranslateUI();
    221220}
    222221
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.h

    r101241 r104313  
    7575    virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE;
    7676
     77private slots:
     78
    7779    /** Handles translation event. */
    78     virtual void retranslateUi() RT_OVERRIDE;
     80    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7981
    8082private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInterface.cpp

    r101230 r104313  
    145145}
    146146
    147 void UIGlobalSettingsInterface::retranslateUi()
     147void UIGlobalSettingsInterface::sltRetranslateUI()
    148148{
    149149}
     
    159159
    160160    /* Apply language settings: */
    161     retranslateUi();
     161    sltRetranslateUI();
    162162}
    163163
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInterface.h

    r101053 r104313  
    7171    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7272
     73private slots:
     74
    7375    /** Handles translation event. */
    74     virtual void retranslateUi() RT_OVERRIDE;
     76    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7577
    7678private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp

    r101230 r104313  
    142142}
    143143
    144 void UIGlobalSettingsLanguage::retranslateUi()
     144void UIGlobalSettingsLanguage::sltRetranslateUI()
    145145{
    146146}
     
    156156
    157157    /* Apply language settings: */
    158     retranslateUi();
     158    sltRetranslateUI();
    159159}
    160160
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.h

    r101053 r104313  
    7171    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7272
     73private slots:
    7374    /** Handles translation event. */
    74     virtual void retranslateUi() RT_OVERRIDE;
     75    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7576
    7677private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp

    r101241 r104313  
    207207}
    208208
    209 void UIGlobalSettingsProxy::retranslateUi()
     209void UIGlobalSettingsProxy::sltRetranslateUI()
    210210{
    211211}
     
    221221
    222222    /* Apply language settings: */
    223     retranslateUi();
     223    sltRetranslateUI();
    224224}
    225225
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.h

    r101241 r104313  
    7575    virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE;
    7676
     77private slots:
     78
    7779    /** Handles translation event. */
    78     virtual void retranslateUi() RT_OVERRIDE;
     80    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7981
    8082private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp

    r101230 r104313  
    145145}
    146146
    147 void UIGlobalSettingsUpdate::retranslateUi()
     147void UIGlobalSettingsUpdate::sltRetranslateUI()
    148148{
    149149}
     
    159159
    160160    /* Apply language settings: */
    161     retranslateUi();
     161    sltRetranslateUI();
    162162}
    163163
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.h

    r101053 r104313  
    7272    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7373
     74private slots:
     75
    7476    /** Handles translation event. */
    75     virtual void retranslateUi() RT_OVERRIDE;
     77    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7678
    7779private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp

    r101230 r104313  
    189189}
    190190
    191 void UIMachineSettingsAudio::retranslateUi()
     191void UIMachineSettingsAudio::sltRetranslateUI()
    192192{
    193193}
     
    216216
    217217    /* Apply language settings: */
    218     retranslateUi();
     218    sltRetranslateUI();
    219219}
    220220
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.h

    r98103 r104313  
    7171    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7272
    73     /** Handles translation event. */
    74     virtual void retranslateUi() RT_OVERRIDE;
    75 
    7673    /** Performs final page polishing. */
    7774    virtual void polishPage() RT_OVERRIDE;
     75
     76private slots:
     77
     78    /** Handles translation event. */
     79    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    7880
    7981private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r103771 r104313  
    752752}
    753753
    754 void UIMachineSettingsDisplay::retranslateUi()
     754void UIMachineSettingsDisplay::sltRetranslateUI()
    755755{
    756756    /* Translate tab-widget: */
     
    844844
    845845    /* Apply language settings: */
    846     retranslateUi();
     846    sltRetranslateUI();
    847847}
    848848
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.h

    r103803 r104313  
    102102    virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE;
    103103
    104     /** Handles translation event. */
    105     virtual void retranslateUi() RT_OVERRIDE;
    106 
    107104    /** Handles filter change. */
    108105    virtual void handleFilterChange() RT_OVERRIDE;
     
    121118    void sltHandle3DAccelerationFeatureStateChange();
    122119#endif
     120    /** Handles translation event. */
     121    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    123122
    124123private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r103771 r104313  
    459459}
    460460
    461 void UIMachineSettingsGeneral::retranslateUi()
     461void UIMachineSettingsGeneral::sltRetranslateUI()
    462462{
    463463    m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabBasic), tr("Basi&c"));
     
    525525
    526526    /* Apply language settings: */
    527     retranslateUi();
     527    sltRetranslateUI();
    528528}
    529529
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.h

    r101752 r104313  
    8686    virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE;
    8787
    88     /** Handles translation event. */
    89     virtual void retranslateUi() RT_OVERRIDE;
    90 
    9188    /** Handles filter change. */
    9289    virtual void handleFilterChange() RT_OVERRIDE;
     
    10198    /** Handles encryption password change. */
    10299    void sltHandleEncryptionPasswordChanged();
     100    /** Handles translation event. */
     101    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    103102
    104103private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp

    r103552 r104313  
    333333}
    334334
    335 void UIMachineSettingsInterface::retranslateUi()
     335void UIMachineSettingsInterface::sltRetranslateUI()
    336336{
    337337    updateMinimumLayoutHint();
     
    369369
    370370    /* Apply language settings: */
    371     retranslateUi();
     371    sltRetranslateUI();
    372372}
    373373
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.h

    r101717 r104313  
    7676    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7777
    78     /** Handles translation event. */
    79     virtual void retranslateUi() RT_OVERRIDE;
    80 
    8178    /** Handles filter change. */
    8279    virtual void handleFilterChange() RT_OVERRIDE;
     
    8481    /** Performs final page polishing. */
    8582    virtual void polishPage() RT_OVERRIDE;
     83
     84private slots:
     85
     86    /** Handles translation event. */
     87    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8688
    8789private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp

    r103771 r104313  
    278278
    279279    /* Apply language settings: */
    280     retranslateUi();
     280    sltRetranslateUI();
    281281
    282282    /* Polish page finally: */
     
    335335}
    336336
    337 void UIMachineSettingsNetwork::retranslateUi()
     337void UIMachineSettingsNetwork::sltRetranslateUI()
    338338{
    339339    /* Sanity check: */
     
    434434
    435435    /* Apply language settings: */
    436     retranslateUi();
     436    sltRetranslateUI();
    437437}
    438438
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.h

    r101717 r104313  
    9898    virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE;
    9999
    100     /** Handles translation event. */
    101     virtual void retranslateUi() RT_OVERRIDE;
    102 
    103100    /** Handles filter change. */
    104101    virtual void handleFilterChange() RT_OVERRIDE;
     
    111108    /** Handles adapter alternative name change. */
    112109    void sltHandleAlternativeNameChange();
     110
     111    /** Handles translation event. */
     112    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    113113
    114114private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp

    r100896 r104313  
    3131
    3232/* GUI includes: */
     33#include "QIDialogButtonBox.h"
    3334#include "UIDesktopWidgetWatchdog.h"
    3435#include "UIMachineSettingsPortForwardingDlg.h"
    3536#include "UIIconPool.h"
    3637#include "UIMessageCenter.h"
    37 #include "QIDialogButtonBox.h"
    38 
     38#include "UITranslationEventListener.h"
    3939
    4040UIMachineSettingsPortForwardingDlg::UIMachineSettingsPortForwardingDlg(QWidget *pParent,
    4141                                                                       const UIPortForwardingDataList &rules)
    42     : QIWithRetranslateUI<QIDialog>(pParent)
     42    : QIDialog(pParent)
    4343    , m_pTable(0)
    4444    , m_pButtonBox(0)
     
    7373
    7474    /* Retranslate dialog: */
    75     retranslateUi();
     75    sltRetranslateUI();
     76    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     77            this, &UIMachineSettingsPortForwardingDlg::sltRetranslateUI);
    7678
    7779    /* Limit the minimum size to 33% of screen size: */
     
    9395        return;
    9496    /* Call to base-class: */
    95     QIWithRetranslateUI<QIDialog>::accept();
     97    QIDialog::accept();
    9698}
    9799
     
    103105        return;
    104106    /* Call to base-class: */
    105     QIWithRetranslateUI<QIDialog>::reject();
     107    QIDialog::reject();
    106108}
    107109
    108 void UIMachineSettingsPortForwardingDlg::retranslateUi()
     110void UIMachineSettingsPortForwardingDlg::sltRetranslateUI()
    109111{
    110112    /* Set window title: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.h

    r103977 r104313  
    3333
    3434/* GUI includes: */
    35 #include "QIWithRetranslateUI.h"
    3635#include "QIDialog.h"
    3736#include "UIPortForwardingTable.h"
     
    4140
    4241/* Machine settings / Network page / NAT attachment / Port forwarding dialog: */
    43 class SHARED_LIBRARY_STUFF UIMachineSettingsPortForwardingDlg : public QIWithRetranslateUI<QIDialog>
     42class SHARED_LIBRARY_STUFF UIMachineSettingsPortForwardingDlg : public QIDialog
    4443{
    4544    Q_OBJECT;
     
    5857    void accept() RT_OVERRIDE;
    5958    void reject() RT_OVERRIDE;
     59    /* Handler: Translation stuff: */
     60    void sltRetranslateUI();
    6061
    6162private:
    62 
    63     /* Handler: Translation stuff: */
    64     virtual void retranslateUi() RT_OVERRIDE;
    6563
    6664    /* Widgets: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r101230 r104313  
    207207}
    208208
    209 void UIMachineSettingsSF::retranslateUi()
     209void UIMachineSettingsSF::sltRetranslateUI()
    210210{
    211211}
     
    230230
    231231    /* Apply language settings: */
    232     retranslateUi();
     232    sltRetranslateUI();
    233233}
    234234
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h

    r101072 r104313  
    7878    virtual void saveFromCacheTo(QVariant &data) RT_OVERRIDE;
    7979
    80     /** Handles translation event. */
    81     virtual void retranslateUi() RT_OVERRIDE;
    82 
    8380    /** Performs final page polishing. */
    8481    virtual void polishPage() RT_OVERRIDE;
     82
     83private slots:
     84
     85    /** Handles translation event. */
     86    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8587
    8688private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp

    r103771 r104313  
    189189
    190190    /* Apply language settings: */
    191     retranslateUi();
     191    sltRetranslateUI();
    192192
    193193    /* Polish page finally: */
     
    246246}
    247247
    248 void UIMachineSettingsSerial::retranslateUi()
     248void UIMachineSettingsSerial::sltRetranslateUI()
    249249{
    250250    /* Sanity check: */
     
    296296
    297297    /* Apply language settings: */
    298     retranslateUi();
     298    sltRetranslateUI();
    299299}
    300300
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h

    r101607 r104313  
    8282    virtual bool validate(QList<UIValidationMessage> &messages) RT_OVERRIDE;
    8383
    84     /** Handles translation event. */
    85     virtual void retranslateUi() RT_OVERRIDE;
    86 
    8784    /** Performs final page polishing. */
    8885    virtual void polishPage() RT_OVERRIDE;
     
    9491    /** Handles path change. */
    9592    void sltHandlePathChange();
     93    /** Handles translation event. */
     94    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    9695
    9796private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r101230 r104313  
    458458}
    459459
    460 void UIMachineSettingsStorage::retranslateUi()
     460void UIMachineSettingsStorage::sltRetranslateUI()
    461461{
    462462}
     
    482482
    483483    /* Apply language settings: */
    484     retranslateUi();
     484    sltRetranslateUI();
    485485}
    486486
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h

    r103803 r104313  
    9393    virtual void setConfigurationAccessLevel(ConfigurationAccessLevel enmLevel) RT_OVERRIDE;
    9494
    95     /** Handles translation event. */
    96     virtual void retranslateUi() RT_OVERRIDE;
    97 
    9895    /** Performs final page polishing. */
    9996    virtual void polishPage() RT_OVERRIDE;
     97
     98private slots:
     99
     100    /** Handles translation event. */
     101    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    100102
    101103private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r103820 r104313  
    613613}
    614614
    615 void UIMachineSettingsSystem::retranslateUi()
     615void UIMachineSettingsSystem::sltRetranslateUI()
    616616{
    617617    m_pTabWidget->setTabText(m_pTabWidget->indexOf(m_pTabMotherboard), tr("&Motherboard"));
     
    679679
    680680    /* Apply language settings: */
    681     retranslateUi();
     681    sltRetranslateUI();
    682682}
    683683
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h

    r103803 r104313  
    113113    virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE;
    114114
    115     /** Handles translation event. */
    116     virtual void retranslateUi() RT_OVERRIDE;
    117 
    118115    /** Handles filter change. */
    119116    virtual void handleFilterChange() RT_OVERRIDE;
     
    121118    /** Performs final page polishing. */
    122119    virtual void polishPage() RT_OVERRIDE;
     120
     121private slots:
     122
     123    /** Handles translation event. */
     124    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    123125
    124126private:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r103710 r104313  
    312312}
    313313
    314 void UIMachineSettingsUSB::retranslateUi()
     314void UIMachineSettingsUSB::sltRetranslateUI()
    315315{
    316316}
     
    335335
    336336    /* Apply language settings: */
    337     retranslateUi();
     337    sltRetranslateUI();
    338338}
    339339
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.h

    r98103 r104313  
    8282    virtual void setOrderAfter(QWidget *pWidget) RT_OVERRIDE;
    8383
    84     /** Handles translation event. */
    85     virtual void retranslateUi() RT_OVERRIDE;
    86 
    8784    /** Performs final page polishing. */
    8885    virtual void polishPage() RT_OVERRIDE;
     86
     87private slots:
     88
     89    /** Handles translation event. */
     90    virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
    8991
    9092private:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette