aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-10-02 09:43:46 +0200
committerhjk <hjk@qt.io>2019-10-16 12:46:48 +0000
commit50deb50069ed47ec66cacb170413b47e60b2044e (patch)
tree9b88f3a01f06c45b62b67cb620ac7f6ceff905f6
parenta28f57abb9ea9b0228fd8daf56710a1c870efc8a (diff)
Debugger: Introduce a checkbox
... to propagate breakpoint changes from a running debugger back to the original preset breakpoint. This is currently unused as some changes are already propagated, and some not, so a bit more diligence is needed. For now it is there to have the new label string in safely before string freeze. Change-Id: I8ee4d07bab5a4f66e59bf992ebfd81c56fdb3ecf Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r--src/plugins/debugger/breakhandler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 8befb49f8e..0958c23306 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -345,6 +345,7 @@ private:
Utils::PathChooser *m_pathChooserFileName;
QLabel *m_labelLineNumber;
QLineEdit *m_lineEditLineNumber;
+ QCheckBox *m_checkBoxPropagate;
QLabel *m_labelEnabled;
QCheckBox *m_checkBoxEnabled;
QLabel *m_labelAddress;
@@ -501,6 +502,11 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent)
m_labelThreadSpec = new QLabel(tr("&Thread specification:"), groupBoxAdvanced);
m_labelThreadSpec->setBuddy(m_lineEditThreadSpec);
+ m_checkBoxPropagate = new QCheckBox(tr("Propagate Change to Preset Breakpoint"), this);
+ m_checkBoxPropagate->setCheckable(true);
+ m_checkBoxPropagate->setChecked(true);
+ m_checkBoxPropagate->setVisible(false); // FIXME: Make it work.
+
m_buttonBox = new QDialogButtonBox(this);
m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
@@ -538,6 +544,8 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent)
verticalLayout->addSpacing(10);
verticalLayout->addWidget(groupBoxAdvanced);
verticalLayout->addSpacing(10);
+ verticalLayout->addWidget(m_checkBoxPropagate);
+ verticalLayout->addSpacing(10);
verticalLayout->addWidget(m_buttonBox);
verticalLayout->setStretchFactor(groupBoxAdvanced, 10);