VirtualBox

Changeset 101032 in vbox


Ignore:
Timestamp:
Sep 6, 2023 3:07:18 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: Extend UIAdvancedSettingsDialog interface with filter editor field.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp

    r101028 r101032  
    3939/* GUI includes: */
    4040#include "QIDialogButtonBox.h"
     41#include "QILineEdit.h"
    4142#include "UIAdvancedSettingsDialog.h"
    4243#include "UICommon.h"
     
    130131    , m_fSilent(true)
    131132    , m_pLayoutMain(0)
     133    , m_pEditorFilter(0)
    132134    , m_pScrollArea(0)
    133135    , m_pScrollViewport(0)
     
    525527}
    526528
     529void UIAdvancedSettingsDialog::sltHandleFilterTextChanged(const QString &strText)
     530{
     531    /* Filter-out page contents: */
     532    foreach (UISettingsPageFrame *pFrame, m_frames.values())
     533        pFrame->filterOut(strText);
     534}
     535
    527536void UIAdvancedSettingsDialog::prepare()
    528537{
     
    569578        m_pLayoutMain->addWidget(m_pSelector->widget(), 0, 0, 2, 1);
    570579        m_pSelector->widget()->setFocus();
     580    }
     581
     582    /* Prepare filter editor: */
     583    m_pEditorFilter = new QILineEdit(centralWidget());
     584    if (m_pEditorFilter)
     585    {
     586        connect(m_pEditorFilter, &QILineEdit::textChanged,
     587                this, &UIAdvancedSettingsDialog::sltHandleFilterTextChanged);
     588        m_pLayoutMain->addWidget(m_pEditorFilter, 0, 1);
    571589    }
    572590#endif /* !VBOX_GUI_WITH_TOOLBAR_SETTINGS */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h

    r101028 r101032  
    4747class QVariant;
    4848class QIDialogButtonBox;
     49class QILineEdit;
    4950class UISettingsPage;
    5051class UISettingsPageFrame;
     
    182183    void sltHandleWarningPaneUnhovered(UISettingsPageValidator *pValidator);
    183184
     185    /** Handles text-change for filter editor. */
     186    void sltHandleFilterTextChanged(const QString &strText);
     187
    184188private:
    185189
     
    240244        QGridLayout *m_pLayoutMain;
    241245
     246        /** Holds the filter editor instance. */
     247        QILineEdit *m_pEditorFilter;
     248
    242249        /** Holds the scroll-area instance. */
    243250        QScrollArea *m_pScrollArea;
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