aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/savedaction.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-05-29 11:55:16 +0200
committerhjk <hjk@theqtcompany.com>2015-06-04 10:49:00 +0000
commitbe6293063afed11894ab08b39703905274974da2 (patch)
tree8d9fec210f944b2b8a3e6205262b8e81ba29633d /src/libs/utils/savedaction.cpp
parentf3ad26b23df1e877955121d6e3d849209c6c13a7 (diff)
Utils: Remove unneeded Q_SLOT and stale debug output in SavedAction
Also adjust RegisterPostMortemAction. Change-Id: I6395b0c853d0e37e94d22c5e90499e5465de610b Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/savedaction.cpp')
-rw-r--r--src/libs/utils/savedaction.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libs/utils/savedaction.cpp b/src/libs/utils/savedaction.cpp
index 94c83a0e9dd..3161754a148 100644
--- a/src/libs/utils/savedaction.cpp
+++ b/src/libs/utils/savedaction.cpp
@@ -196,8 +196,6 @@ void SavedAction::readSettings(const QSettings *settings)
if (isCheckable() && !var.isValid())
var = false;
setValue(var);
- //qDebug() << "READING: " << var.isValid() << m_settingsKey << " -> " << m_value
- // << " (default: " << m_defaultValue << ")" << var;
}
/*
@@ -212,7 +210,6 @@ void SavedAction::writeSettings(QSettings *settings)
return;
settings->beginGroup(m_settingsGroup);
settings->setValue(m_settingsKey, m_value);
- //qDebug() << "WRITING: " << m_settingsKey << " -> " << toString();
settings->endGroup();
}
@@ -242,12 +239,10 @@ void SavedAction::connectWidget(QWidget *widget, ApplyMode applyMode)
this, &SavedAction::checkableButtonClicked);
} else if (QSpinBox *spinBox = qobject_cast<QSpinBox *>(widget)) {
spinBox->setValue(m_value.toInt());
- //qDebug() << "SETTING VALUE" << spinBox->value();
connect(spinBox, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
this, &SavedAction::spinBoxValueChanged);
} else if (QLineEdit *lineEdit = qobject_cast<QLineEdit *>(widget)) {
lineEdit->setText(m_value.toString());
- //qDebug() << "SETTING TEXT" << lineEdit->text();
connect(lineEdit, &QLineEdit::editingFinished,
this, &SavedAction::lineEditEditingFinished);
} else if (PathChooser *pathChooser = qobject_cast<PathChooser *>(widget)) {
@@ -309,7 +304,6 @@ void SavedAction::checkableButtonClicked(bool)
{
QCheckBox *button = qobject_cast<QCheckBox *>(sender());
QTC_ASSERT(button, return);
- //qDebug() << "CHECKABLE BUTTON: " << sender();
if (m_applyMode == ImmediateApply)
setValue(button->isChecked());
}