diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-22 17:06:37 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-22 17:06:37 +0200 |
commit | 73cd5e5212be7ff05f7205c1e7519af1cf01e322 (patch) | |
tree | 2afeb72a63b08600306182aef85bdea825231f42 /src/qt/qvalidatedlineedit.cpp | |
parent | 174b3eddc05f26abbc97a83027a4da9ba4114d57 (diff) |
fix clear() (clear red/invalid status)
Diffstat (limited to 'src/qt/qvalidatedlineedit.cpp')
-rw-r--r-- | src/qt/qvalidatedlineedit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/qvalidatedlineedit.cpp b/src/qt/qvalidatedlineedit.cpp index 4b5acd8b07..2430cc9fb5 100644 --- a/src/qt/qvalidatedlineedit.cpp +++ b/src/qt/qvalidatedlineedit.cpp @@ -35,3 +35,9 @@ void QValidatedLineEdit::markValid() { setValid(true); } + +void QValidatedLineEdit::clear() +{ + setValid(true); + QLineEdit::clear(); +} |