mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Placeholder text can only be used for Qt 4.7+
This commit is contained in:
parent
e5b47b4328
commit
f48b4c8897
1 changed files with 4 additions and 0 deletions
|
@ -57,11 +57,15 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||
hlayout->addWidget(typeWidget);
|
||||
|
||||
addressWidget = new QLineEdit(this);
|
||||
#if QT_VERSION >= 0x040700
|
||||
addressWidget->setPlaceholderText("Enter address or label to search");
|
||||
#endif
|
||||
hlayout->addWidget(addressWidget);
|
||||
|
||||
amountWidget = new QLineEdit(this);
|
||||
#if QT_VERSION >= 0x040700
|
||||
amountWidget->setPlaceholderText("Min amount");
|
||||
#endif
|
||||
amountWidget->setMaximumWidth(100);
|
||||
amountWidget->setMinimumWidth(100);
|
||||
amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
|
||||
|
|
Loading…
Add table
Reference in a new issue