- Timestamp:
- Sep 8, 2016 1:14:26 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.cpp
r63730 r63764 193 193 } 194 194 195 QString UIGDetailsElement::name() const196 {197 return m_strName;198 }199 200 195 QString UIGDetailsElement::description() const 201 196 { 202 return tr(" Details");197 return tr("%1 details", "like 'General details' or 'Storage details'").arg(m_strName); 203 198 } 204 199 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.h
r63730 r63764 115 115 void resizeEvent(QGraphicsSceneResizeEvent *pEvent); 116 116 117 /** Returns the name of the item. */118 virtual QString name() const /* override */;119 117 /** Returns the description of the item. */ 120 118 virtual QString description() const /* override */; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsGroup.h
r63730 r63764 68 68 }; 69 69 70 /** Returns the name of the item. */71 virtual QString name() const /* override */ { return QString(); }72 70 /** Returns the description of the item. */ 73 71 virtual QString description() const /* override */ { return QString(); } -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsItem.cpp
r63732 r63764 151 151 AssertPtrReturn(item(), QString()); 152 152 153 switch (enmTextRole) 154 { 155 case QAccessible::Name: return item()->name(); 156 case QAccessible::Description: return item()->description(); 157 default: break; 158 } 153 /* Return the description: */ 154 if (enmTextRole == QAccessible::Description) 155 return item()->description(); 159 156 160 157 /* Null-string by default: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsItem.h
r63730 r63764 69 69 UIGDetailsItem* parentItem() const; 70 70 71 /** Returns the name of the item. */72 virtual QString name() const = 0;73 71 /** Returns the description of the item. */ 74 72 virtual QString description() const = 0; -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp
r63730 r63764 219 219 /* Update appearance: */ 220 220 rebuildSet(); 221 }222 223 QString UIGDetailsSet::name() const224 {225 return QString();226 221 } 227 222 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.h
r63730 r63764 82 82 }; 83 83 84 /** Returns the name of the item. */85 virtual QString name() const /* override */;86 84 /** Returns the description of the item. */ 87 85 virtual QString description() const /* override */;
Note:
See TracChangeset
for help on using the changeset viewer.