Changeset 100946 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 22, 2023 5:19:28 PM (16 months 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
r100943 r100946 523 523 void UIVMLogViewerWidget::sltPanelActionToggled(bool fChecked) 524 524 { 525 Q_UNUSED(fChecked); 525 if (!m_pPanel) 526 return; 527 QAction *pAction = qobject_cast<QAction*>(sender()); 528 529 if (!m_panelActions.contains(pAction)) 530 return; 531 532 foreach (QAction *pOther, m_panelActions) 533 { 534 if (pOther == pAction) 535 continue; 536 pOther->blockSignals(true); 537 pOther->setChecked(false); 538 pOther->blockSignals(false); 539 } 540 541 m_pPanel->setVisible(fChecked); 542 if (fChecked) 543 m_pPanel->setCurrentIndex(pAction->data().toInt()); 526 544 } 527 545 … … 707 725 addAction(m_pActionPool->action(UIActionIndex_M_Log_S_Refresh)); 708 726 addAction(m_pActionPool->action(UIActionIndex_M_Log_S_Save)); 727 728 m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_Log_T_Find)); 729 m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_Log_T_Filter)); 730 m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)); 731 m_panelActions.insert(m_pActionPool->action(UIActionIndex_M_Log_T_Preferences)); 732 733 m_pActionPool->action(UIActionIndex_M_Log_T_Find)->setData((int)UIVMLogViewerPanelNew::Page_Search); 734 m_pActionPool->action(UIActionIndex_M_Log_T_Filter)->setData((int)UIVMLogViewerPanelNew::Page_Filter); 735 m_pActionPool->action(UIActionIndex_M_Log_T_Bookmark)->setData((int)UIVMLogViewerPanelNew::Page_Bookmark); 736 m_pActionPool->action(UIActionIndex_M_Log_T_Preferences)->setData((int)UIVMLogViewerPanelNew::Page_Preferences); 709 737 710 738 /* Connect actions: */ … … 751 779 connect(m_pTabWidget, &QITabWidget::currentChanged, this, &UIVMLogViewerWidget::sltCurrentTabChanged); 752 780 753 /* Create VM Log-Viewer options-panel: */754 // m_pOptionsPanel = new UIVMLogViewerOptionsPanel(0, this);755 // AssertReturnVoid(m_pOptionsPanel);756 // /* Configure panel: */757 // m_pOptionsPanel->hide();758 759 // m_pMainLayout->addWidget(m_pOptionsPanel);760 761 781 m_pPanel = new UIVMLogViewerPanelNew(0, this); 762 782 AssertReturnVoid(m_pPanel); … … 766 786 m_pPanel->setWrapLines(m_bWrapLines); 767 787 m_pPanel->setFontSizeInPoints(m_font.pointSize()); 768 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigShowLineNumbers, this, &UIVMLogViewerWidget::sltShowLineNumbers); 769 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigWrapLines, this, &UIVMLogViewerWidget::sltWrapLines); 770 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigChangeFontSizeInPoints, this, &UIVMLogViewerWidget::sltFontSizeChanged); 771 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigChangeFont, this, &UIVMLogViewerWidget::sltChangeFont); 772 // connect(m_pPanel, &UIVMLogViewerPanelNew::sigResetToDefaults, this, &UIVMLogViewerWidget::sltResetOptionsToDefault); 773 788 m_pPanel->setVisible(false); 774 789 connect(m_pPanel, &UIVMLogViewerPanelNew::sigHighlightingUpdated, 775 790 this, &UIVMLogViewerWidget::sltSearchResultHighLigting); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r100936 r100946 36 36 #include <QPair> 37 37 #include <QPointer> 38 #include <QSet> 38 39 #include <QWidget> 39 40 #include <QUuid> … … 250 251 QPointer<UIVMLogPage> m_pPreviousLogPage; 251 252 UIVMLogViewerPanelNew *m_pPanel; 252 253 QSet<QAction*> m_panelActions; 253 254 friend class UIVMLogViewerFilterWidget; 254 255 friend class UIVMLogViewerPanel;
Note:
See TracChangeset
for help on using the changeset viewer.