aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-02 09:21:16 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-02 09:21:16 +0200
commitf48b4c88978e11916d0cb134f9ff89a25383d339 (patch)
tree4c22db4311d47f63c68302db1a9125e1a2c91df5
parente5b47b4328ce3de8e657430bf38c8051d59df298 (diff)
Placeholder text can only be used for Qt 4.7+
-rw-r--r--src/qt/transactionview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp
index 8763e10e7e..7bbe55001d 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));