VirtualBox

Changeset 76498 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Dec 27, 2018 1:13:30 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: Translate UICustomFileSystem columns in its own context

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICustomFileSystemModel.cpp

    r76497 r76498  
    533533void UICustomFileSystemModel::initializeTree()
    534534{
    535     m_pRootItem = new UICustomFileSystemItem(QApplication::tr("UIFileManager", "Name"), 0, KFsObjType_Directory);
    536     m_pRootItem->setData(QApplication::tr("UIFileManager", "Size"), UICustomFileSystemModelColumn_Size);
    537     m_pRootItem->setData(QApplication::tr("UIFileManager", "Change Time"), UICustomFileSystemModelColumn_ChangeTime);
    538     m_pRootItem->setData(QApplication::tr("UIFileManager", "Owner"), UICustomFileSystemModelColumn_Owner);
    539     m_pRootItem->setData(QApplication::tr("UIFileManager", "Permissions"), UICustomFileSystemModelColumn_Permissions);
    540     m_pRootItem->setData(QApplication::tr("UIFileManager", "LocalPath"), UICustomFileSystemModelColumn_LocalPath);
    541     m_pRootItem->setData(QApplication::tr("UIFileManager", "Path"), UICustomFileSystemModelColumn_Path);
    542 }
     535    m_pRootItem = new UICustomFileSystemItem(UICustomFileSystemModel::tr("Name"), 0, KFsObjType_Directory);
     536    m_pRootItem->setData(UICustomFileSystemModel::tr("Size"), UICustomFileSystemModelColumn_Size);
     537    m_pRootItem->setData(UICustomFileSystemModel::tr("Change Time"), UICustomFileSystemModelColumn_ChangeTime);
     538    m_pRootItem->setData(UICustomFileSystemModel::tr("Owner"), UICustomFileSystemModelColumn_Owner);
     539    m_pRootItem->setData(UICustomFileSystemModel::tr("Permissions"), UICustomFileSystemModelColumn_Permissions);
     540    m_pRootItem->setData(UICustomFileSystemModel::tr("LocalPath"), UICustomFileSystemModelColumn_LocalPath);
     541    m_pRootItem->setData(UICustomFileSystemModel::tr("Path"), UICustomFileSystemModelColumn_Path);
     542}
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r76496 r76498  
    485485                this, &UIFileManagerTable::sltCreateFileViewContextMenu);
    486486        m_pView->hideColumn(UICustomFileSystemModelColumn_Path);
     487        m_pView->hideColumn(UICustomFileSystemModelColumn_LocalPath);
    487488    }
    488489    m_pWarningLabel = new QILabel(this);
     
    968969    if (pRootItem)
    969970    {
    970         pRootItem->setData(UIFileManager::tr("Name"), UICustomFileSystemModelColumn_Name);
    971         pRootItem->setData(UIFileManager::tr("Size"), UICustomFileSystemModelColumn_Size);
    972         pRootItem->setData(UIFileManager::tr("Change Time"), UICustomFileSystemModelColumn_ChangeTime);
    973         pRootItem->setData(UIFileManager::tr("Owner"), UICustomFileSystemModelColumn_Owner);
    974         pRootItem->setData(UIFileManager::tr("Permissions"), UICustomFileSystemModelColumn_Permissions);
     971        pRootItem->setData(UICustomFileSystemModel::tr("Name"), UICustomFileSystemModelColumn_Name);
     972        pRootItem->setData(UICustomFileSystemModel::tr("Size"), UICustomFileSystemModelColumn_Size);
     973        pRootItem->setData(UICustomFileSystemModel::tr("Change Time"), UICustomFileSystemModelColumn_ChangeTime);
     974        pRootItem->setData(UICustomFileSystemModel::tr("Owner"), UICustomFileSystemModelColumn_Owner);
     975        pRootItem->setData(UICustomFileSystemModel::tr("Permissions"), UICustomFileSystemModelColumn_Permissions);
    975976    }
    976977    if (m_pWarningLabel)
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