VirtualBox

Ignore:
Timestamp:
Aug 21, 2023 12:59:21 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158858
Message:

FE/Qt: bugref:10496, bugref:9072. Refactoring filter panel. not complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r100919 r100921  
    6060#include "UIVMLogViewerWidget.h"
    6161#include "UIVMLogViewerBookmarksPanel.h"
    62 #include "UIVMLogViewerFilterPanel.h"
    6362#include "UIVMLogViewerOptionsPanel.h"
    6463
     
    213212    , m_fIsPolished(false)
    214213    , m_pTabWidget(0)
    215     , m_pFilterPanel(0)
    216214    , m_pBookmarksPanel(0)
    217215    , m_pOptionsPanel(0)
     
    429427
    430428    /* Re-Apply the filter settings: */
    431     if (m_pFilterPanel)
    432         m_pFilterPanel->applyFilter();
     429    if (m_pPanel)
     430        m_pPanel->applyFilter();
    433431}
    434432
     
    445443
    446444    /* re-Apply the filter settings: */
    447     if (m_pFilterPanel)
    448         m_pFilterPanel->applyFilter();
     445    if (m_pPanel)
     446        m_pPanel->applyFilter();
    449447
    450448    m_pTabWidget->blockSignals(false);
     
    553551    /* Dont refresh the search here as it is refreshed by the filtering mechanism
    554552       which is updated as tab current index changes (see sltFilterApplied): */
    555     if (m_pFilterPanel)
    556         m_pFilterPanel->applyFilter();
     553    if (m_pPanel)
     554        m_pPanel->applyFilter();
    557555
    558556    /* We keep a separate QVector<LogBookmark> for each log page: */
     
    758756
    759757    /* Create VM Log-Viewer filter-panel: */
    760     m_pFilterPanel = new UIVMLogViewerFilterPanel(0, this);
    761     if (m_pFilterPanel)
    762     {
    763         /* Configure panel: */
    764         //installEventFilter(m_pFilterPanel);
    765         m_pFilterPanel->hide();
    766         connect(m_pFilterPanel, &UIVMLogViewerFilterPanel::sigFilterApplied,
    767                 this, &UIVMLogViewerWidget::sltFilterApplied);
    768 
    769         /* Add into layout: */
    770         m_pMainLayout->addWidget(m_pFilterPanel);
    771     }
     758    // m_pFilterPanel = new UIVMLogViewerFilterPanel(0, this);
     759    // if (m_pFilterPanel)
     760    // {
     761    //     /* Configure panel: */
     762    //     //installEventFilter(m_pFilterPanel);
     763    //     m_pFilterPanel->hide();
     764
     765    //     /* Add into layout: */
     766    //     m_pMainLayout->addWidget(m_pFilterPanel);
     767    // }
    772768
    773769    /* Create VM Log-Viewer bookmarks-panel: */
     
    813809    connect(m_pPanel, &UIVMLogViewerPanelNew::sigSearchUpdated,
    814810            this, &UIVMLogViewerWidget::sltHandleSearchUpdated);
     811    connect(m_pPanel, &UIVMLogViewerPanelNew::sigFilterApplied,
     812            this, &UIVMLogViewerWidget::sltFilterApplied);
    815813
    816814    m_pMainLayout->addWidget(m_pPanel);
Note: See TracChangeset for help on using the changeset viewer.

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