Changeset 88409 in vbox
- Timestamp:
- Apr 8, 2021 9:46:27 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143659
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/snapshots
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r87022 r88409 5 5 6 6 /* 7 * Copyright (C) 2006-202 0Oracle Corporation7 * Copyright (C) 2006-2021 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 468 468 , m_pIconSnapshotOnline(0) 469 469 , m_pTimerUpdateAge(0) 470 , m_pLayoutMain(0) 470 471 , m_pToolBar(0) 471 472 , m_pSnapshotTree(0) … … 1188 1189 /* Create timer: */ 1189 1190 m_pTimerUpdateAge = new QTimer; 1190 AssertPtrReturnVoid(m_pTimerUpdateAge);1191 if (m_pTimerUpdateAge) 1191 1192 { 1192 1193 /* Configure timer: */ … … 1256 1257 { 1257 1258 /* Create layout: */ 1258 new QVBoxLayout(this);1259 AssertPtrReturnVoid(layout());1259 m_pLayoutMain = new QVBoxLayout(this); 1260 if (m_pLayoutMain) 1260 1261 { 1261 1262 /* Configure layout: */ 1262 layout()->setContentsMargins(0, 0, 0, 0);1263 m_pLayoutMain->setContentsMargins(0, 0, 0, 0); 1263 1264 #ifdef VBOX_WS_MAC 1264 layout()->setSpacing(10);1265 m_pLayoutMain->setSpacing(10); 1265 1266 #else 1266 layout()->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2);1267 m_pLayoutMain->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutVerticalSpacing) / 2); 1267 1268 #endif 1268 1269 … … 1298 1299 1299 1300 /* Add into layout: */ 1300 layout()->addWidget(m_pToolBar);1301 m_pLayoutMain->addWidget(m_pToolBar); 1301 1302 } 1302 1303 } … … 1306 1307 /* Create snapshot tree: */ 1307 1308 m_pSnapshotTree = new UISnapshotTree(this); 1308 AssertPtrReturnVoid(m_pSnapshotTree);1309 if (m_pSnapshotTree) 1309 1310 { 1310 1311 /* Configure tree: */ … … 1319 1320 1320 1321 /* Add into layout: */ 1321 layout()->addWidget(m_pSnapshotTree);1322 m_pLayoutMain->addWidget(m_pSnapshotTree, 1); 1322 1323 } 1323 1324 } … … 1326 1327 { 1327 1328 /* Create details-widget: */ 1328 m_pDetailsWidget = new UISnapshotDetailsWidget ;1329 AssertPtrReturnVoid(m_pDetailsWidget);1329 m_pDetailsWidget = new UISnapshotDetailsWidget(this); 1330 if (m_pDetailsWidget) 1330 1331 { 1331 1332 /* Configure details-widget: */ … … 1335 1336 1336 1337 /* Add into layout: */ 1337 layout()->addWidget(m_pDetailsWidget);1338 m_pLayoutMain->addWidget(m_pDetailsWidget, 1); 1338 1339 } 1339 1340 } -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.h
r86233 r88409 5 5 6 6 /* 7 * Copyright (C) 2006-202 0Oracle Corporation7 * Copyright (C) 2006-2021 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 34 34 class QTimer; 35 35 class QTreeWidgetItem; 36 class QVBoxLayout; 37 class QIToolBar; 36 38 class QITreeWidgetItem; 37 39 class UIActionPool; … … 39 41 class UISnapshotItem; 40 42 class UISnapshotTree; 41 class QIToolBar;42 43 43 44 … … 239 240 /** @name Widget variables. 240 241 * @{ */ 242 /** Holds the main layout instance. */ 243 QVBoxLayout *m_pLayoutMain; 244 241 245 /** Holds the toolbar instance. */ 242 246 QIToolBar *m_pToolBar;
Note:
See TracChangeset
for help on using the changeset viewer.