VirtualBox

Changeset 108151 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 11, 2025 11:24:14 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167462
Message:

FE/Qt: bugref:10814: VBox Manager / Chooser pane: Cleanup default item meaning for global item type; It was used with Global node/item type only which is obsolete now.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r108147 r108151  
    589589        /* Group nodes: */
    590590        case UIChooserNodeDataOptionType_GroupOpened: return "o";
    591     }
    592     return QString();
    593 }
    594 
    595 /* static */
    596 QString UIChooserAbstractModel::valueToString(UIChooserNodeDataValueType enmType)
    597 {
    598     switch (enmType)
    599     {
    600         /* Global nodes: */
    601         case UIChooserNodeDataValueType_GlobalDefault: return "GLOBAL";
    602591    }
    603592    return QString();
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r108147 r108151  
    142142        /** Returns node extra-data option of certain @a enmType. */
    143143        static QString optionToString(UIChooserNodeDataOptionType enmType);
    144         /** Returns node extra-data value of certain @a enmType. */
    145         static QString valueToString(UIChooserNodeDataValueType enmType);
    146144    /** @} */
    147145
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserDefs.h

    r108147 r108151  
    7777
    7878
    79 /** UIChooserNode extra-data value types. */
    80 enum UIChooserNodeDataValueType
    81 {
    82     UIChooserNodeDataValueType_GlobalDefault
    83 };
    84 
    85 
    8679/** UIChooserItem search flags. */
    8780enum UIChooserItemSearchFlag
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGlobal.cpp

    r108148 r108151  
    7777{
    7878    const QString strNodePrefix = UIChooserAbstractModel::prefixToString(UIChooserNodeDataPrefixType_Global);
    79     const QString strNodeValueDefault = UIChooserAbstractModel::valueToString(UIChooserNodeDataValueType_GlobalDefault);
    80     return QString("%1=%2").arg(strNodePrefix).arg(strNodeValueDefault);
     79    return QString("%1=%2").arg(strNodePrefix).arg(QString());
    8180}
    8281
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette