VirtualBox

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


Ignore:
Timestamp:
Nov 20, 2018 11:51:33 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9289: VirtualBox Manager / Details pane: No need for Summary options, disabling them do nothing in any case.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r75427 r75615  
    11831183    switch (enmDetailsElementOptionTypeSharedFolders)
    11841184    {
    1185         case UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders_Summary: strResult = "Summary"; break;
    11861185        default:
    11871186        {
     
    11991198     * to search through the keys using 'case-insensitive' rule: */
    12001199    QStringList keys;  QList<UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders> values;
    1201     keys << "Summary"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders_Summary;
    12021200    /* Invalid type for unknown words: */
    12031201    if (!keys.contains(strDetailsElementOptionTypeSharedFolders, Qt::CaseInsensitive))
     
    12471245    switch (enmDetailsElementOptionTypeDescription)
    12481246    {
    1249         case UIExtraDataMetaDefs::DetailsElementOptionTypeDescription_Summary: strResult = "Summary"; break;
    12501247        default:
    12511248        {
     
    12631260     * to search through the keys using 'case-insensitive' rule: */
    12641261    QStringList keys;  QList<UIExtraDataMetaDefs::DetailsElementOptionTypeDescription> values;
    1265     keys << "Summary"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDescription_Summary;
    12661262    /* Invalid type for unknown words: */
    12671263    if (!keys.contains(strDetailsElementOptionTypeDescription, Qt::CaseInsensitive))
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r75521 r75615  
    710710    {
    711711        DetailsElementOptionTypeSharedFolders_Invalid = 0,
    712         DetailsElementOptionTypeSharedFolders_Summary = RT_BIT(0),
    713712        DetailsElementOptionTypeSharedFolders_Default = 0xFFFF
    714713    };
     
    730729    {
    731730        DetailsElementOptionTypeDescription_Invalid = 0,
    732         DetailsElementOptionTypeDescription_Summary = RT_BIT(0),
    733731        DetailsElementOptionTypeDescription_Default = 0xFFFF
    734732    };
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp

    r75530 r75615  
    957957    {
    958958        /* Summary: */
    959         if (m_fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders_Summary)
    960         {
    961             const ulong uCount = comMachine.GetSharedFolders().size();
    962             if (uCount > 0)
    963                 table << UITextTableLine(QApplication::translate("UIDetails", "Shared Folders", "details (shared folders)"), QString::number(uCount));
    964             else
    965                 table << UITextTableLine(QApplication::translate("UIDetails", "None", "details (shared folders)"), QString());
    966         }
     959        const ulong uCount = comMachine.GetSharedFolders().size();
     960        if (uCount > 0)
     961            table << UITextTableLine(QApplication::translate("UIDetails", "Shared Folders", "details (shared folders)"), QString::number(uCount));
     962        else
     963            table << UITextTableLine(QApplication::translate("UIDetails", "None", "details (shared folders)"), QString());
    967964    }
    968965    else
     
    10791076{
    10801077    /* Acquire corresponding machine: */
    1081     CMachine machine = property("machine").value<CMachine>();
    1082     if (machine.isNull())
     1078    CMachine comMachine = property("machine").value<CMachine>();
     1079    if (comMachine.isNull())
    10831080        return;
    10841081
     
    10871084
    10881085    /* Gather information: */
    1089     if (machine.GetAccessible())
     1086    if (comMachine.GetAccessible())
    10901087    {
    10911088        /* Summary: */
    1092         if (m_fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeDescription_Summary)
    1093         {
    1094             const QString strDescription = machine.GetDescription();
    1095             if (!strDescription.isEmpty())
    1096                 table << UITextTableLine(strDescription, QString());
    1097             else
    1098                 table << UITextTableLine(QApplication::translate("UIDetails", "None", "details (description)"), QString());
    1099         }
     1089        const QString strDescription = comMachine.GetDescription();
     1090        if (!strDescription.isEmpty())
     1091            table << UITextTableLine(strDescription, QString());
     1092        else
     1093            table << UITextTableLine(QApplication::translate("UIDetails", "None", "details (description)"), QString());
    11001094    }
    11011095    else
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