diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-07-02 09:21:16 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-07-02 09:21:16 +0200 |
| commit | f48b4c88978e11916d0cb134f9ff89a25383d339 (patch) | |
| tree | 4c22db4311d47f63c68302db1a9125e1a2c91df5 /src/qt/transactionview.cpp | |
| parent | Remove "default address" from main GUI screen, it only confuses people (diff) | |
| download | discoin-f48b4c88978e11916d0cb134f9ff89a25383d339.tar.xz discoin-f48b4c88978e11916d0cb134f9ff89a25383d339.zip | |
Placeholder text can only be used for Qt 4.7+
Diffstat (limited to 'src/qt/transactionview.cpp')
| -rw-r--r-- | src/qt/transactionview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 8763e10e7..7bbe55001 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -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)); |