Changeset 100951 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 23, 2023 8:01:03 AM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDialogPanel.cpp
r100917 r100951 50 50 : QWidget(pParent) 51 51 , m_pTabWidget(0) 52 , m_pCloseButton(0) 52 53 { 53 54 prepare(); 54 55 } 56 57 // m_pCloseButton = new QIToolButton; 58 // if (m_pCloseButton) 59 // { 60 // m_pCloseButton->setIcon(UIIconPool::iconSet(":/close_16px.png")); 61 // m_pMainLayout->addWidget(m_pCloseButton, 0, Qt::AlignLeft); 62 // } 63 // } 64 65 // void UIDialogPanel::prepareConnections() 66 // { 67 // if (m_pCloseButton) 68 // connect(m_pCloseButton, &QIToolButton::clicked, this, &UIDialogPanel::hide); 69 // } 70 71 // void UIDialogPanel::retranslateUi() 72 // { 73 // if (m_pCloseButton) 74 // m_pCloseButton->setToolTip(tr("Close the pane")); 75 // } 55 76 56 77 void UIDialogPanelBase::prepare() … … 63 84 AssertReturnVoid(m_pTabWidget); 64 85 pLayout->addWidget(m_pTabWidget); 86 /* Add a button to close the tab widget: */ 87 m_pCloseButton = new QIToolButton; 88 AssertReturnVoid(m_pCloseButton); 89 m_pCloseButton->setIcon(UIIconPool::iconSet(":/close_16px.png")); 90 m_pTabWidget->setCornerWidget(m_pCloseButton); 91 65 92 } 66 93 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDialogPanel.h
r100917 r100951 66 66 private: 67 67 68 QTabWidget *m_pTabWidget; 68 QTabWidget *m_pTabWidget; 69 QIToolButton *m_pCloseButton; 69 70 }; 70 71 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r100946 r100951 801 801 802 802 m_pMainLayout->addWidget(m_pPanel); 803 804 803 } 805 804
Note:
See TracChangeset
for help on using the changeset viewer.