aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-05-07 00:19:22 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-05-07 00:19:22 +0200
commit7d5bb4294670a93bf4bdfe458e888a1e0fc7aee0 (patch)
treec8a4dc43ea83e5b2e8fb6e88e9750483e563e34a /src
parent46692fc929bd024928ffbde6c5f5549d5fd1c45d (diff)
Move back setPlaceholderText to code, from xml, as this broke building with Qt 4.6
Diffstat (limited to 'src')
-rw-r--r--src/qt/forms/messagepage.ui3
-rw-r--r--src/qt/forms/sendcoinsentry.ui6
-rw-r--r--src/qt/messagepage.cpp5
-rw-r--r--src/qt/sendcoinsentry.cpp6
4 files changed, 10 insertions, 10 deletions
diff --git a/src/qt/forms/messagepage.ui b/src/qt/forms/messagepage.ui
index f2ae160c16..512e47ad6d 100644
--- a/src/qt/forms/messagepage.ui
+++ b/src/qt/forms/messagepage.ui
@@ -104,9 +104,6 @@
<property name="readOnly">
<bool>true</bool>
</property>
- <property name="placeholderText">
- <string>Click &quot;Sign Message&quot; to get signature</string>
- </property>
</widget>
</item>
<item>
diff --git a/src/qt/forms/sendcoinsentry.ui b/src/qt/forms/sendcoinsentry.ui
index da0273e9b1..22a3f8fdc6 100644
--- a/src/qt/forms/sendcoinsentry.ui
+++ b/src/qt/forms/sendcoinsentry.ui
@@ -65,9 +65,6 @@
<property name="toolTip">
<string>Enter a label for this address to add it to your address book</string>
</property>
- <property name="placeholderText">
- <string>Enter a label for this address to add it to your address book</string>
- </property>
</widget>
</item>
</layout>
@@ -98,9 +95,6 @@
<property name="maxLength">
<number>34</number>
</property>
- <property name="placeholderText">
- <string>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</string>
- </property>
</widget>
</item>
<item>
diff --git a/src/qt/messagepage.cpp b/src/qt/messagepage.cpp
index d658119a08..57ad8292dc 100644
--- a/src/qt/messagepage.cpp
+++ b/src/qt/messagepage.cpp
@@ -24,6 +24,11 @@ MessagePage::MessagePage(QWidget *parent) :
ui(new Ui::MessagePage)
{
ui->setupUi(this);
+
+#if (QT_VERSION >= 0x040700)
+ /* Do not move this to the XML file, Qt before 4.7 will choke on it */
+ ui->signature->setPlaceholderText(tr("Click \"Sign Message\" to get signature"));
+#endif
GUIUtil::setupAddressWidget(ui->signFrom, this);
}
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp
index d9b1daf679..5960597c77 100644
--- a/src/qt/sendcoinsentry.cpp
+++ b/src/qt/sendcoinsentry.cpp
@@ -20,7 +20,11 @@ SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
#ifdef Q_WS_MAC
ui->payToLayout->setSpacing(4);
#endif
-
+#if QT_VERSION >= 0x040700
+ /* Do not move this to the XML file, Qt before 4.7 will choke on it */
+ ui->addAsLabel->setPlaceholderText(tr("Enter a label for this address to add it to your address book"));
+ ui->payTo->setPlaceholderText(tr("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
+#endif
setFocusPolicy(Qt::TabFocus);
setFocusProxy(ui->payTo);