[Qt] Improve single step in bitcoinamountfield

This commit is contained in:
Cozz Lovan
2014-02-02 04:12:30 +01:00
parent 15ec451554
commit b920148258
3 changed files with 15 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ public:
qint64 value(bool *valid=0) const;
void setValue(qint64 value);
/** Set single step in satoshis **/
void setSingleStep(qint64 step);
/** Make read-only **/
void setReadOnly(bool fReadOnly);
@@ -56,6 +59,7 @@ private:
QDoubleSpinBox *amount;
QValueComboBox *unit;
int currentUnit;
qint64 nSingleStep;
void setText(const QString &text);
QString text() const;