Changeset 100306 in vbox
- Timestamp:
- Jun 28, 2023 9:15:24 AM (17 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.cpp
r100300 r100306 34 34 35 35 /* GUI includes: */ 36 #include "QIToolBar.h" 36 37 #include "QIToolButton.h" 37 38 #include "UIFileTableNavigationWidget.h" … … 49 50 : QIWithRetranslateUI<QWidget>(pParent) 50 51 , m_pMainLayout(0) 52 , m_pToolBar(0) 51 53 , m_pNavigationWidget(0) 54 , m_pFileTableLabel(0) 52 55 { 53 56 } … … 66 69 AssertPtrReturnVoid(pTopLayout); 67 70 68 71 m_pToolBar = new QIToolBar; 69 72 m_pNavigationWidget = new UIFileTableNavigationWidget; 70 73 m_pFileTableLabel = new QLabel; 71 74 75 AssertReturnVoid(m_pToolBar); 72 76 AssertReturnVoid(m_pNavigationWidget); 73 77 AssertReturnVoid(m_pFileTableLabel); … … 75 79 pTopLayout->addWidget(m_pFileTableLabel); 76 80 pTopLayout->addWidget(m_pNavigationWidget); 77 m_pMainLayout->addLayout(pTopLayout, 0, 0, 1, 4);78 81 79 m_pMainLayout->setRowStretch(1, 2); 82 m_pMainLayout->addWidget(m_pToolBar, 0, 0, 1, 4); 83 m_pMainLayout->addLayout(pTopLayout, 1, 0, 1, 4); 84 85 m_pMainLayout->setRowStretch(2, 2); 80 86 } 81 87 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.h
r100299 r100306 43 43 class QGridLayout; 44 44 class QLabel; 45 class QIToolBar; 45 46 class UIFileTableNavigationWidget; 46 47 47 /** An abstract QWidget extension hosting a nd table view. */48 /** An abstract QWidget extension hosting a toolbar, a navigation widget, and table view. */ 48 49 class UIVisoBrowserBase : public QIWithRetranslateUI<QWidget> 49 50 { … … 81 82 82 83 QGridLayout *m_pMainLayout; 84 QIToolBar *m_pToolBar; 83 85 84 86 protected slots: -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp
r100299 r100306 506 506 if (m_pTableView) 507 507 { 508 m_pMainLayout->addWidget(m_pTableView, 1, 0, 6, 4);508 m_pMainLayout->addWidget(m_pTableView, 2, 0, 6, 4); 509 509 m_pTableView->setContextMenuPolicy(Qt::CustomContextMenu); 510 510 m_pTableView->setSelectionMode(QAbstractItemView::ExtendedSelection); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.cpp
r100299 r100306 183 183 { 184 184 m_pTableView->setContextMenuPolicy(Qt::CustomContextMenu); 185 m_pMainLayout->addWidget(m_pTableView, 1, 0, 8, 4);185 m_pMainLayout->addWidget(m_pTableView, 2, 0, 8, 4); 186 186 m_pTableView->setShowGrid(false); 187 187 m_pTableView->setSelectionBehavior(QAbstractItemView::SelectRows);
Note:
See TracChangeset
for help on using the changeset viewer.