Changeset 64490 in vbox for trunk/src/VBox
- Timestamp:
- Oct 31, 2016 2:16:38 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r64489 r64490 447 447 448 448 /* Abstract Item */ 449 AbstractItem::AbstractItem(QITreeView *pParent) 450 : QITreeViewItem(pParent) 451 , m_pParentItem(0) 452 , mId(QUuid::createUuid()) 453 { 454 if (m_pParentItem) 455 m_pParentItem->addChild(this); 456 } 457 449 458 AbstractItem::AbstractItem(AbstractItem *pParentItem) 450 459 : QITreeViewItem(pParentItem) … … 483 492 484 493 /* Root Item */ 485 RootItem::RootItem( )486 : AbstractItem (0)494 RootItem::RootItem(QITreeView *pParent) 495 : AbstractItem(pParent) 487 496 { 488 497 } … … 1019 1028 1020 1029 /* Storage model */ 1021 StorageModel::StorageModel (QObject *aParent)1022 : QAbstractItemModel (aParent)1023 , mRootItem (new RootItem)1024 , mToolTipType 1030 StorageModel::StorageModel(QITreeView *pParent) 1031 : QAbstractItemModel(pParent) 1032 , mRootItem(new RootItem(pParent)) 1033 , mToolTipType(DefaultToolTip) 1025 1034 , m_chipsetType(KChipsetType_PIIX3) 1026 1035 , m_configurationAccessLevel(ConfigurationAccessLevel_Null) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r64489 r64490 260 260 }; 261 261 262 AbstractItem(QITreeView *pParent = 0); 262 263 AbstractItem(AbstractItem *pParentItem = 0); 263 264 virtual ~AbstractItem(); … … 292 293 public: 293 294 294 RootItem( );295 RootItem(QITreeView *pParent); 295 296 ~RootItem(); 296 297 … … 516 517 }; 517 518 518 StorageModel (QObject *aParent);519 StorageModel(QITreeView *pParent); 519 520 ~StorageModel(); 520 521
Note:
See TracChangeset
for help on using the changeset viewer.