Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinamountfield.h
Show All 18 Lines | |||||
*/ | */ | ||||
class BitcoinAmountField : public QWidget { | class BitcoinAmountField : public QWidget { | ||||
Q_OBJECT | Q_OBJECT | ||||
Q_PROPERTY( | Q_PROPERTY( | ||||
Amount value READ value WRITE setValue NOTIFY valueChanged USER true) | Amount value READ value WRITE setValue NOTIFY valueChanged USER true) | ||||
public: | public: | ||||
explicit BitcoinAmountField(QWidget *parent = 0); | explicit BitcoinAmountField(QWidget *parent = nullptr); | ||||
Amount value(bool *value = 0) const; | Amount value(bool *value = nullptr) const; | ||||
void setValue(const Amount value); | void setValue(const Amount value); | ||||
/** Set single step in satoshis **/ | /** Set single step in satoshis **/ | ||||
void setSingleStep(const Amount step); | void setSingleStep(const Amount step); | ||||
/** Make read-only **/ | /** Make read-only **/ | ||||
void setReadOnly(bool fReadOnly); | void setReadOnly(bool fReadOnly); | ||||
Show All 37 Lines |