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):
layout->addWidget(new QLabel(QString("."))); layout->addWidget(new QLabel(QString(".")));
layout->addWidget(decimals); layout->addWidget(decimals);
layout->addStretch(1); layout->addStretch(1);
layout->setContentsMargins(0,0,0,0);
setFocusPolicy(Qt::TabFocus); setFocusPolicy(Qt::TabFocus);
setLayout(layout); setLayout(layout);

2
src/qt/bitcoinamountfield.h

@ -7,6 +7,8 @@ QT_BEGIN_NAMESPACE
class QLineEdit; class QLineEdit;
QT_END_NAMESPACE QT_END_NAMESPACE
// Coin amount entry widget with separate parts for whole
// coins and decimals.
class BitcoinAmountField: public QWidget class BitcoinAmountField: public QWidget
{ {
Q_OBJECT Q_OBJECT

6
src/qt/forms/sendcoinsdialog.ui

@ -91,11 +91,7 @@
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="BitcoinAmountField" name="payAmount" native="true"> <widget class="BitcoinAmountField" name="payAmount" native="true"/>
<property name="focusPolicy">
<enum>Qt::TabFocus</enum>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>

Loading…
Cancel
Save