Changeset 64125 in vbox for trunk/src/VBox
- Timestamp:
- Oct 3, 2016 3:29:22 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeWidget.cpp
r64109 r64125 30 30 31 31 32 QITreeWidget::QITreeWidget(QWidget * aParent)33 : QTreeWidget( aParent)32 QITreeWidget::QITreeWidget(QWidget *pParent) 33 : QTreeWidget(pParent) 34 34 { 35 35 } … … 40 40 for (int i = 0; i < topLevelItemCount(); ++i) 41 41 topLevelItem(i)->setSizeHint(0, sizeHint); 42 } 43 44 int QITreeWidget::childCount() const 45 { 46 /* Return the number of children: */ 47 return invisibleRootItem()->childCount(); 48 } 49 50 QTreeWidgetItem *QITreeWidget::childItem(int iIndex) const 51 { 52 /* Return the child item with iIndex if any: */ 53 return invisibleRootItem()->child(iIndex); 42 54 } 43 55 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITreeWidget.h
r64109 r64125 43 43 void setSizeHintForItems(const QSize &sizeHint); 44 44 45 /** Returns the number of children. */ 46 int childCount() const; 47 /** Returns the child item with @a iIndex. */ 48 QTreeWidgetItem *childItem(int iIndex) const; 49 45 50 protected: 46 51
Note:
See TracChangeset
for help on using the changeset viewer.