aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-21 07:35:59 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-21 07:36:49 +0200
commit84114e341df1db77fb099ef58b7547f5b2b8be57 (patch)
tree0c9a015b5d8e9aa9b1dc054c6c7704b456394080
parentf193c57a63d8e66835873ff05ef8028fa87b427f (diff)
Fix some padding and focus issues with the new BitcoinAmountWidget
-rw-r--r--src/qt/bitcoinamountfield.cpp1
-rw-r--r--src/qt/bitcoinamountfield.h2
-rw-r--r--src/qt/forms/sendcoinsdialog.ui6
3 files changed, 4 insertions, 5 deletions
diff --git a/src/qt/bitcoinamountfield.cpp b/src/qt/bitcoinamountfield.cpp
index e475441f13..19fa230183 100644
--- a/src/qt/bitcoinamountfield.cpp
+++ b/src/qt/bitcoinamountfield.cpp
@@ -26,6 +26,7 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent):
layout->addWidget(new QLabel(QString(".")));
layout->addWidget(decimals);
layout->addStretch(1);
+ layout->setContentsMargins(0,0,0,0);
setFocusPolicy(Qt::TabFocus);
setLayout(layout);
diff --git a/src/qt/bitcoinamountfield.h b/src/qt/bitcoinamountfield.h
index 2171578eea..67304c8b3a 100644
--- a/src/qt/bitcoinamountfield.h
+++ b/src/qt/bitcoinamountfield.h
@@ -7,6 +7,8 @@ QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE
+// Coin amount entry widget with separate parts for whole
+// coins and decimals.
class BitcoinAmountField: public QWidget
{
Q_OBJECT
diff --git a/src/qt/forms/sendcoinsdialog.ui b/src/qt/forms/sendcoinsdialog.ui
index 3aaec1b53c..b88839a7ca 100644
--- a/src/qt/forms/sendcoinsdialog.ui
+++ b/src/qt/forms/sendcoinsdialog.ui
@@ -91,11 +91,7 @@
</widget>
</item>
<item row="4" column="1">
- <widget class="BitcoinAmountField" name="payAmount" native="true">
- <property name="focusPolicy">
- <enum>Qt::TabFocus</enum>
- </property>
- </widget>
+ <widget class="BitcoinAmountField" name="payAmount" native="true"/>
</item>
</layout>
</item>