mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-23 15:22:46 +02:00
Bugfix: GUI: Check validity when QValidatedLineEdit::setText is called
This commit is contained in:
parent
b1a544be10
commit
aeb18b665c
@ -15,6 +15,12 @@ QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) :
|
|||||||
connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid()));
|
connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QValidatedLineEdit::setText(const QString& text)
|
||||||
|
{
|
||||||
|
QLineEdit::setText(text);
|
||||||
|
checkValidity();
|
||||||
|
}
|
||||||
|
|
||||||
void QValidatedLineEdit::setValid(bool _valid)
|
void QValidatedLineEdit::setValid(bool _valid)
|
||||||
{
|
{
|
||||||
if(_valid == this->valid)
|
if(_valid == this->valid)
|
||||||
|
@ -29,6 +29,7 @@ private:
|
|||||||
const QValidator *checkValidator;
|
const QValidator *checkValidator;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
void setText(const QString&);
|
||||||
void setValid(bool valid);
|
void setValid(bool valid);
|
||||||
void setEnabled(bool enabled);
|
void setEnabled(bool enabled);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user