forked from qt-creator/qt-creator
Core: Let callers specify which part of an options page to pre-select
... and use it for the "Manage kits" functionality. We will make use of this in other contexts as well. Task-number: QTCREATORBUG-25077 Change-Id: I79c622075b9385b060aed73534d39acc23fd765e Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -477,6 +477,24 @@ bool ICore::showOptionsDialog(const Id page, QWidget *parent)
|
||||
return executeSettingsDialog(parent ? parent : dialogParent(), page);
|
||||
}
|
||||
|
||||
/*!
|
||||
Opens the options dialog on the specified \a page. The dialog's \a parent
|
||||
defaults to dialogParent(). If the dialog is already shown when this method
|
||||
is called, it is just switched to the specified \a page.
|
||||
Pre-selects some part of the dialog specified by \a item which the dialog
|
||||
knows how to interpret.
|
||||
|
||||
Returns whether the user accepted the dialog.
|
||||
|
||||
\sa msgShowOptionsDialog()
|
||||
\sa msgShowOptionsDialogToolTip()
|
||||
*/
|
||||
bool ICore::showOptionsDialog(const Utils::Id page, Utils::Id item, QWidget *parent)
|
||||
{
|
||||
setPreselectedOptionsPageItem(page, item);
|
||||
return showOptionsDialog(page, parent);
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns the text to use on buttons that open the options dialog.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user