diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-20 21:31:42 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-20 21:34:43 +0200 |
commit | f193c57a63d8e66835873ff05ef8028fa87b427f (patch) | |
tree | c171e55ab47ed176d454a64441b75045da77739b /src/qt/forms/sendcoinsdialog.ui | |
parent | 18b99e3f69e039f8f431e49c3d1e6c9f96fe3896 (diff) |
introduce bitcoin amount field with split amount/decimals, to protect against mistakes (https://forum.bitcoin.org/index.php?topic=19168.0)
Diffstat (limited to 'src/qt/forms/sendcoinsdialog.ui')
-rw-r--r-- | src/qt/forms/sendcoinsdialog.ui | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui index 595b7f40ff..3aaec1b53c 100644 --- a/src/qt/forms/sendcoinsdialog.ui +++ b/src/qt/forms/sendcoinsdialog.ui @@ -52,22 +52,6 @@ </property> </widget> </item> - <item row="4" column="1"> - <widget class="QLineEdit" name="payAmount"> - <property name="maximumSize"> - <size> - <width>145</width> - <height>16777215</height> - </size> - </property> - <property name="toolTip"> - <string>Amount of bitcoins to send (e.g. 0.05)</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> <item row="3" column="2"> <widget class="QPushButton" name="pasteButton"> <property name="toolTip"> @@ -106,6 +90,13 @@ </property> </widget> </item> + <item row="4" column="1"> + <widget class="BitcoinAmountField" name="payAmount" native="true"> + <property name="focusPolicy"> + <enum>Qt::TabFocus</enum> + </property> + </widget> + </item> </layout> </item> <item> @@ -173,6 +164,22 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>BitcoinAmountField</class> + <extends>QWidget</extends> + <header>bitcoinamountfield.h</header> + <container>1</container> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>payTo</tabstop> + <tabstop>payAmount</tabstop> + <tabstop>pasteButton</tabstop> + <tabstop>addressBookButton</tabstop> + <tabstop>sendButton</tabstop> + <tabstop>buttonBox</tabstop> + </tabstops> <resources> <include location="../bitcoin.qrc"/> </resources> |