VirtualBox

Changeset 100901 in vbox


Ignore:
Timestamp:
Aug 17, 2023 6:40:00 PM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10496, bugref:6699. Adding panel tab text to retranslate code.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.cpp

    r100895 r100901  
    397397    preparePreferencesTab();
    398398    prepareLogTab();
     399    prepareOperationsTab();
    399400}
    400401
     
    444445    pPreferencesLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding), 2, 0, 1, 2);
    445446
    446     m_pTabWidget->addTab(pPreferencesTab, QApplication::translate("UIFileManager", "Preferences"));
     447    m_pTabWidget->insertTab(Page_Preferences, pPreferencesTab, QString());
    447448}
    448449
     
    457458    if (m_pLogTextEdit)
    458459        pLogLayout->addWidget(m_pLogTextEdit);
    459     m_pTabWidget->addTab(pLogTab, QApplication::translate("UIFileManager", "Log"));
     460    m_pTabWidget->insertTab(Page_Log, pLogTab, QString());
    460461}
    461462
     
    485486    pOperationsTab->setLayout(m_pOperationsTabLayout);
    486487    m_pOperationsTabLayout->addStretch(4);
    487     m_pTabWidget->addTab(m_pScrollArea, QApplication::translate("UIFileManager", "Operations"));
     488    m_pTabWidget->insertTab(Page_Operations, m_pScrollArea, QString());
    488489}
    489490
     
    546547        m_pShowHiddenObjectsCheckBox->setText(QApplication::translate("UIFileManager", "Show hidden objects"));
    547548        m_pShowHiddenObjectsCheckBox->setToolTip(QApplication::translate("UIFileManager", "Show hidden files/directories"));
     549    }
     550    if (m_pTabWidget)
     551    {
     552        m_pTabWidget->setTabText(Page_Preferences, QApplication::translate("UIFileManager", "Preferences"));
     553        m_pTabWidget->setTabText(Page_Log, QApplication::translate("UIFileManager", "Log"));
     554        m_pTabWidget->setTabText(Page_Operations, QApplication::translate("UIFileManager", "Operations"));
    548555    }
    549556}
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerPanel.h

    r100895 r100901  
    7171    void addNewProgress(const CProgress &comProgress, const QString &strSourceTableName);
    7272
     73    enum Page
     74    {
     75        Page_Preferences = 0,
     76        Page_Log,
     77        Page_Operations,
     78        Page_Max
     79    };
     80
     81
    7382protected:
    7483
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