VirtualBox

Changeset 87313 in vbox


Ignore:
Timestamp:
Jan 20, 2021 9:01:11 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9871: Network Manager: Small fix for NAT network accessibility stuff.

File:
1 edited

Legend:

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

    r87312 r87313  
    111111    /** Returns item name. */
    112112    QString name() const { return m_strName; }
     113
     114protected:
     115
     116    /** Returns default text. */
     117    virtual QString defaultText() const /* override */;
    113118};
    114119
     
    247252    /* Assign tool-tip finally: */
    248253    setToolTip(NATNetworkColumn_Name, strTable.arg(strToolTip));
     254}
     255
     256QString UIItemNATNetwork::defaultText() const
     257{
     258    return   m_fEnabled
     259           ? tr("%1, %2", "col.2 text, col.1 name").arg(text(1)).arg(parentTree()->headerItem()->text(0))
     260           : tr("%1",     "col.2 text").arg(text(1));
    249261}
    250262
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