Changeset 101032 in vbox
- Timestamp:
- Sep 6, 2023 3:07:18 PM (15 months ago)
- 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 39 39 /* GUI includes: */ 40 40 #include "QIDialogButtonBox.h" 41 #include "QILineEdit.h" 41 42 #include "UIAdvancedSettingsDialog.h" 42 43 #include "UICommon.h" … … 130 131 , m_fSilent(true) 131 132 , m_pLayoutMain(0) 133 , m_pEditorFilter(0) 132 134 , m_pScrollArea(0) 133 135 , m_pScrollViewport(0) … … 525 527 } 526 528 529 void UIAdvancedSettingsDialog::sltHandleFilterTextChanged(const QString &strText) 530 { 531 /* Filter-out page contents: */ 532 foreach (UISettingsPageFrame *pFrame, m_frames.values()) 533 pFrame->filterOut(strText); 534 } 535 527 536 void UIAdvancedSettingsDialog::prepare() 528 537 { … … 569 578 m_pLayoutMain->addWidget(m_pSelector->widget(), 0, 0, 2, 1); 570 579 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); 571 589 } 572 590 #endif /* !VBOX_GUI_WITH_TOOLBAR_SETTINGS */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h
r101028 r101032 47 47 class QVariant; 48 48 class QIDialogButtonBox; 49 class QILineEdit; 49 50 class UISettingsPage; 50 51 class UISettingsPageFrame; … … 182 183 void sltHandleWarningPaneUnhovered(UISettingsPageValidator *pValidator); 183 184 185 /** Handles text-change for filter editor. */ 186 void sltHandleFilterTextChanged(const QString &strText); 187 184 188 private: 185 189 … … 240 244 QGridLayout *m_pLayoutMain; 241 245 246 /** Holds the filter editor instance. */ 247 QILineEdit *m_pEditorFilter; 248 242 249 /** Holds the scroll-area instance. */ 243 250 QScrollArea *m_pScrollArea;
Note:
See TracChangeset
for help on using the changeset viewer.