Changeset 64778 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 2, 2016 1:07:38 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r64430 r64778 163 163 /** Release UIMedium wrapped by <i>this</i> item from virtual @a machine. */ 164 164 virtual bool releaseFrom(CMachine machine) = 0; 165 166 /** Returns default text. */ 167 virtual QString defaultText() const /* override */ 168 { 169 return tr("%1, %2: %3, %4: %5", "col.1 text, col.2 name: col.2 text, col.3 name: col.3 text") 170 .arg(text(0)) 171 .arg(parentTree()->headerItem()->text(1)).arg(text(1)) 172 .arg(parentTree()->headerItem()->text(2)).arg(text(2)); 173 } 165 174 166 175 private: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r64305 r64778 82 82 virtual QString defaultText() const /* override */ 83 83 { 84 /* Return 2nd cell text as default: */ 85 return text(1); 84 return m_data.m_fIsUsable ? 85 tr("%1, %2: %3, %4", "col.2 text, col.3 name: col.3 text, col.1 name") 86 .arg(text(1)) 87 .arg(parentTree()->headerItem()->text(2)).arg(text(2)) 88 .arg(parentTree()->headerItem()->text(0)) : 89 tr("%1, %2: %3", "col.2 text, col.3 name: col.3 text") 90 .arg(text(1)) 91 .arg(parentTree()->headerItem()->text(2)).arg(text(2)); 86 92 } 87 93 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r64303 r64778 219 219 QString UIItemNetworkNAT::defaultText() const 220 220 { 221 /* Return 2nd cell text as default: */ 222 return text(1); 221 return m_data.m_fEnabled ? 222 tr("%1, %2", "col.2 text, col.1 name") 223 .arg(text(1)) 224 .arg(parentTree()->headerItem()->text(0)) : 225 tr("%1", "col.2 text") 226 .arg(text(1)); 223 227 } 224 228 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp
r64388 r64778 92 92 for (int i = 0; i < treeWidget()->columnCount(); ++ i) 93 93 processColumn (i); 94 } 95 96 /** Returns default text. */ 97 virtual QString defaultText() const /* override */ 98 { 99 return tr("%1, %2: %3, %4: %5, %6: %7", 100 "col.1 text, col.2 name: col.2 text, col.3 name: col.3 text, col.4 name: col.4 text") 101 .arg(text(0)) 102 .arg(parentTree()->headerItem()->text(1)).arg(text(1)) 103 .arg(parentTree()->headerItem()->text(2)).arg(text(2)) 104 .arg(parentTree()->headerItem()->text(3)).arg(text(3)); 94 105 } 95 106
Note:
See TracChangeset
for help on using the changeset viewer.