Browse Source

Fix some padding and focus issues with the new BitcoinAmountWidget

0.8
Wladimir J. van der Laan 14 years ago
parent
commit
84114e341d
  1. 1
      src/qt/bitcoinamountfield.cpp
  2. 2
      src/qt/bitcoinamountfield.h
  3. 6
      src/qt/forms/sendcoinsdialog.ui

1
src/qt/bitcoinamountfield.cpp

@ -26,6 +26,7 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent): @@ -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);

2
src/qt/bitcoinamountfield.h

@ -7,6 +7,8 @@ QT_BEGIN_NAMESPACE @@ -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

6
src/qt/forms/sendcoinsdialog.ui

@ -91,11 +91,7 @@ @@ -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>

Loading…
Cancel
Save