Changeset 64082 in vbox
- Timestamp:
- Sep 28, 2016 2:14:15 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111021
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp
r64081 r64082 212 212 UISettingsSelectorTreeView::UISettingsSelectorTreeView(QWidget *pParent /* = 0 */) 213 213 : UISettingsSelector(pParent) 214 { 214 , m_pTreeWidget(0) 215 { 216 /* Prepare the tree-widget: */ 215 217 m_pTreeWidget = new QITreeWidget(pParent); 216 /* Configure the selector: */217 218 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding); 218 219 sizePolicy.setHorizontalStretch(0); … … 240 241 } 241 242 243 UISettingsSelectorTreeView::~UISettingsSelectorTreeView() 244 { 245 /* Cleanup the tree-widget: */ 246 delete m_pTreeWidget; 247 m_pTreeWidget = 0; 248 } 249 242 250 QWidget *UISettingsSelectorTreeView::widget() const 243 251 { … … 428 436 UISettingsSelectorToolBar::UISettingsSelectorToolBar(QWidget *pParent /* = 0 */) 429 437 : UISettingsSelector(pParent) 430 { 431 /* Init the toolbar: */ 438 , m_pToolBar(0) 439 , m_pActionGroup(0) 440 { 441 /* Prepare the toolbar: */ 432 442 m_pToolBar = new UIToolBar(pParent); 433 443 m_pToolBar->setUseTextLabels(true); … … 436 446 m_pToolBar->setShowToolBarButton(false); 437 447 #endif /* VBOX_WS_MAC */ 438 /* Init the action group for house keeping: */ 448 449 /* Prepare the action group: */ 439 450 m_pActionGroup = new QActionGroup(this); 440 451 m_pActionGroup->setExclusive(true); … … 445 456 UISettingsSelectorToolBar::~UISettingsSelectorToolBar() 446 457 { 458 /* Cleanup the action group: */ 459 delete m_pActionGroup; 460 m_pActionGroup = 0; 461 462 /* Cleanup the toolbar: */ 447 463 delete m_pToolBar; 464 m_pToolBar = 0; 448 465 } 449 466 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.h
r64081 r64082 132 132 /** Constructs settings selector passing @a pParent to the base-class. */ 133 133 UISettingsSelectorTreeView(QWidget *pParent = 0); 134 /** Destructs settings selector. */ 135 ~UISettingsSelectorTreeView(); 134 136 135 137 /** Returns the widget selector operates on. */ … … 200 202 /** Constructs settings selector passing @a pParent to the base-class. */ 201 203 UISettingsSelectorToolBar(QWidget *pParent = 0); 204 /** Destructs settings selector. */ 202 205 ~UISettingsSelectorToolBar(); 203 206
Note:
See TracChangeset
for help on using the changeset viewer.