VirtualBox

Changeset 88735 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 27, 2021 1:22:01 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9930. Syncing search and filtering

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  
    271271        resetFiltering();
    272272    retranslateUi();
     273    emit sigFilterApplied();
    273274}
    274275
     
    321322    cursor.movePosition(QTextCursor::End, QTextCursor::MoveAnchor);
    322323    pCurrentTextEdit->setTextCursor(cursor);
    323 
    324     emit sigFilterApplied(false /* isOriginalLog */);
    325324    logPage->scrollToEnd();
    326325}
     
    398397        return;
    399398    m_filterTermSet.clear();
    400     resetFiltering();
     399    applyFilter();
    401400    if (m_pFilterTermsLineEdit)
    402401        m_pFilterTermsLineEdit->clearAll();
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.h

    r88734 r88735  
    4747signals:
    4848
    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();
    5350
    5451public:
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r88728 r88735  
    405405
    406406    /* 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): */
    408408    if (m_pFilterPanel)
    409409        m_pFilterPanel->applyFilter();
     
    414414}
    415415
    416 void UIVMLogViewerWidget::sltFilterApplied(bool isOriginal)
    417 {
    418     if (currentLogPage())
    419         currentLogPage()->setFiltered(!isOriginal);
     416void UIVMLogViewerWidget::sltFilterApplied()
     417{
    420418    /* Reapply the search to get highlighting etc. correctly */
    421419    if (m_pSearchPanel && m_pSearchPanel->isVisible())
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.h

    r88728 r88735  
    120120    /** Handles the tab change of the logviewer. */
    121121    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();
    125123    /* Handles the UIVMLogPage signal which is emitted when isFiltered property
    126124       of UIVMLogPage is changed. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette