Commit f6b115f8 authored by Tim Sander's avatar Tim Sander Committed by hjk

baremetal: add variable chooser to gdb server provider dialogs

Change-Id: Iaefbebaed43afb73f8b0c7ade4de38c7e33719ff
Reviewed-by: default avatarDenis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 8683a624
......@@ -34,6 +34,8 @@
#include <utils/qtcassert.h>
#include <coreplugin/variablechooser.h>
#include <QFormLayout>
#include <QPlainTextEdit>
......@@ -162,6 +164,10 @@ DefaultGdbServerProviderConfigWidget::DefaultGdbServerProviderConfigWidget(
addErrorLabel();
setFromProvider();
auto chooser = new Core::VariableChooser(this);
chooser->addSupportedWidget(m_initCommandsTextEdit.data());
chooser->addSupportedWidget(m_resetCommandsTextEdit.data());
connect(m_hostWidget.data(), &HostWidget::dataChanged,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_initCommandsTextEdit.data(), &QPlainTextEdit::textChanged,
......
......@@ -36,6 +36,8 @@
#include <utils/qtcassert.h>
#include <utils/fileutils.h>
#include <coreplugin/variablechooser.h>
#include <QString>
#include <QFileInfo>
......@@ -287,6 +289,10 @@ OpenOcdGdbServerProviderConfigWidget::OpenOcdGdbServerProviderConfigWidget(
addErrorLabel();
setFromProvider();
auto chooser = new Core::VariableChooser(this);
chooser->addSupportedWidget(m_initCommandsTextEdit.data());
chooser->addSupportedWidget(m_resetCommandsTextEdit.data());
connect(m_hostWidget.data(), &HostWidget::dataChanged,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_executableFileChooser.data(), &Utils::PathChooser::changed,
......
......@@ -36,6 +36,8 @@
#include <utils/qtcassert.h>
#include <utils/fileutils.h>
#include <coreplugin/variablechooser.h>
#include <QString>
#include <QFileInfo>
......@@ -286,6 +288,10 @@ StLinkUtilGdbServerProviderConfigWidget::StLinkUtilGdbServerProviderConfigWidget
addErrorLabel();
setFromProvider();
auto chooser = new Core::VariableChooser(this);
chooser->addSupportedWidget(m_initCommandsTextEdit.data());
chooser->addSupportedWidget(m_resetCommandsTextEdit.data());
connect(m_hostWidget.data(), &HostWidget::dataChanged,
this, &GdbServerProviderConfigWidget::dirty);
connect(m_executableFileChooser.data(), &Utils::PathChooser::changed,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment