DebuggerTracingDialog ::DebuggerTracingDialog(Breakpoint* bp, QWidget* parent) : QDialog(parent), bp_(bp) { setupUi(this); expressions->setButtons(KEditListBox::Add | KEditListBox::Remove); connect(enable, SIGNAL(stateChanged(int)), this, SLOT(enableOrDisable(int))); connect(enableCustomFormat, SIGNAL(stateChanged(int)), this, SLOT(enableOrDisableCustomFormat(int))); enable->setChecked(bp_->tracingEnabled()); expressions->setItems(bp_->tracedExpressions()); enableCustomFormat->setChecked(bp_->traceFormatStringEnabled()); customFormat->setText(bp_->traceFormatString()); enableOrDisable(enable->isChecked()); // Go away if the breakpoint does connect(bp_, SIGNAL(destroyed(QObject*)), this, SLOT(reject())); }
static void disable(const char *param) { enableOrDisable(param, false); }
static void enable(const char *param) { enableOrDisable(param, true); }