VirtualBox

Changeset 100604 in vbox for trunk


Ignore:
Timestamp:
Jul 17, 2023 3:53:44 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080. Adding a new column to indicate if folder has a removed descendant.

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

Legend:

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

    r100601 r100604  
    492492                return item->data(index.column());
    493493        }
     494        if (index.column() == UICustomFileSystemModelData_DescendantRemovedFromVISO)
     495        {
     496            if (item->data(UICustomFileSystemModelData_DescendantRemovedFromVISO).toBool())
     497                return QString(QApplication::translate("UIVisoCreatorWidget", "Yes"));
     498            else
     499                return QString(QApplication::translate("UIVisoCreatorWidget", "No"));
     500        }
    494501        return item->data(index.column());
    495502    }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICustomFileSystemModel.h

    r100601 r100604  
    5151    UICustomFileSystemModelData_ISOFilePath, /* in case of import-iso this contains full path of the container iso file. */
    5252    UICustomFileSystemModelData_RemovedFromVISO,
     53    UICustomFileSystemModelData_DescendantRemovedFromVISO,
    5354    UICustomFileSystemModelData_Max
    5455};
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r100460 r100604  
    497497                this, &UIFileManagerTable::sltCreateFileViewContextMenu);
    498498        m_pView->hideColumn(UICustomFileSystemModelData_LocalPath);
     499        m_pView->hideColumn(UICustomFileSystemModelData_ISOFilePath);
     500        m_pView->hideColumn(UICustomFileSystemModelData_RemovedFromVISO);
     501        m_pView->hideColumn(UICustomFileSystemModelData_DescendantRemovedFromVISO);
     502
    499503        m_sessionWidgets << m_pView;
    500504    }
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp

    r100601 r100604  
    423423        pRootItem->setData(QApplication::translate("UIVisoCreatorWidget", "Permissions"), UICustomFileSystemModelData_Permissions);
    424424        pRootItem->setData(QApplication::translate("UIVisoCreatorWidget", "Local Path"), UICustomFileSystemModelData_LocalPath);
     425        pRootItem->setData(QApplication::translate("UIVisoCreatorWidget", "Has Removed Child"), UICustomFileSystemModelData_DescendantRemovedFromVISO);
    425426    }
    426427    if (m_pSubMenu)
     
    531532    Q_UNUSED(fRemoved);
    532533    pItem->setRemovedFromViso(true);
     534    UICustomFileSystemItem *pRoot = rootItem();
    533535    UICustomFileSystemItem *pParent = pItem->parentItem();
    534     while (pParent)
     536
     537    while (pParent && pParent != pRoot)
    535538    {
    536539        pParent->setToolTip(QApplication::translate("UIVisoCreatorWidget", "Child/children removed"));
     540        pParent->setData(true, UICustomFileSystemModelData_DescendantRemovedFromVISO);
    537541        pParent = pParent->parentItem();
    538542    }
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