]> Git Repo - VerusCoin.git/blame - src/qt/bitcoinamountfield.h
Display a "freshness" indicator instead of nr of blocks
[VerusCoin.git] / src / qt / bitcoinamountfield.h
CommitLineData
f193c57a
WL
1#ifndef BITCOINFIELD_H
2#define BITCOINFIELD_H
3
4#include <QWidget>
5
6QT_BEGIN_NAMESPACE
7class QLineEdit;
8QT_END_NAMESPACE
9
84114e34
WL
10// Coin amount entry widget with separate parts for whole
11// coins and decimals.
f193c57a
WL
12class BitcoinAmountField: public QWidget
13{
14 Q_OBJECT
15 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true);
16public:
17 explicit BitcoinAmountField(QWidget *parent = 0);
18
19 void setText(const QString &text);
20 QString text() const;
21
22signals:
23 void textChanged();
24
25protected:
26 // Intercept '.' and ',' keys, if pressed focus a specified widget
27 bool eventFilter(QObject *object, QEvent *event);
28
29private:
30 QLineEdit *amount;
31 QLineEdit *decimals;
32};
33
34
35#endif // BITCOINFIELD_H
This page took 0.024507 seconds and 4 git commands to generate.