Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinamountfield.cpp
// Copyright (c) 2011-2015 The Bitcoin Core developers | // Copyright (c) 2011-2015 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 "bitcoinamountfield.h" | #include <qt/bitcoinamountfield.h> | ||||
#include "bitcoinunits.h" | #include <qt/bitcoinunits.h> | ||||
#include "guiconstants.h" | #include <qt/guiconstants.h> | ||||
#include "qvaluecombobox.h" | #include <qt/qvaluecombobox.h> | ||||
#include <QAbstractSpinBox> | #include <QAbstractSpinBox> | ||||
#include <QApplication> | #include <QApplication> | ||||
#include <QHBoxLayout> | #include <QHBoxLayout> | ||||
#include <QKeyEvent> | #include <QKeyEvent> | ||||
#include <QLineEdit> | #include <QLineEdit> | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | StepEnabled stepEnabled() const override { | ||||
} | } | ||||
return rv; | return rv; | ||||
} | } | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void valueChanged(); | void valueChanged(); | ||||
}; | }; | ||||
#include "bitcoinamountfield.moc" | #include <qt/bitcoinamountfield.moc> | ||||
BitcoinAmountField::BitcoinAmountField(QWidget *parent) | BitcoinAmountField::BitcoinAmountField(QWidget *parent) | ||||
: QWidget(parent), amount(0) { | : QWidget(parent), amount(0) { | ||||
amount = new AmountSpinBox(this); | amount = new AmountSpinBox(this); | ||||
amount->setLocale(QLocale::c()); | amount->setLocale(QLocale::c()); | ||||
amount->installEventFilter(this); | amount->installEventFilter(this); | ||||
amount->setMaximumWidth(170); | amount->setMaximumWidth(170); | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |