Changeset 107977 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 29, 2025 11:38:15 AM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167240
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
r107976 r107977 228 228 } 229 229 230 void UIToolsItem::reconfigure(UIToolClass enmClass, UIToolType enmType,231 const QIcon &icon, const QString &strName)232 {233 /* If class is changed: */234 if (m_enmClass != enmClass)235 {236 /* Update linked values: */237 m_enmClass = enmClass;238 }239 240 /* If type is changed: */241 if (m_enmType != enmType)242 {243 /* Update linked values: */244 m_enmType = enmType;245 }246 247 /* Update linked values: */248 m_icon = icon;249 updatePixmap();250 251 /* Update name finally: */252 reconfigure(strName);253 }254 255 230 void UIToolsItem::reconfigure(const QString &strName) 256 231 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.h
r107976 r107977 100 100 UIToolsModel *model() const; 101 101 102 /** Reconfigures item with new @a enmClass, @a enmType, @a icon and @a strName. */103 void reconfigure(UIToolClass enmClass, UIToolType enmType,104 const QIcon &icon, const QString &strName);105 102 /** Reconfigures item with @a strName. */ 106 103 void reconfigure(const QString &strName);
Note:
See TracChangeset
for help on using the changeset viewer.