VirtualBox

Changeset 104241 in vbox


Ignore:
Timestamp:
Apr 9, 2024 5:23:23 AM (10 months ago)
Author:
vboxsync
Message:

FE/Qt. bugref:10622. An addendum to r162679.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp

    r103988 r104241  
    4343#include "UIFileTableNavigationWidget.h"
    4444#include "UIPathOperations.h"
     45#include "UITranslationEventListener.h"
    4546#include "UIVisoContentBrowser.h"
    4647
     
    242243
    243244UIVisoContentBrowser::UIVisoContentBrowser(UIActionPool *pActionPool, QWidget *pParent)
    244     : QIWithRetranslateUI<QWidget>(pParent)
     245    : QWidget(pParent)
    245246    , m_pTableView(0)
    246247    , m_pModel(0)
     
    263264    prepareToolBar();
    264265    prepareConnections();
    265     retranslateUi();
     266    sltRetranslateUI();
     267
     268    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     269            this, &UIVisoContentBrowser::sltRetranslateUI);
    266270
    267271    /* Assuming the root items only child is the one with the path '/', navigate into it. */
     
    429433}
    430434
    431 void UIVisoContentBrowser::retranslateUi()
     435void UIVisoContentBrowser::sltRetranslateUI()
    432436{
    433437    UIFileSystemItem *pRootItem = rootItem();
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.h

    r103982 r104241  
    3333
    3434/* GUI includes: */
    35 #include "QIWithRetranslateUI.h"
    3635#include "UIActionPool.h"
    3736
     
    5655
    5756/** A UIVisoBrowserBase extension to view content of a VISO as a file tree. */
    58 class UIVisoContentBrowser : public QIWithRetranslateUI<QWidget>
     57class UIVisoContentBrowser : public QWidget
    5958{
    6059    Q_OBJECT;
     
    110109protected:
    111110
    112     void retranslateUi() RT_OVERRIDE RT_FINAL;
    113111    void tableViewItemDoubleClick(const QModelIndex &index);
    114112    void setPathFromNavigationWidget(const QString &strPath);
     
    121119    void sltDroppedItems(QStringList pathList);
    122120    void sltShowContextMenu(const QPoint &point);
     121    void sltRetranslateUI();
    123122
    124123private:
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