Changeset 100917 in vbox for trunk/src/VBox
- Timestamp:
- Aug 21, 2023 5:59:51 AM (19 months ago)
- svn:sync-xref-src-repo-rev:
- 158854
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDialogPanel.cpp
r100907 r100917 83 83 return; 84 84 m_pTabWidget->setCurrentIndex(iIndex); 85 } 86 87 int UIDialogPanelBase::currentIndex() const 88 { 89 if (!m_pTabWidget) 90 return -1; 91 return m_pTabWidget->currentIndex(); 85 92 } 86 93 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDialogPanel.h
r100907 r100917 56 56 UIDialogPanelBase(QWidget *pParent = 0); 57 57 void setCurrentIndex(int iIndex); 58 int currentIndex() const; 58 59 59 60 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp
r100915 r100917 50 50 #endif 51 51 52 /* Other VBox includes: */ 53 #include <iprt/assert.h> 54 52 55 53 56 /********************************************************************************************************************************* -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.cpp
r100915 r100917 51 51 void UIVMLogViewerPanelNew::prepare() 52 52 { 53 prepareSearchTab(); 53 m_pSearchWidget = new UIVMLogViewerSearchPanel(0, m_pViewer); 54 insertTab(0, m_pSearchWidget); 54 55 retranslateUi(); 55 56 } 56 57 57 void UIVMLogViewerPanelNew:: prepareSearchTab()58 void UIVMLogViewerPanelNew::refreshSearch() 58 59 { 59 //insertTab(0, new QPushButton("asdasda")); 60 m_pSearchWidget = new UIVMLogViewerSearchPanel(0, m_pViewer); 61 insertTab(0, m_pSearchWidget); 60 if (m_pSearchWidget) 61 m_pSearchWidget->refreshSearch(); 62 62 } 63 63 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerPanel.h
r100916 r100917 48 48 49 49 UIVMLogViewerPanelNew(QWidget *pParent, UIVMLogViewerWidget *pViewer); 50 void refreshSearch(); 51 52 enum Page 53 { 54 Page_Search = 0, 55 Page_Filter, 56 Page_Bookmark, 57 Page_Preferences, 58 Page_Max 59 }; 60 50 61 51 62 private: … … 53 64 void retranslateUi() override; 54 65 void prepare() override; 55 void prepareSearchTab();56 66 57 67 UIVMLogViewerSearchPanel *m_pSearchWidget; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.cpp
r100915 r100917 68 68 } 69 69 70 void UIVMLogViewerSearchPanel::refresh ()70 void UIVMLogViewerSearchPanel::refreshSearch() 71 71 { 72 72 /* We start the search from the end of the doc. assuming log's end is more interesting: */ … … 172 172 void UIVMLogViewerSearchPanel::sltCaseSentitiveCheckBox() 173 173 { 174 refresh ();174 refreshSearch(); 175 175 } 176 176 177 177 void UIVMLogViewerSearchPanel::sltMatchWholeWordCheckBox() 178 178 { 179 refresh ();179 refreshSearch(); 180 180 } 181 181 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.h
r100915 r100917 64 64 UIVMLogViewerSearchPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer); 65 65 /** Resets the search position and starts a new search. */ 66 void refresh ();66 void refreshSearch(); 67 67 const QVector<float> &matchLocationVector() const; 68 68 /** Returns the number of the matches to the current search. */
Note:
See TracChangeset
for help on using the changeset viewer.