forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -345,6 +345,7 @@ private:
|
|||||||
Utils::PathChooser *m_pathChooserFileName;
|
Utils::PathChooser *m_pathChooserFileName;
|
||||||
QLabel *m_labelLineNumber;
|
QLabel *m_labelLineNumber;
|
||||||
QLineEdit *m_lineEditLineNumber;
|
QLineEdit *m_lineEditLineNumber;
|
||||||
|
QCheckBox *m_checkBoxPropagate;
|
||||||
QLabel *m_labelEnabled;
|
QLabel *m_labelEnabled;
|
||||||
QCheckBox *m_checkBoxEnabled;
|
QCheckBox *m_checkBoxEnabled;
|
||||||
QLabel *m_labelAddress;
|
QLabel *m_labelAddress;
|
||||||
@@ -501,6 +502,11 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent)
|
|||||||
m_labelThreadSpec = new QLabel(tr("&Thread specification:"), groupBoxAdvanced);
|
m_labelThreadSpec = new QLabel(tr("&Thread specification:"), groupBoxAdvanced);
|
||||||
m_labelThreadSpec->setBuddy(m_lineEditThreadSpec);
|
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 = new QDialogButtonBox(this);
|
||||||
m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||||
|
|
||||||
@@ -538,6 +544,8 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent)
|
|||||||
verticalLayout->addSpacing(10);
|
verticalLayout->addSpacing(10);
|
||||||
verticalLayout->addWidget(groupBoxAdvanced);
|
verticalLayout->addWidget(groupBoxAdvanced);
|
||||||
verticalLayout->addSpacing(10);
|
verticalLayout->addSpacing(10);
|
||||||
|
verticalLayout->addWidget(m_checkBoxPropagate);
|
||||||
|
verticalLayout->addSpacing(10);
|
||||||
verticalLayout->addWidget(m_buttonBox);
|
verticalLayout->addWidget(m_buttonBox);
|
||||||
verticalLayout->setStretchFactor(groupBoxAdvanced, 10);
|
verticalLayout->setStretchFactor(groupBoxAdvanced, 10);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user