VirtualBox

Changeset 104251 in vbox


Ignore:
Timestamp:
Apr 9, 2024 12:36:47 PM (8 months ago)
Author:
vboxsync
Message:

FE/Qt. bugref:10622. Using new UITranslationEventListener in the manager UI classes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
46 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r103987 r104251  
    7373#include "UINotificationCenter.h"
    7474#include "UIQObjectStuff.h"
     75#include "UITranslationEventListener.h"
    7576#include "UIVirtualBoxManager.h"
    7677#include "UIVirtualBoxManagerWidget.h"
     
    117118
    118119/** QDialog extension used to ask for a public key for console connection needs. */
    119 class UIAcquirePublicKeyDialog : public QIWithRetranslateUI<QDialog>
     120class UIAcquirePublicKeyDialog : public QDialog
    120121{
    121122    Q_OBJECT;
     
    142143    void sltRevalidate();
    143144
    144 protected:
    145 
    146145    /** Handles translation event. */
    147     virtual void retranslateUi() RT_OVERRIDE RT_FINAL;
     146    void sltRetranslateUI();
    148147
    149148private:
     
    174173
    175174/** QDialog extension used to ask for a cloud machine clone name. */
    176 class UIAcquireCloudMachineCloneNameDialog : public QIWithRetranslateUI<QDialog>
     175class UIAcquireCloudMachineCloneNameDialog : public QDialog
    177176{
    178177    Q_OBJECT;
     
    187186    QString value() const;
    188187
    189 protected:
     188private slots:
    190189
    191190    /** Handles translation event. */
    192     virtual void retranslateUi() RT_OVERRIDE RT_FINAL;
    193 
    194 private slots:
     191    void sltRetranslateUI();
    195192
    196193    /** Performs revalidation. */
     
    219216
    220217UIAcquirePublicKeyDialog::UIAcquirePublicKeyDialog(QWidget *pParent /* = 0 */)
    221     : QIWithRetranslateUI<QDialog>(pParent)
     218    : QDialog(pParent)
    222219    , m_pHelpViewer(0)
    223220    , m_pTextEditor(0)
     
    271268}
    272269
    273 void UIAcquirePublicKeyDialog::retranslateUi()
     270void UIAcquirePublicKeyDialog::sltRetranslateUI()
    274271{
    275272    setWindowTitle(tr("Public key"));
     
    318315    prepareEditorContents();
    319316    /* Apply language settings: */
    320     retranslateUi();
     317    sltRetranslateUI();
     318    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     319            this, &UIAcquirePublicKeyDialog::sltRetranslateUI);
    321320
    322321    /* Resize to suitable size: */
     
    481480
    482481UIAcquireCloudMachineCloneNameDialog::UIAcquireCloudMachineCloneNameDialog(QWidget *pParent, const QString &strName)
    483     : QIWithRetranslateUI<QDialog>(pParent)
     482    : QDialog(pParent)
    484483    , m_strName(strName)
    485484    , m_pEditor(0)
     
    500499    prepareWidgets();
    501500    /* Apply language settings: */
    502     retranslateUi();
     501    sltRetranslateUI();
     502    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     503            this, &UIAcquireCloudMachineCloneNameDialog::sltRetranslateUI);
    503504
    504505    /* Resize to suitable size: */
     
    538539}
    539540
    540 void UIAcquireCloudMachineCloneNameDialog::retranslateUi()
     541void UIAcquireCloudMachineCloneNameDialog::sltRetranslateUI()
    541542{
    542543    setWindowTitle(tr("Clone name"));
     
    617618    /* Ignore for non-active window except for FileOpen event which should be always processed: */
    618619    if (!isActiveWindow() && pEvent->type() != QEvent::FileOpen)
    619         return QMainWindowWithRestorableGeometryAndRetranslateUi::eventFilter(pObject, pEvent);
     620        return QMainWindowWithRestorableGeometry::eventFilter(pObject, pEvent);
    620621
    621622    /* Ignore for other objects: */
    622623    if (qobject_cast<QWidget*>(pObject) &&
    623624        qobject_cast<QWidget*>(pObject)->window() != this)
    624         return QMainWindowWithRestorableGeometryAndRetranslateUi::eventFilter(pObject, pEvent);
     625        return QMainWindowWithRestorableGeometry::eventFilter(pObject, pEvent);
    625626
    626627    /* Which event do we have? */
     
    639640
    640641    /* Call to base-class: */
    641     return QMainWindowWithRestorableGeometryAndRetranslateUi::eventFilter(pObject, pEvent);
     642    return QMainWindowWithRestorableGeometry::eventFilter(pObject, pEvent);
    642643}
    643644#endif /* VBOX_WS_MAC */
    644645
    645 void UIVirtualBoxManager::retranslateUi()
     646void UIVirtualBoxManager::sltRetranslateUI()
    646647{
    647648    /* Set window title: */
     
    697698    }
    698699    /* Call to base-class: */
    699     return QMainWindowWithRestorableGeometryAndRetranslateUi::event(pEvent);
     700    return QMainWindowWithRestorableGeometry::event(pEvent);
    700701}
    701702
     
    703704{
    704705    /* Call to base-class: */
    705     QMainWindowWithRestorableGeometryAndRetranslateUi::showEvent(pEvent);
     706    QMainWindowWithRestorableGeometry::showEvent(pEvent);
    706707
    707708    /* Is polishing required? */
     
    724725{
    725726    /* Call to base-class: */
    726     QMainWindowWithRestorableGeometryAndRetranslateUi::closeEvent(pEvent);
     727    QMainWindowWithRestorableGeometry::closeEvent(pEvent);
    727728
    728729    /* Quit application: */
     
    23962397
    23972398    /* Translate UI: */
    2398     retranslateUi();
     2399    sltRetranslateUI();
     2400    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     2401            this, &UIVirtualBoxManager::sltRetranslateUI);
    23992402
    24002403#ifdef VBOX_WS_MAC
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h

    r103549 r104251  
    3939/* GUI includes: */
    4040#include "QIWithRestorableGeometry.h"
    41 #include "QIWithRetranslateUI.h"
    4241#include "UIAdvancedSettingsDialog.h"
    4342#include "UICloudMachineSettingsDialog.h"
     
    6059/* Type definitions: */
    6160typedef QIWithRestorableGeometry<QMainWindow> QMainWindowWithRestorableGeometry;
    62 typedef QIWithRetranslateUI<QMainWindowWithRestorableGeometry> QMainWindowWithRestorableGeometryAndRetranslateUi;
    6361
    6462/** Singleton QMainWindow extension used as VirtualBox Manager instance. */
    65 class UIVirtualBoxManager : public QMainWindowWithRestorableGeometryAndRetranslateUi
     63class UIVirtualBoxManager : public QMainWindowWithRestorableGeometry
    6664{
    6765    Q_OBJECT;
     
    106104        virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
    107105#endif
    108 
    109         /** Handles translation event. */
    110         virtual void retranslateUi() RT_OVERRIDE;
    111106
    112107        /** Handles any Qt @a pEvent. */
     
    173168        /** Handles state change for cloud machine with certain @a uId. */
    174169        void sltHandleCloudMachineStateChange(const QUuid &uId);
     170
     171        /** Handles translation event. */
     172        void sltRetranslateUI();
    175173    /** @} */
    176174
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r104054 r104251  
    4949#include "UITabBar.h"
    5050#include "QIToolBar.h"
     51#include "UITranslationEventListener.h"
    5152#include "UIVirtualBoxEventHandler.h"
    5253#include "UIVirtualMachineItemCloud.h"
     
    348349}
    349350
    350 void UIVirtualBoxManagerWidget::retranslateUi()
     351void UIVirtualBoxManagerWidget::sltRetranslateUI()
    351352{
    352353    /* Make sure chosen item fetched: */
     
    627628
    628629    /* Translate UI: */
    629     retranslateUi();
     630    sltRetranslateUI();
     631    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     632            this, &UIVirtualBoxManagerWidget::sltRetranslateUI);
    630633
    631634    /* Make sure current Chooser-pane index fetched: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h

    r103023 r104251  
    3737
    3838/* GUI includes: */
    39 #include "QIWithRetranslateUI.h"
    4039#include "UISlidingAnimation.h"
    4140#include "UIToolPaneGlobal.h"
     
    5554
    5655/** QWidget extension used as VirtualBox Manager Widget instance. */
    57 class UIVirtualBoxManagerWidget : public QIWithRetranslateUI<QWidget>
     56class UIVirtualBoxManagerWidget : public QWidget
    5857{
    5958    Q_OBJECT;
     
    261260    /** @} */
    262261
    263 protected:
     262private slots:
    264263
    265264    /** @name Event handling stuff.
    266265      * @{ */
    267266        /** Handles translation event. */
    268         virtual void retranslateUi() RT_OVERRIDE;
    269     /** @} */
    270 
    271 private slots:
     267        void sltRetranslateUI();
     268    /** @} */
    272269
    273270    /** @name General stuff.
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItem.h

    r98103 r104251  
    3939
    4040/* GUI includes: */
    41 #include "QIWithRetranslateUI.h"
    4241#include "UIManagerDefs.h"
    4342#include "UISettingsDefs.h"
     
    5150
    5251/** Virtual Machine item interface. A wrapper caching VM data. */
    53 class UIVirtualMachineItem : public QIWithRetranslateUI3<QObject>
     52class UIVirtualMachineItem : public QObject
    5453{
    5554    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp

    r103710 r104251  
    3737#include "UINotificationCenter.h"
    3838#include "UIProgressTask.h"
     39#include "UITranslationEventListener.h"
    3940#include "UIThreadPool.h"
    4041#include "UIVirtualMachineItemCloud.h"
     
    269270
    270271    /* Retranslate finally: */
    271     retranslateUi();
     272    sltRetranslateUI();
     273    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     274            this, &UIVirtualMachineItemCloud::sltRetranslateUI);
    272275}
    273276
     
    341344}
    342345
    343 void UIVirtualMachineItemCloud::retranslateUi()
     346void UIVirtualMachineItemCloud::sltRetranslateUI()
    344347{
    345348    /* If machine is accessible: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.h

    r103803 r104251  
    128128    /** @} */
    129129
    130 protected:
     130private slots:
    131131
    132132    /** @name Event handling.
    133133      * @{ */
    134134        /** Handles translation event. */
    135         virtual void retranslateUi() RT_OVERRIDE;
     135        void sltRetranslateUI();
    136136    /** @} */
    137137
    138 private slots:
    139 
    140         /** Handles signal about cloud VM info refresh progress is done. */
    141         void sltHandleRefreshCloudMachineInfoDone();
     138    /** Handles signal about cloud VM info refresh progress is done. */
     139    void sltHandleRefreshCloudMachineInfoDone();
    142140
    143141private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp

    r98103 r104251  
    3636#include "UIExtraDataManager.h"
    3737#include "UIIconPool.h"
     38#include "UITranslationEventListener.h"
    3839#include "UIVirtualMachineItemLocal.h"
    3940#ifdef VBOX_WS_MAC
     
    160161
    161162    /* Retranslate finally: */
    162     retranslateUi();
     163    sltRetranslateUI();
     164    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     165            this, &UIVirtualMachineItemLocal::sltRetranslateUI);
    163166}
    164167
     
    263266}
    264267
    265 void UIVirtualMachineItemLocal::retranslateUi()
     268void UIVirtualMachineItemLocal::sltRetranslateUI()
    266269{
    267270    /* This is used in tool-tip generation: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.h

    r98103 r104251  
    117117    /** @} */
    118118
    119 protected:
     119private slots:
    120120
    121121    /** @name Event handling.
    122122      * @{ */
    123123        /** Handles translation event. */
    124         virtual void retranslateUi() RT_OVERRIDE;
     124        void sltRetranslateUI();
    125125    /** @} */
    126126
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIWelcomePane.cpp

    r103094 r104251  
    3636/* GUI includes */
    3737#include "QIRichTextLabel.h"
    38 #include "QIWithRetranslateUI.h"
    3938#include "UICommon.h"
    4039#include "UIDesktopWidgetWatchdog.h"
    4140#include "UIExtraDataManager.h"
    4241#include "UIIconPool.h"
     42#include "UITranslationEventListener.h"
    4343#include "UIWelcomePane.h"
    4444
     
    4949
    5050UIWelcomePane::UIWelcomePane(QWidget *pParent /* = 0 */)
    51     : QIWithRetranslateUI<QWidget>(pParent)
     51    : QWidget(pParent)
    5252    , m_pLabelGreetings(0)
    5353    , m_pLabelMode(0)
     
    7575
    7676    /* Call to base-class: */
    77     return QIWithRetranslateUI<QWidget>::event(pEvent);
    78 }
    79 
    80 void UIWelcomePane::retranslateUi()
     77    return QWidget::event(pEvent);
     78}
     79
     80void UIWelcomePane::sltRetranslateUI()
    8181{
    8282    /* Translate greetings text: */
     
    225225
    226226    /* Translate finally: */
    227     retranslateUi();
     227    sltRetranslateUI();
     228    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     229            this, &UIWelcomePane::sltRetranslateUI);
     230
    228231    /* Update stuff: */
    229232    updateTextLabels();
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIWelcomePane.h

    r103094 r104251  
    3737
    3838/* GUI includes: */
    39 #include "QIWithRetranslateUI.h"
     39#include "UILibraryDefs.h"
    4040
    4141/* Forward declarations: */
     
    4545
    4646/** QWidget subclass holding Welcome information about VirtualBox. */
    47 class UIWelcomePane : public QIWithRetranslateUI<QWidget>
     47class UIWelcomePane : public QWidget
    4848{
    4949    Q_OBJECT;
     
    5959    virtual bool event(QEvent *pEvent) RT_OVERRIDE;
    6060
    61     /** Handles translation event. */
    62     virtual void retranslateUi() RT_OVERRIDE;
    63 
    6461private slots:
    6562
     
    6966    /** Handles @a pButton click. */
    7067    void sltHandleButtonClicked(QAbstractButton *pButton);
     68
     69    /** Handles translation event. */
     70    void sltRetranslateUI();
    7171
    7272private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp

    r98103 r104251  
    239239UIChooserItem::UIChooserItem(UIChooserItem *pParent, UIChooserNode *pNode,
    240240                             int iDefaultValue /* = 0 */, int iHoveredValue /* = 100 */)
    241     : QIWithRetranslateUI4<QIGraphicsWidget>(pParent)
     241    : QIGraphicsWidget(pParent)
    242242    , m_pParent(pParent)
    243243    , m_pNode(pNode)
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h

    r103988 r104251  
    4141/* GUI includes: */
    4242#include "QIGraphicsWidget.h"
    43 #include "QIWithRetranslateUI.h"
    4443#include "UIChooserDefs.h"
    4544
     
    8483/** QIGraphicsWidget extension used as interface
    8584  * for graphics chooser model/view architecture. */
    86 class UIChooserItem : public QIWithRetranslateUI4<QIGraphicsWidget>
     85class UIChooserItem : public QIGraphicsWidget
    8786{
    8887    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp

    r102423 r104251  
    3939#include "UIIconPool.h"
    4040#include "UIImageTools.h"
     41#include "UITranslationEventListener.h"
    4142#include "UIVirtualBoxManager.h"
    4243
     
    122123}
    123124
    124 void UIChooserItemGlobal::retranslateUi()
     125void UIChooserItemGlobal::sltRetranslateUI()
    125126{
    126127}
     
    379380
    380381    /* Apply language settings: */
    381     retranslateUi();
     382    sltRetranslateUI();
     383    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     384            this, &UIChooserItemGlobal::sltRetranslateUI);
    382385}
    383386
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.h

    r102423 r104251  
    7777    /** @name Event-handling stuff.
    7878      * @{ */
    79         /** Handles translation event. */
    80         virtual void retranslateUi() RT_OVERRIDE;
    81 
    8279        /** Handles show @a pEvent. */
    8380        virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
     
    170167        /** Handles top-level window remaps. */
    171168        void sltHandleWindowRemapped();
     169    /** @} */
     170
     171    /** @name Event handling stuff.
     172     * @{ */
     173       /** Handles translation event. */
     174       void sltRetranslateUI();
    172175    /** @} */
    173176
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp

    r101559 r104251  
    4949#include "UIIconPool.h"
    5050#include "UIImageTools.h"
     51#include "UITranslationEventListener.h"
    5152#include "UIVirtualBoxManager.h"
    5253#include "UIVirtualMachineItem.h"
     
    206207}
    207208
    208 void UIChooserItemGroup::retranslateUi()
     209void UIChooserItemGroup::sltRetranslateUI()
    209210{
    210211    updateToggleButtonToolTip();
     
    11841185
    11851186    /* Apply language settings: */
    1186     retranslateUi();
     1187    sltRetranslateUI();
     1188    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     1189            this, &UIChooserItemGroup::sltRetranslateUI);
    11871190
    11881191    /* Initialize non-root items: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.h

    r98103 r104251  
    3232#endif
    3333
     34/* Qt includes: */
     35#include <QWidget>
     36
    3437/* GUI includes: */
    3538#include "UIChooserItem.h"
     
    130133    /** @name Event-handling stuff.
    131134      * @{ */
    132         /** Handles translation event. */
    133         virtual void retranslateUi() RT_OVERRIDE;
    134 
    135135        /** Handles show @a pEvent. */
    136136        virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
     
    236236        /** Handles group toggle finish for group finally @a fToggled. */
    237237        void sltGroupToggleFinish(bool fToggled);
     238    /** @} */
     239
     240    /** @name Event handling stuff.
     241      * @{ */
     242        /** Handles translation event. */
     243        void sltRetranslateUI();
    238244    /** @} */
    239245
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp

    r102836 r104251  
    4141#include "UIIconPool.h"
    4242#include "UIImageTools.h"
     43#include "UITranslationEventListener.h"
    4344#include "UIVirtualBoxManager.h"
    4445#include "UIVirtualMachineItemCloud.h"
     
    178179}
    179180
    180 void UIChooserItemMachine::retranslateUi()
     181void UIChooserItemMachine::sltRetranslateUI()
    181182{
    182183}
     
    611612
    612613    /* Apply language settings: */
    613     retranslateUi();
     614    sltRetranslateUI();
     615    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     616            this, &UIChooserItemMachine::sltRetranslateUI);
    614617}
    615618
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.h

    r98103 r104251  
    9595    /** @name Event-handling stuff.
    9696      * @{ */
    97         /** Handles translation event. */
    98         virtual void retranslateUi() RT_OVERRIDE;
    99 
    10097        /** Handles show @a pEvent. */
    10198        virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
     
    191188        /** Updates first row maximum width. */
    192189        void sltUpdateFirstRowMaximumWidth() { updateFirstRowMaximumWidth(); }
     190    /** @} */
     191
     192    /** @name Event handling stuff.
     193     * @{ */
     194       /** Handles translation event. */
     195       void sltRetranslateUI();
    193196    /** @} */
    194197
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNode.cpp

    r98103 r104251  
    3737
    3838UIChooserNode::UIChooserNode(UIChooserNode *pParent /* = 0 */, bool fFavorite /* = false */)
    39     : QIWithRetranslateUI3<QObject>(pParent)
     39    : QObject(pParent)
    4040    , m_pParent(pParent)
    4141    , m_fFavorite(fFavorite)
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNode.h

    r98103 r104251  
    3838
    3939/* GUI includes: */
    40 #include "QIWithRetranslateUI.h"
    4140#include "UIChooserDefs.h"
    4241#include "UIChooserItem.h"
     
    5251  * These nodes can be of three types (group, global and machine node).
    5352  * They can be used to compose a tree of nodes loaded from VBox setting. */
    54 class UIChooserNode : public QIWithRetranslateUI3<QObject>
     53class UIChooserNode : public QObject
    5554{
    5655    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGlobal.cpp

    r98103 r104251  
    2929#include "UIChooserAbstractModel.h"
    3030#include "UIChooserNodeGlobal.h"
     31#include "UITranslationEventListener.h"
    3132
    3233/* Other VBox includes: */
     
    4546
    4647    /* Apply language settings: */
    47     retranslateUi();
     48    sltRetranslateUI();
     49    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     50            this, &UIChooserNodeGlobal::sltRetranslateUI);
    4851}
    4952
     
    5861
    5962    /* Apply language settings: */
    60     retranslateUi();
     63    sltRetranslateUI();
     64    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     65            this, &UIChooserNodeGlobal::sltRetranslateUI);
    6166}
    6267
     
    171176}
    172177
    173 void UIChooserNodeGlobal::retranslateUi()
     178void UIChooserNodeGlobal::sltRetranslateUI()
    174179{
    175180    /* Translate name & description: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGlobal.h

    r98103 r104251  
    100100    virtual void sortNodes() RT_OVERRIDE;
    101101
    102 protected:
     102private slots:
    103103
    104104    /** Handles translation event. */
    105     virtual void retranslateUi() RT_OVERRIDE;
     105    void sltRetranslateUI();
    106106
    107107private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.cpp

    r100554 r104251  
    3131#include "UIChooserNodeGlobal.h"
    3232#include "UIChooserNodeMachine.h"
     33#include "UITranslationEventListener.h"
    3334
    3435/* Other VBox includes: */
     
    5354
    5455    /* Apply language settings: */
    55     retranslateUi();
     56    sltRetranslateUI();
     57    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     58            this, &UIChooserNodeGroup::sltRetranslateUI);
    5659}
    5760
     
    7376
    7477    /* Apply language settings: */
    75     retranslateUi();
     78    sltRetranslateUI();
     79    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     80            this, &UIChooserNodeGroup::sltRetranslateUI);
    7681}
    7782
     
    311316}
    312317
    313 void UIChooserNodeGroup::retranslateUi()
     318void UIChooserNodeGroup::sltRetranslateUI()
    314319{
    315320    /* Update group-item: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.h

    r98103 r104251  
    123123    QUuid id() const;
    124124
    125 protected:
     125private slots:
    126126
    127127    /** Handles translation event. */
    128     virtual void retranslateUi() RT_OVERRIDE;
     128    void sltRetranslateUI();
    129129
    130130private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.cpp

    r101571 r104251  
    3232#include "UIChooserAbstractModel.h"
    3333#include "UIChooserNodeMachine.h"
     34#include "UITranslationEventListener.h"
    3435#include "UIVirtualMachineItemCloud.h"
    3536#include "UIVirtualMachineItemLocal.h"
     
    4748
    4849    /* Apply language settings: */
    49     retranslateUi();
     50    sltRetranslateUI();
     51    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     52            this, &UIChooserNodeMachine::sltRetranslateUI);
    5053}
    5154
     
    6972
    7073    /* Apply language settings: */
    71     retranslateUi();
     74    sltRetranslateUI();
     75    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     76            this, &UIChooserNodeMachine::sltRetranslateUI);
    7277}
    7378
     
    8388
    8489    /* Apply language settings: */
    85     retranslateUi();
     90    sltRetranslateUI();
     91    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     92            this, &UIChooserNodeMachine::sltRetranslateUI);
    8693}
    8794
     
    112119
    113120    /* Apply language settings: */
    114     retranslateUi();
     121    sltRetranslateUI();
     122    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     123            this, &UIChooserNodeMachine::sltRetranslateUI);
    115124}
    116125
     
    269278}
    270279
    271 void UIChooserNodeMachine::retranslateUi()
     280void UIChooserNodeMachine::sltRetranslateUI()
    272281{
    273282    /* Update internal stuff: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeMachine.h

    r98103 r104251  
    126126    bool accessible() const;
    127127
    128 protected:
     128private slots:
    129129
    130130    /** Handles translation event. */
    131     virtual void retranslateUi() RT_OVERRIDE;
    132 
    133 private slots:
     131    void sltRetranslateUI();
    134132
    135133    /** Handles machine state change. */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserSearchWidget.cpp

    r98103 r104251  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
     30#include <QKeyEvent>
    2931#include <QStyle>
    3032#include <QVBoxLayout>
     
    3739#include "UIIconPool.h"
    3840#include "UISearchLineEdit.h"
     41#include "UITranslationEventListener.h"
    3942
    4043UIChooserSearchWidget::UIChooserSearchWidget(QWidget *pParent)
    41     : QIWithRetranslateUI<QWidget>(pParent)
     44    : QWidget(pParent)
    4245    , m_pLineEdit(0)
    4346    , m_pMainLayout(0)
     
    5053    prepareWidgets();
    5154    prepareConnections();
    52     retranslateUi();
     55    sltRetranslateUI();
     56    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     57            this, &UIChooserSearchWidget::sltRetranslateUI);
    5358}
    5459
     
    157162}
    158163
    159 void UIChooserSearchWidget::retranslateUi()
     164void UIChooserSearchWidget::sltRetranslateUI()
    160165{
    161166    if (m_pScrollToNextMatchButton)
     
    192197
    193198    /* Call to base-class: */
    194     return QIWithRetranslateUI<QWidget>::eventFilter(pWatched, pEvent);
     199    return QWidget::eventFilter(pWatched, pEvent);
    195200}
    196201
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserSearchWidget.h

    r98103 r104251  
    3636
    3737/* GUI includes: */
    38 #include "QIWithRetranslateUI.h"
     38#include "UILibraryDefs.h"
    3939
    4040/* Forward declarations: */
     
    4545
    4646/** QWidget extension used as virtual machine search widget in the VM Chooser-pane. */
    47 class UIChooserSearchWidget : public QIWithRetranslateUI<QWidget>
     47class UIChooserSearchWidget : public QWidget
    4848{
    4949    Q_OBJECT;
     
    7474    virtual void showEvent(QShowEvent *pEvent) RT_OVERRIDE;
    7575    virtual void hideEvent(QHideEvent *pEvent) RT_OVERRIDE;
    76     virtual void retranslateUi() RT_OVERRIDE;
    7776    virtual bool eventFilter(QObject *pWatched, QEvent *pEvent) RT_OVERRIDE;
    78 
    79 public slots:
    8077
    8178private slots:
     
    8683    /** Emits sigToggleVisibility, */
    8784    void sltHandleCloseButtonClick();
     85    void sltRetranslateUI();
    8886
    8987private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.cpp

    r102477 r104251  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QAccessibleWidget>
    3031#include <QScrollBar>
     
    3637#include "UIChooserView.h"
    3738#include "UICommon.h"
     39#include "UITranslationEventListener.h"
    3840
    3941/* Other VBox includes: */
    4042#include <iprt/assert.h>
    41 
    4243
    4344/** QAccessibleWidget extension used as an accessibility interface for Chooser-view. */
     
    120121
    121122UIChooserView::UIChooserView(QWidget *pParent)
    122     : QIWithRetranslateUI<QIGraphicsView>(pParent)
     123    : QIGraphicsView(pParent)
    123124    , m_pChooserModel(0)
    124125    , m_pSearchWidget(0)
     
    247248}
    248249
    249 void UIChooserView::retranslateUi()
     250void UIChooserView::sltRetranslateUI()
    250251{
    251252    /* Translate this: */
     
    256257{
    257258    /* Call to base-class: */
    258     QIWithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);
     259    QIGraphicsView::resizeEvent(pEvent);
    259260    /* Notify listeners: */
    260261    emit sigResized();
     
    279280
    280281    /* Apply language settings: */
    281     retranslateUi();
     282    sltRetranslateUI();
     283    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     284            this, &UIChooserView::sltRetranslateUI);
    282285}
    283286
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.h

    r102477 r104251  
    3434/* GUI includes: */
    3535#include "QIGraphicsView.h"
    36 #include "QIWithRetranslateUI.h"
    3736
    3837/* Forward declarations: */
     
    4140
    4241/** QIGraphicsView extension used as VM chooser pane view. */
    43 class UIChooserView : public QIWithRetranslateUI<QIGraphicsView>
     42class UIChooserView : public QIGraphicsView
    4443{
    4544    Q_OBJECT;
     
    9695    /** @name Event handling stuff.
    9796      * @{ */
    98         /** Handles translation event. */
    99         virtual void retranslateUi() RT_OVERRIDE;
    100 
    10197        /** Handles resize @a pEvent. */
    10298        virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE;
     
    121117        /** Handles request to scroll to make search widget @a fVisible. */
    122118        void sltHandleSearchWidgetVisibilityToggle(bool fVisible);
     119    /** @} */
     120
     121    /** @name Event handling stuff.
     122     * @{ */
     123       /** Handles translation event. */
     124       void sltRetranslateUI();
    123125    /** @} */
    124126
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsContextMenu.cpp

    r98103 r104251  
    3535#include "UIDetailsContextMenu.h"
    3636#include "UIDetailsModel.h"
    37 
     37#include "UITranslationEventListener.h"
    3838
    3939UIDetailsContextMenu::UIDetailsContextMenu(UIDetailsModel *pModel)
    40     : QIWithRetranslateUI2<QWidget>(0, Qt::Popup)
     40    : QWidget(0, Qt::Popup)
    4141    , m_pModel(pModel)
    4242    , m_pListWidgetCategories(0)
     
    259259}
    260260
    261 void UIDetailsContextMenu::retranslateUi()
     261void UIDetailsContextMenu::sltRetranslateUI()
    262262{
    263263    retranslateCategories();
     
    655655    populateOptions();
    656656    /* Apply language settings: */
    657     retranslateUi();
     657    sltRetranslateUI();
     658    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     659            this, &UIDetailsContextMenu::sltRetranslateUI);
    658660}
    659661
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsContextMenu.h

    r98103 r104251  
    3232#endif
    3333
     34/* Qt includes: */
     35#include <QWidget>
     36
    3437/* GUI includes: */
    35 #include "QIWithRetranslateUI.h"
    3638#include "UIExtraDataDefs.h"
    3739
     
    4244
    4345/** QWidget subclass used as Details pane context menu. */
    44 class UIDetailsContextMenu : public QIWithRetranslateUI2<QWidget>
     46class UIDetailsContextMenu : public QWidget
    4547{
    4648    Q_OBJECT;
     
    6668protected:
    6769
    68     /** Handles translation event. */
    69     virtual void retranslateUi() RT_OVERRIDE;
    70 
    7170    /** Handles translation event for categories list. */
    7271    void retranslateCategories();
     
    8786    /** Handles signal about option list-widget @a pItem clicked. */
    8887    void sltOptionItemClicked(QListWidgetItem *pItem);
     88    /** Handles translation event. */
     89    void sltRetranslateUI();
    8990
    9091private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp

    r98103 r104251  
    4343#include "UIMachinePreview.h"
    4444#include "UIThreadPool.h"
     45#include "UITranslationEventListener.h"
    4546
    4647/* COM includes: */
     
    116117
    117118    /* Translate finally: */
    118     retranslateUi();
    119 }
    120 
    121 void UIDetailsElementInterface::retranslateUi()
     119    sltRetranslateUI();
     120    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     121            this, &UIDetailsElementInterface::sltRetranslateUI);
     122}
     123
     124void UIDetailsElementInterface::sltRetranslateUI()
    122125{
    123126    /* Assign corresponding name: */
     
    176179
    177180    /* Translate finally: */
    178     retranslateUi();
     181    sltRetranslateUI();
     182    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     183            this, &UIDetailsElementPreview::sltRetranslateUI);
    179184}
    180185
     
    204209}
    205210
    206 void UIDetailsElementPreview::retranslateUi()
     211void UIDetailsElementPreview::sltRetranslateUI()
    207212{
    208213    /* Assign corresponding name: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.h

    r103988 r104251  
    3737/* GUI includes: */
    3838#include "UIDetailsElement.h"
     39#include "UILibraryDefs.h"
    3940#include "UITask.h"
    4041
     
    100101protected:
    101102
    102     /** Performs translation. */
    103     virtual void retranslateUi() RT_OVERRIDE;
    104 
    105103    /** Updates appearance. */
    106104    virtual void updateAppearance() RT_OVERRIDE;
     
    113111    /** Handles the signal about update @a pTask is finished. */
    114112    virtual void sltUpdateAppearanceFinished(UITask *pTask);
     113
     114    /** Performs translation. */
     115    void sltRetranslateUI();
    115116
    116117private:
     
    140141    void sltPreviewSizeHintChanged();
    141142
    142 private:
    143 
    144143    /** Performs translation. */
    145     virtual void retranslateUi() RT_OVERRIDE;
     144    void sltRetranslateUI();
     145
     146private:
    146147
    147148    /** Returns minimum width hint. */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsItem.cpp

    r98103 r104251  
    202202
    203203UIDetailsItem::UIDetailsItem(UIDetailsItem *pParent)
    204     : QIWithRetranslateUI4<QIGraphicsWidget>(pParent)
     204    : QIGraphicsWidget(pParent)
    205205    , m_pParent(pParent)
    206206{
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsItem.h

    r98103 r104251  
    3737/* GUI includes: */
    3838#include "QIGraphicsWidget.h"
    39 #include "QIWithRetranslateUI.h"
    4039
    4140/* Forward declaration: */
     
    6160/** QIGraphicsWidget extension used as interface
    6261  * for graphics details model/view architecture. */
    63 class UIDetailsItem : public QIWithRetranslateUI4<QIGraphicsWidget>
     62class UIDetailsItem : public QIGraphicsWidget
    6463{
    6564    Q_OBJECT;
     
    149148    virtual void sltBuildStep(const QUuid &uStepId, int iStepNumber);
    150149
    151 protected:
    152 
    153     /** @name Event-handling stuff.
    154       * @{ */
    155         /** Handles translation event. */
    156         virtual void retranslateUi() RT_OVERRIDE {}
    157     /** @} */
    158 
    159150private:
    160151
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp

    r98103 r104251  
    2727
    2828/* Qt includes: */
     29#include <QApplication>
    2930#include <QPainter>
    3031#include <QStyle>
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsView.cpp

    r102477 r104251  
    2828/* Qt includes: */
    2929#include <QAccessibleWidget>
     30#include <QApplication>
    3031#include <QScrollBar>
    3132
     
    3637#include "UIDetailsModel.h"
    3738#include "UIDetailsView.h"
     39#include "UITranslationEventListener.h"
    3840
    3941/* Other VBox includes: */
     
    134136
    135137UIDetailsView::UIDetailsView(UIDetails *pParent)
    136     : QIWithRetranslateUI<QIGraphicsView>(pParent)
     138    : QIGraphicsView(pParent)
    137139    , m_pDetails(pParent)
    138140    , m_iMinimumWidthHint(0)
     
    159161}
    160162
    161 void UIDetailsView::retranslateUi()
     163void UIDetailsView::sltRetranslateUI()
    162164{
    163165    /* Translate this: */
     
    168170{
    169171    /* Call to base-class: */
    170     QIWithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);
     172    QIGraphicsView::resizeEvent(pEvent);
    171173    /* Notify listeners: */
    172174    emit sigResized();
     
    188190
    189191    /* Translate finally: */
    190     retranslateUi();
     192    sltRetranslateUI();
     193    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     194            this, &UIDetailsView::sltRetranslateUI);
    191195}
    192196
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsView.h

    r102477 r104251  
    3434/* GUI includes: */
    3535#include "QIGraphicsView.h"
    36 #include "QIWithRetranslateUI.h"
    3736
    3837/* Forward declarations: */
     
    4039
    4140/* Graphics details-view: */
    42 class UIDetailsView : public QIWithRetranslateUI<QIGraphicsView>
     41class UIDetailsView : public QIGraphicsView
    4342{
    4443    Q_OBJECT;
     
    6564protected:
    6665
    67     /** Handles translation event. */
    68     virtual void retranslateUi() RT_OVERRIDE;
    69 
    7066    /** Handles resize @a pEvent. */
    7167    virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE;
     
    7571    /** Updates palette. */
    7672    void sltUpdatePalette() { preparePalette(); }
     73
     74    /** Handles translation event. */
     75    void sltRetranslateUI();
    7776
    7877private:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIMachinePreview.cpp

    r103710 r104251  
    2828/* Qt includes: */
    2929#include <QActionGroup>
     30#include <QApplication>
    3031#include <QGraphicsSceneContextMenuEvent>
    3132#include <QMenu>
     
    3536
    3637/* GUI includes: */
    37 #include "UIMachinePreview.h"
    38 #include "UIVirtualBoxEventHandler.h"
    3938#include "UIExtraDataManager.h"
    40 #include "UIImageTools.h"
    4139#include "UIConverter.h"
    4240#include "UIIconPool.h"
     41#include "UIMachinePreview.h"
     42#include "UIImageTools.h"
     43#include "UITranslationEventListener.h"
     44#include "UIVirtualBoxEventHandler.h"
    4345
    4446/* COM includes: */
     
    5153
    5254UIMachinePreview::UIMachinePreview(QIGraphicsWidget *pParent)
    53     : QIWithRetranslateUI4<QIGraphicsWidget>(pParent)
     55    : QIGraphicsWidget(pParent)
    5456    , m_pUpdateTimer(new QTimer(this))
    5557    , m_pUpdateTimerMenu(0)
     
    9092}
    9193
    92 void UIMachinePreview::retranslateUi()
     94void UIMachinePreview::sltRetranslateUI()
    9395{
    9496    /* Translate actions: */
     
    435437
    436438    /* Retranslate the UI */
    437     retranslateUi();
     439    sltRetranslateUI();
     440    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     441            this, &UIMachinePreview::sltRetranslateUI);
    438442}
    439443
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIMachinePreview.h

    r103803 r104251  
    3636
    3737/* GUI includes: */
    38 #include "QIWithRetranslateUI.h"
    3938#include "UIDetailsItem.h"
    4039#include "UIExtraDataDefs.h"
     
    5251
    5352/** QIGraphicsWidget sub-class used as VM Preview widget inside Details pane. */
    54 class UIMachinePreview : public QIWithRetranslateUI4<QIGraphicsWidget>
     53class UIMachinePreview : public QIGraphicsWidget
    5554{
    5655    Q_OBJECT;
     
    8685    /** @name Event-handling stuff.
    8786      * @{ */
    88         /** Handles translation event. */
    89         virtual void retranslateUi() RT_OVERRIDE;
    90 
    9187        /** Handles resize @a pEvent. */
    9288        virtual void resizeEvent(QGraphicsSceneResizeEvent *pEvent) RT_OVERRIDE;
     
    124120        /** Handles machine-state change for item with @a uId. */
    125121        void sltMachineStateChange(const QUuid &uId);
     122        /** Handles translation event. */
     123        void sltRetranslateUI();
    126124    /** @} */
    127125
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp

    r103710 r104251  
    4343#include "UIToolsHandlerKeyboard.h"
    4444#include "UIToolsModel.h"
     45#include "UITranslationEventListener.h"
    4546#include "UIExtraDataDefs.h"
    4647#include "UIExtraDataManager.h"
     
    6263
    6364UIToolsModel::UIToolsModel(UIToolClass enmClass, UITools *pParent)
    64     : QIWithRetranslateUI3<QObject>(pParent)
     65    : QObject(pParent)
    6566    , m_enmClass(enmClass)
    6667    , m_pTools(pParent)
     
    383384    /* Process only scene events: */
    384385    if (pWatched != scene())
    385         return QIWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);
     386        return QObject::eventFilter(pWatched, pEvent);
    386387
    387388    /* Process only item focused by model: */
    388389    if (scene()->focusItem())
    389         return QIWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);
     390        return QObject::eventFilter(pWatched, pEvent);
    390391
    391392    /* Do not handle disabled items: */
    392393    if (!currentItem()->isEnabled())
    393         return QIWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);
     394        return QObject::eventFilter(pWatched, pEvent);
    394395
    395396    /* Checking event-type: */
     
    411412
    412413    /* Call to base-class: */
    413     return QIWithRetranslateUI3<QObject>::eventFilter(pWatched, pEvent);
    414 }
    415 
    416 void UIToolsModel::retranslateUi()
     414    return QObject::eventFilter(pWatched, pEvent);
     415}
     416
     417void UIToolsModel::sltRetranslateUI()
    417418{
    418419    foreach (UIToolsItem *pItem, m_items)
     
    450451    prepareHandlers();
    451452    /* Apply language settings: */
    452     retranslateUi();
     453    sltRetranslateUI();
     454    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     455            this, &UIToolsModel::sltRetranslateUI);
    453456}
    454457
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h

    r103803 r104251  
    3939
    4040/* GUI includes: */
    41 #include "QIWithRetranslateUI.h"
    4241#include "UIToolsItem.h"
    4342
     
    5756
    5857/** QObject extension used as VM Tools-pane model: */
    59 class UIToolsModel : public QIWithRetranslateUI3<QObject>
     58class UIToolsModel : public QObject
    6059{
    6160    Q_OBJECT;
     
    195194        /** Preprocesses Qt @a pEvent for passed @a pObject. */
    196195        virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
    197 
    198         /** Handles translation event. */
    199         virtual void retranslateUi() RT_OVERRIDE;
    200196    /** @} */
    201197
     
    206202        /** Handles focus item destruction. */
    207203        void sltFocusItemDestroyed();
     204    /** @} */
     205
     206    /** @name Event handling stuff.
     207     * @{ */
     208       /** Handles translation event. */
     209       void sltRetranslateUI();
    208210    /** @} */
    209211
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.cpp

    r98103 r104251  
    3636#include "UIToolsModel.h"
    3737#include "UIToolsView.h"
     38#include "UITranslationEventListener.h"
    3839
    3940/* Other VBox includes: */
     
    115116
    116117UIToolsView::UIToolsView(UITools *pParent)
    117     : QIWithRetranslateUI<QIGraphicsView>(pParent)
     118    : QIGraphicsView(pParent)
    118119    , m_pTools(pParent)
    119120    , m_iMinimumWidthHint(0)
     
    171172}
    172173
    173 void UIToolsView::retranslateUi()
     174void UIToolsView::sltRetranslateUI()
    174175{
    175176    /* Translate this: */
     
    197198
    198199    /* Apply language settings: */
    199     retranslateUi();
     200    sltRetranslateUI();
     201    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     202            this, &UIToolsView::sltRetranslateUI);
    200203}
    201204
     
    211214{
    212215    /* Call to base-class: */
    213     QIWithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent);
     216    QIGraphicsView::resizeEvent(pEvent);
    214217    /* Notify listeners: */
    215218    emit sigResized();
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.h

    r98103 r104251  
    3434/* GUI includes: */
    3535#include "QIGraphicsView.h"
    36 #include "QIWithRetranslateUI.h"
    3736
    3837/* Forward declarations: */
     
    4039
    4140/** QIGraphicsView extension used as VM Tools-pane view. */
    42 class UIToolsView : public QIWithRetranslateUI<QIGraphicsView>
     41class UIToolsView : public QIGraphicsView
    4342{
    4443    Q_OBJECT;
     
    8180    /** @name Event handling stuff.
    8281      * @{ */
    83         /** Handles translation event. */
    84         virtual void retranslateUi() RT_OVERRIDE;
    85 
    8682        /** Handles resize @a pEvent. */
    8783        virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE;
     84    /** @} */
     85
     86private slots:
     87
     88    /** @name Event handling stuff.
     89      * @{ */
     90       /** Handles translation event. */
     91       void sltRetranslateUI();
    8892    /** @} */
    8993
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