Changeset 88735 in vbox for trunk/src/VBox
- Timestamp:
- Apr 27, 2021 1:22:01 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp
r88734 r88735 271 271 resetFiltering(); 272 272 retranslateUi(); 273 emit sigFilterApplied(); 273 274 } 274 275 … … 321 322 cursor.movePosition(QTextCursor::End, QTextCursor::MoveAnchor); 322 323 pCurrentTextEdit->setTextCursor(cursor); 323 324 emit sigFilterApplied(false /* isOriginalLog */);325 324 logPage->scrollToEnd(); 326 325 } … … 398 397 return; 399 398 m_filterTermSet.clear(); 400 resetFiltering();399 applyFilter(); 401 400 if (m_pFilterTermsLineEdit) 402 401 m_pFilterTermsLineEdit->clearAll(); -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.h
r88734 r88735 47 47 signals: 48 48 49 /* Notifies listeners that the filter has been applied. @a isOriginalLog is true 50 if filter function returns early for some reason (no filter term etc.) and log page 51 content is set to original log file. @a isOriginalLog is false if content is reduced (filtered)*/ 52 void sigFilterApplied(bool isOriginalLog); 49 void sigFilterApplied(); 53 50 54 51 public: -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r88728 r88735 405 405 406 406 /* Dont refresh the search here as it is refreshed by the filtering mechanism 407 which is updated as tab current index changes : */407 which is updated as tab current index changes (see sltFilterApplied): */ 408 408 if (m_pFilterPanel) 409 409 m_pFilterPanel->applyFilter(); … … 414 414 } 415 415 416 void UIVMLogViewerWidget::sltFilterApplied(bool isOriginal) 417 { 418 if (currentLogPage()) 419 currentLogPage()->setFiltered(!isOriginal); 416 void UIVMLogViewerWidget::sltFilterApplied() 417 { 420 418 /* Reapply the search to get highlighting etc. correctly */ 421 419 if (m_pSearchPanel && m_pSearchPanel->isVisible()) -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h
r88728 r88735 120 120 /** Handles the tab change of the logviewer. */ 121 121 void sltCurrentTabChanged(int tabIndex); 122 /* if @a isOriginal true than the result of the filtering is equal to 123 the original log file for some reason. */ 124 void sltFilterApplied(bool isOriginal); 122 void sltFilterApplied(); 125 123 /* Handles the UIVMLogPage signal which is emitted when isFiltered property 126 124 of UIVMLogPage is changed. */
Note:
See TracChangeset
for help on using the changeset viewer.