Changeset 101092 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 12, 2023 12:54:09 PM (17 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp
r100962 r101092 66 66 connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigSearchUpdated, 67 67 this, &UIVMLogViewerPaneContainer::sigSearchUpdated); 68 connect(m_pSearchWidget, &UIVMLogViewerSearchWidget::sigShowPane, 69 this, &UIVMLogViewerPaneContainer::sigShowSearchPane); 68 70 69 71 /* Filter tab: */ … … 169 171 bool UIVMLogViewerPaneContainer::eventFilter(QObject *pObject, QEvent *pEvent) 170 172 { 171 if (currentIndex() == static_cast<Page>(Page_Search)) 172 { 173 if (m_pSearchWidget->handleSearchRelatedEvents(pObject, pEvent)) 174 return true; 175 } 173 /* Check if the search panel is interested in the event (most prob. key event): */ 174 if (m_pSearchWidget && m_pSearchWidget->handleSearchRelatedEvents(pObject, pEvent)) 175 return true; 176 176 177 return UIPaneContainer::eventFilter(pObject, pEvent); 177 178 } -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r100962 r101092 63 63 void sigChangeFont(QFont font); 64 64 void sigResetToDefaults(); 65 66 void sigShowSearchPane(); 65 67 66 68 public: -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchWidget.cpp
r100963 r101092 343 343 { 344 344 /* Make sure current log-page is visible: */ 345 //emit sigShowPanel(this);345 emit sigShowPane(); 346 346 /* Set focus on search-editor: */ 347 347 m_pSearchEditor->setFocus(); … … 353 353 { 354 354 /* Make sure current log-page is visible: */ 355 //emit sigShowPanel(this);355 emit sigShowPane(); 356 356 /* Set focus on search-editor: */ 357 357 m_pSearchEditor->setFocus(); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchWidget.h
r100963 r101092 57 57 void sigHighlightingUpdated(); 58 58 void sigSearchUpdated(); 59 void sigShowPane(); 59 60 60 61 public: -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r101090 r101092 715 715 break; 716 716 } 717 } 718 719 void UIVMLogViewerWidget::sltShowSearchPane() 720 { 721 AssertReturnVoid(m_pPanel); 722 723 m_pPanel->setVisible(true); 724 int iIndex = (int)UIVMLogViewerPaneContainer::Page_Search; 725 m_pPanel->setCurrentIndex(iIndex); 726 sltPanelCurrentTabChanged(iIndex); 717 727 } 718 728 … … 832 842 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigCurrentTabChanged, 833 843 this, &UIVMLogViewerWidget::sltPanelCurrentTabChanged); 844 connect(m_pPanel, &UIVMLogViewerPaneContainer::sigShowSearchPane, 845 this, &UIVMLogViewerWidget::sltShowSearchPane); 834 846 835 847 m_pMainLayout->addWidget(m_pPanel); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r101090 r101092 147 147 void sltPanelContainerHidden(); 148 148 void sltPanelCurrentTabChanged(int iIndex); 149 void sltShowSearchPane(); 149 150 150 151 private:
Note:
See TracChangeset
for help on using the changeset viewer.