Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinamountfield.cpp
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
#include <qt/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(240); | ||||
QHBoxLayout *layout = new QHBoxLayout(this); | QHBoxLayout *layout = new QHBoxLayout(this); | ||||
layout->addWidget(amount); | layout->addWidget(amount); | ||||
unit = new QValueComboBox(this); | unit = new QValueComboBox(this); | ||||
unit->setModel(new BitcoinUnits(this)); | unit->setModel(new BitcoinUnits(this)); | ||||
layout->addWidget(unit); | layout->addWidget(unit); | ||||
layout->addStretch(1); | layout->addStretch(1); | ||||
layout->setContentsMargins(0, 0, 0, 0); | layout->setContentsMargins(0, 0, 0, 0); | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |