Changeset 87313 in vbox
- Timestamp:
- Jan 20, 2021 9:01:11 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp
r87312 r87313 111 111 /** Returns item name. */ 112 112 QString name() const { return m_strName; } 113 114 protected: 115 116 /** Returns default text. */ 117 virtual QString defaultText() const /* override */; 113 118 }; 114 119 … … 247 252 /* Assign tool-tip finally: */ 248 253 setToolTip(NATNetworkColumn_Name, strTable.arg(strToolTip)); 254 } 255 256 QString 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)); 249 261 } 250 262
Note:
See TracChangeset
for help on using the changeset viewer.