Changeset View
Changeset View
Standalone View
Standalone View
src/qt/qvalidatedlineedit.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "qvalidatedlineedit.h" | #include <qt/qvalidatedlineedit.h> | ||||
#include "bitcoinaddressvalidator.h" | #include <qt/bitcoinaddressvalidator.h> | ||||
#include "guiconstants.h" | #include <qt/guiconstants.h> | ||||
QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) | QValidatedLineEdit::QValidatedLineEdit(QWidget *parent) | ||||
: QLineEdit(parent), valid(true), checkValidator(0) { | : QLineEdit(parent), valid(true), checkValidator(0) { | ||||
connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid())); | connect(this, SIGNAL(textChanged(QString)), this, SLOT(markValid())); | ||||
} | } | ||||
void QValidatedLineEdit::setValid(bool _valid) { | void QValidatedLineEdit::setValid(bool _valid) { | ||||
if (_valid == this->valid) { | if (_valid == this->valid) { | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |