Fix some padding and focus issues with the new BitcoinAmountWidget
This commit is contained in:
parent
f193c57a63
commit
84114e341d
3 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue