mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
Bugfix: GUI: Check validity when QValidatedLineEdit::setText is called
This commit is contained in:
parent
b1a544be10
commit
aeb18b665c
2 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,12 @@ QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) :
|
|||
connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid()));
|
||||
}
|
||||
|
||||
void QValidatedLineEdit::setText(const QString& text)
|
||||
{
|
||||
QLineEdit::setText(text);
|
||||
checkValidity();
|
||||
}
|
||||
|
||||
void QValidatedLineEdit::setValid(bool _valid)
|
||||
{
|
||||
if(_valid == this->valid)
|
||||
|
|
|
@ -29,6 +29,7 @@ private:
|
|||
const QValidator *checkValidator;
|
||||
|
||||
public Q_SLOTS:
|
||||
void setText(const QString&);
|
||||
void setValid(bool valid);
|
||||
void setEnabled(bool enabled);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue