Changeset 88737 in vbox for trunk/src/VBox
- Timestamp:
- Apr 27, 2021 2:10:49 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.cpp
r88734 r88737 58 58 { 59 59 /* We start the search from the end of the doc. assuming log's end is more interesting: */ 60 performSearch(BackwardSearch, true); 60 if (isVisible()) 61 performSearch(BackwardSearch, true); 62 else 63 reset(); 64 61 65 emit sigHighlightingUpdated(); 62 66 } … … 69 73 if (m_pSearchEditor) 70 74 m_pSearchEditor->reset(); 75 emit sigHighlightingUpdated(); 71 76 } 72 77 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.h
r88707 r88737 55 55 /** Resets the search position and starts a new search. */ 56 56 void refresh(); 57 void reset();58 57 const QVector<float> &matchLocationVector() const; 59 58 virtual QString panelName() const /* override */; … … 104 103 /** Searches the whole document and return the number of matches to the current search term. */ 105 104 int countMatches(QTextDocument *pDocument, const QString &searchString) const; 105 void reset(); 106 106 107 /** Holds the instance of search-editor we create. */ 107 108 UISearchLineEdit *m_pSearchEditor; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r88735 r88737 417 417 { 418 418 /* Reapply the search to get highlighting etc. correctly */ 419 if (m_pSearchPanel && m_pSearchPanel->isVisible())419 if (m_pSearchPanel) 420 420 m_pSearchPanel->refresh(); 421 421 }
Note:
See TracChangeset
for help on using the changeset viewer.