Changeset 102261 in vbox
- Timestamp:
- Nov 22, 2023 3:12:38 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160395
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp
r101693 r102261 1013 1013 } 1014 1014 1015 void UISettingsSelectorTreeView::selectById(int iID )1015 void UISettingsSelectorTreeView::selectById(int iID, bool fSilently) 1016 1016 { 1017 1017 const QModelIndex index = m_pModel->findItem(iID); 1018 1018 const QModelIndex proxyIndex = m_pModelProxy->mapFromSource(index); 1019 1019 if (proxyIndex.isValid()) 1020 { 1021 if (fSilently) 1022 m_pTreeView->blockSignals(true); 1020 1023 m_pTreeView->setCurrentIndex(proxyIndex); 1024 if (fSilently) 1025 m_pTreeView->blockSignals(false); 1026 } 1021 1027 } 1022 1028 … … 1165 1171 } 1166 1172 1167 void UISettingsSelectorTreeWidget::selectById(int iID )1173 void UISettingsSelectorTreeWidget::selectById(int iID, bool) 1168 1174 { 1169 1175 QTreeWidgetItem *pItem = findItem(m_pTreeWidget, idToString(iID), TreeWidgetSection_Id); … … 1407 1413 } 1408 1414 1409 void UISettingsSelectorToolBar::selectById(int iID )1415 void UISettingsSelectorToolBar::selectById(int iID, bool) 1410 1416 { 1411 1417 if (const UISelectorActionItem *pItem = findActionItem(iID)) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.h
r101693 r102261 106 106 107 107 /** Make the section with @a iID current. */ 108 virtual void selectById(int iID ) = 0;108 virtual void selectById(int iID, bool fSilently = false) = 0; 109 109 /** Make the section with @a strLink current. */ 110 110 virtual void selectByLink(const QString &strLink) { selectById(linkToId(strLink)); } … … 176 176 177 177 /** Make the section with @a iID current. */ 178 virtual void selectById(int iID ) RT_OVERRIDE;178 virtual void selectById(int iID, bool fSilently) RT_OVERRIDE; 179 179 180 180 private slots: … … 239 239 240 240 /** Make the section with @a iID current. */ 241 virtual void selectById(int iID ) RT_OVERRIDE;241 virtual void selectById(int iID, bool fSilently) RT_OVERRIDE; 242 242 243 243 /** Performs selector polishing. */ … … 312 312 313 313 /** Make the section with @a iID current. */ 314 virtual void selectById(int iID ) RT_OVERRIDE;314 virtual void selectById(int iID, bool fSilently) RT_OVERRIDE; 315 315 316 316 /** Returns minimum selector width. */
Note:
See TracChangeset
for help on using the changeset viewer.