forked from qt-creator/qt-creator
VariableChooser: Rework
Allow multiple expanders to be registered for lineedits, e.g. a local and the global ones, and actually show them. Use a tree view in the chooser for somewhat more structured display. Change-Id: I769f92144e5249f45e54381de52aa6973eb20118 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -72,8 +72,6 @@ public:
|
||||
GdbOptionsPageWidget::GdbOptionsPageWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
(void) new VariableChooser(this);
|
||||
|
||||
auto groupBoxGeneral = new QGroupBox(this);
|
||||
groupBoxGeneral->setTitle(GdbOptionsPage::tr("General"));
|
||||
|
||||
@@ -233,10 +231,11 @@ GdbOptionsPageWidget::GdbOptionsPageWidget(QWidget *parent)
|
||||
"Matching regular expression: "));
|
||||
*/
|
||||
|
||||
VariableChooser::addVariableSupport(textEditCustomDumperCommands);
|
||||
VariableChooser::addVariableSupport(textEditPostAttachCommands);
|
||||
VariableChooser::addVariableSupport(textEditStartupCommands);
|
||||
VariableChooser::addVariableSupport(pathChooserExtraDumperFile->lineEdit());
|
||||
auto chooser = new VariableChooser(this);
|
||||
chooser->addSupportedWidget(textEditCustomDumperCommands);
|
||||
chooser->addSupportedWidget(textEditPostAttachCommands);
|
||||
chooser->addSupportedWidget(textEditStartupCommands);
|
||||
chooser->addSupportedWidget(pathChooserExtraDumperFile->lineEdit());
|
||||
|
||||
auto formLayout = new QFormLayout(groupBoxGeneral);
|
||||
formLayout->addRow(labelGdbWatchdogTimeout, spinBoxGdbWatchdogTimeout);
|
||||
|
||||
Reference in New Issue
Block a user