summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2015-10-20 15:09:12 +0300
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-10-23 12:47:58 +0000
commitc7717c204ad6e1c0738e4f7ebf7a938f916b5cb7 (patch)
tree10bd744aad8f319a5d48a0a353abf8d0586c2b07
parent4df436f61a8e2c2f0702090cb4d2a7b57a4e0f9a (diff)
downloadqt-creator-c7717c204ad6e1c0738e4f7ebf7a938f916b5cb7.tar.gz
Debugger: Fix "No such slot" warning in watchers
Change-Id: Ia8994e1cb86a05571a3d41352ad5d46f0bdd351f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
-rw-r--r--src/libs/utils/fancylineedit.h2
-rw-r--r--src/plugins/debugger/watchwindow.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/utils/fancylineedit.h b/src/libs/utils/fancylineedit.h
index d06d08f657..77f6f39373 100644
--- a/src/libs/utils/fancylineedit.h
+++ b/src/libs/utils/fancylineedit.h
@@ -150,6 +150,7 @@ public:
void setValidationFunction(const ValidationFunction &fn);
static ValidationFunction defaultValidationFunction();
void validate();
+ void onEditingFinished();
protected:
// Custom behaviour can be added here.
@@ -172,7 +173,6 @@ protected:
private:
void iconClicked();
- void onEditingFinished();
static bool validateWithValidator(FancyLineEdit *edit, QString *errorMessage);
// Unimplemented, to force the user to make a decision on
diff --git a/src/plugins/debugger/watchwindow.cpp b/src/plugins/debugger/watchwindow.cpp
index 47e83a41b1..b16022dbd3 100644
--- a/src/plugins/debugger/watchwindow.cpp
+++ b/src/plugins/debugger/watchwindow.cpp
@@ -1066,7 +1066,8 @@ public:
layout->addWidget(m_buttons);
setLayout(layout);
- connect(m_buttons, SIGNAL(accepted()), m_lineEdit, SLOT(onEditingFinished()));
+ connect(m_buttons, &QDialogButtonBox::accepted,
+ m_lineEdit, &Utils::FancyLineEdit::onEditingFinished);
connect(m_buttons, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(m_buttons, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(m_hint, SIGNAL(linkActivated(QString)),