|
|
@ -14,8 +14,10 @@ |
|
|
|
#include <QKeyEvent> |
|
|
|
#include <QKeyEvent> |
|
|
|
#include <qmath.h> // for qPow() |
|
|
|
#include <qmath.h> // for qPow() |
|
|
|
|
|
|
|
|
|
|
|
BitcoinAmountField::BitcoinAmountField(QWidget *parent): |
|
|
|
BitcoinAmountField::BitcoinAmountField(QWidget *parent) : |
|
|
|
QWidget(parent), amount(0), currentUnit(-1) |
|
|
|
QWidget(parent), |
|
|
|
|
|
|
|
amount(0), |
|
|
|
|
|
|
|
currentUnit(-1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
amount = new QDoubleSpinBox(this); |
|
|
|
amount = new QDoubleSpinBox(this); |
|
|
|
amount->setLocale(QLocale::c()); |
|
|
|
amount->setLocale(QLocale::c()); |
|
|
|