Changeset 88634 in vbox for trunk/src/VBox
- Timestamp:
- Apr 21, 2021 1:14:44 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r88018 r88634 45 45 #include "UIVMLogViewerOptionsPanel.h" 46 46 #include "QIToolBar.h" 47 #include "QIToolButton.h" 47 48 #include "UICommon.h" 48 49 … … 73 74 , m_bWrapLines(false) 74 75 , m_font(QFontDatabase::systemFont(QFontDatabase::FixedFont)) 76 , m_pCornerButton(0) 77 , m_pMachineSelectionMenu(0) 75 78 { 76 79 /* Prepare VM Log-Viewer: */ … … 492 495 /* Add into layout: */ 493 496 m_pMainLayout->addWidget(m_pTabWidget); 497 m_pCornerButton = new QIToolButton(m_pTabWidget); 498 if (m_pCornerButton) 499 { 500 m_pTabWidget->setCornerWidget(m_pCornerButton, Qt::TopLeftCorner); 501 m_pCornerButton->setIcon(UIIconPool::iconSet(":/machine_16px.png")); 502 m_pMachineSelectionMenu = new QMenu(this); 503 m_pCornerButton->setMenu(m_pMachineSelectionMenu); 504 } 494 505 } 495 506 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r88018 r88634 43 43 class UIDialogPanel; 44 44 class QIToolBar; 45 class QIToolButton; 45 46 class UIVMLogPage; 46 47 class UIVMLogViewerBookmarksPanel; … … 236 237 QFont m_font; 237 238 /** @} */ 239 QIToolButton *m_pCornerButton; 240 QMenu *m_pMachineSelectionMenu; 238 241 friend class UIVMLogViewerFilterPanel; 239 242 friend class UIVMLogViewerPanel;
Note:
See TracChangeset
for help on using the changeset viewer.