Fix some padding and focus issues with the new BitcoinAmountWidget

This commit is contained in:
Wladimir J. van der Laan 2011-06-21 07:35:59 +02:00
parent f193c57a63
commit 84114e341d
3 changed files with 4 additions and 5 deletions

View file

@ -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);

View file

@ -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

View file

@ -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>