- Timestamp:
- Nov 3, 2023 8:38:21 AM (18 months ago)
- svn:sync-xref-src-repo-rev:
- 159819
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp
r101717 r101723 907 907 } 908 908 909 void UIAdvancedSettingsDialog::setOptionalFlags(const QMap<QString, QVariant> &flags) 910 { 911 /* Avoid excessive calls: */ 912 if (m_flags == flags) 913 return; 914 915 /* Save new flags: */ 916 m_flags = flags; 917 918 /* Reapply optional flags: */ 919 sltApplyFilteringRules(); 920 } 921 909 922 void UIAdvancedSettingsDialog::addItem(const QString &strBigIcon, 910 923 const QString &strMediumIcon, … … 1095 1108 foreach (UISettingsPageFrame *pFrame, m_frames.values()) 1096 1109 pFrame->filterOut(m_pCheckBoxMode->isChecked(), 1097 m_pEditorFilter->text()); 1110 m_pEditorFilter->text(), 1111 m_flags); 1098 1112 } 1099 1113 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.h
r101717 r101723 141 141 bool isSerializationInProgress() const { return m_fSerializationIsInProgress; } 142 142 143 /** Returns dialog optional flags. */ 144 QMap<QString, QVariant> optionalFlags() const { return m_flags; } 145 /** Defines dialog optional @a flags. */ 146 void setOptionalFlags(const QMap<QString, QVariant> &flags); 147 143 148 /** Returns the dialog title extension. */ 144 149 virtual QString titleExtension() const = 0; … … 236 241 bool m_fClosed; 237 242 243 /** Holds the dialog optional flags. */ 244 QMap<QString, QVariant> m_flags; 245 238 246 /** Holds the status-bar widget instance. */ 239 247 QStackedWidget *m_pStatusBar; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.cpp
r101717 r101723 60 60 } 61 61 62 void UIEditor::filterOut(bool fExpertMode, const QString &strFilter )62 void UIEditor::filterOut(bool fExpertMode, const QString &strFilter, const QMap<QString, QVariant> &flags) 63 63 { 64 64 /* Save if editor is in expert mode: */ 65 65 m_fInExpertMode = fExpertMode; 66 /* Save editor's optional flags: */ 67 m_flags = flags; 66 68 67 69 /* Propagate filter towards all the children: */ 68 70 foreach (UIEditor *pEditor, m_editors) 69 pEditor->filterOut(m_fInExpertMode, strFilter );71 pEditor->filterOut(m_fInExpertMode, strFilter, m_flags); 70 72 71 73 /* Make sure the editor is visible if mode and filter are suitable: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIEditor.h
r101717 r101723 61 61 /** Filters out contents. 62 62 * @param fExpertMode Brings whether editor is in expert mode. 63 * @param strFilter Brings the filter description should match to. */ 64 virtual void filterOut(bool fExpertMode, const QString &strFilter); 63 * @param strFilter Brings the filter description should match to. 64 * @param flags Brings the optional flags for this editor. */ 65 virtual void filterOut(bool fExpertMode, 66 const QString &strFilter, 67 const QMap<QString, QVariant> &flags); 65 68 66 69 protected: … … 82 85 bool m_fInExpertMode; 83 86 87 /** Holds the editor optional flags. */ 88 QMap<QString, QVariant> m_flags; 89 84 90 /** Holds the parent tab-widget if any. */ 85 91 QTabWidget *m_pTabWidget;
Note:
See TracChangeset
for help on using the changeset viewer.