From 7014f382e3fd99226b7d844984e50706e2f67247 Mon Sep 17 00:00:00 2001 From: Cozz Lovan Date: Wed, 22 Oct 2014 06:07:59 +0200 Subject: [PATCH] [Qt] Remove CAmount from BitcoinAmountField Q_PROPERTY --- src/qt/bitcoinamountfield.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h index e52feeb46e8..040a2341776 100644 --- a/src/qt/bitcoinamountfield.h +++ b/src/qt/bitcoinamountfield.h @@ -21,7 +21,9 @@ class BitcoinAmountField: public QWidget { Q_OBJECT - Q_PROPERTY(CAmount value READ value WRITE setValue NOTIFY valueChanged USER true) + // ugly hack: for some unknown reason CAmount (instead of qint64) does not work here as expected + // discussion: https://github.com/bitcoin/bitcoin/pull/5117 + Q_PROPERTY(qint64 value READ value WRITE setValue NOTIFY valueChanged USER true) public: explicit BitcoinAmountField(QWidget *parent = 0);