VirtualBox

Changeset 93871 in vbox


Ignore:
Timestamp:
Feb 21, 2022 3:01:38 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: VirtualBox Manager / Network Manager: Make sure network tree-widgets items have proper names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp

    r93868 r93871  
    152152    /** Returns item name. */
    153153    QString name() const { return m_strName; }
    154 
    155 protected:
    156 
    157     /** Returns default text. */
    158     virtual QString defaultText() const /* override */;
    159154};
    160155
     
    172167    /** Returns item name. */
    173168    QString name() const { return m_strName; }
    174 
    175 protected:
    176 
    177     /** Returns default text. */
    178     virtual QString defaultText() const /* override */;
    179169};
    180170
     
    340330}
    341331
    342 QString UIItemNATNetwork::defaultText() const
    343 {
    344     return tr("%1, %2", "col.2 text, col.1 name").arg(text(1)).arg(parentTree()->headerItem()->text(0));
    345 }
    346 
    347332
    348333/*********************************************************************************************************************************
     
    369354    /* Assign tool-tip finally: */
    370355    setToolTip(CloudNetworkColumn_Name, strTable.arg(strToolTip));
    371 }
    372 
    373 QString UIItemCloudNetwork::defaultText() const
    374 {
    375     return tr("%1, %2", "col.2 text, col.1 name").arg(text(1)).arg(parentTree()->headerItem()->text(0));
    376356}
    377357
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