forked from qt-creator/qt-creator
Debugger: Fix "No such slot" warning in watchers
Change-Id: Ia8994e1cb86a05571a3d41352ad5d46f0bdd351f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
4df436f61a
commit
c7717c204a
@@ -150,6 +150,7 @@ public:
|
|||||||
void setValidationFunction(const ValidationFunction &fn);
|
void setValidationFunction(const ValidationFunction &fn);
|
||||||
static ValidationFunction defaultValidationFunction();
|
static ValidationFunction defaultValidationFunction();
|
||||||
void validate();
|
void validate();
|
||||||
|
void onEditingFinished();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Custom behaviour can be added here.
|
// Custom behaviour can be added here.
|
||||||
@@ -172,7 +173,6 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void iconClicked();
|
void iconClicked();
|
||||||
void onEditingFinished();
|
|
||||||
|
|
||||||
static bool validateWithValidator(FancyLineEdit *edit, QString *errorMessage);
|
static bool validateWithValidator(FancyLineEdit *edit, QString *errorMessage);
|
||||||
// Unimplemented, to force the user to make a decision on
|
// Unimplemented, to force the user to make a decision on
|
||||||
|
|||||||
@@ -1066,7 +1066,8 @@ public:
|
|||||||
layout->addWidget(m_buttons);
|
layout->addWidget(m_buttons);
|
||||||
setLayout(layout);
|
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::accepted, this, &QDialog::accept);
|
||||||
connect(m_buttons, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
connect(m_buttons, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||||
connect(m_hint, SIGNAL(linkActivated(QString)),
|
connect(m_hint, SIGNAL(linkActivated(QString)),
|
||||||
|
|||||||
Reference in New Issue
Block a user