Changeset 64305 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 17, 2016 4:55:33 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111356
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/global
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r62493 r64305 40 40 41 41 /* Extension package item: */ 42 class UIExtensionPackageItem : public Q TreeWidgetItem42 class UIExtensionPackageItem : public QITreeWidgetItem 43 43 { 44 44 public: 45 45 46 /* Extension package item type: */47 enum { UIItemType = QTreeWidgetItem::UserType + 1 };48 49 46 /* Extension package item constructor: */ 50 UIExtensionPackageItem(Q TreeWidget *pParent, const UISettingsCacheGlobalExtensionItem &data)51 : Q TreeWidgetItem(pParent, UIItemType)47 UIExtensionPackageItem(QITreeWidget *pParent, const UISettingsCacheGlobalExtensionItem &data) 48 : QITreeWidgetItem(pParent) 52 49 , m_data(data) 53 50 { … … 81 78 82 79 QString name() const { return m_data.m_strName; } 80 81 /** Returns default text. */ 82 virtual QString defaultText() const /* override */ 83 { 84 /* Return 2nd cell text as default: */ 85 return text(1); 86 } 83 87 84 88 private: … … 402 406 /* Get current item: */ 403 407 UIExtensionPackageItem *pItem = m_pPackagesTree && 404 m_pPackagesTree->currentItem() && 405 m_pPackagesTree->currentItem()->type() == UIExtensionPackageItem::UIItemType ? 408 m_pPackagesTree->currentItem() ? 406 409 static_cast<UIExtensionPackageItem*>(m_pPackagesTree->currentItem()) : 0; 407 410 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.ui
r62495 r64305 39 39 </property> 40 40 <item> 41 <widget class="Q TreeWidget" name="m_pPackagesTree">41 <widget class="QITreeWidget" name="m_pPackagesTree"> 42 42 <property name="sizePolicy"> 43 43 <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding"> … … 94 94 <header>UIToolBar.h</header> 95 95 </customwidget> 96 <customwidget> 97 <class>QITreeWidget</class> 98 <extends>QTreeWidget</extends> 99 <header>QITreeWidget.h</header> 100 </customwidget> 96 101 </customwidgets> 97 102 <resources/>
Note:
See TracChangeset
for help on using the changeset viewer.