move another setPlaceHolderText to 4.7+ only code
authorWladimir J. van der Laan <laanwj@gmail.com>
Sun, 3 Jul 2011 06:24:07 +0000 (08:24 +0200)
committerWladimir J. van der Laan <laanwj@gmail.com>
Sun, 3 Jul 2011 06:24:07 +0000 (08:24 +0200)
src/qt/forms/sendcoinsdialog.ui
src/qt/sendcoinsdialog.cpp

index 26de3d2..7f843c4 100644 (file)
          <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>
index 14d5096..4b97437 100644 (file)
@@ -18,7 +18,9 @@ SendCoinsDialog::SendCoinsDialog(QWidget *parent, const QString &address) :
     model(0)
 {
     ui->setupUi(this);
-
+#if QT_VERSION >= 0x040700
+    ui->addAsLabel->setPlaceholderText(tr("Enter a label for this address to add it to your address book"));
+#endif
     GUIUtil::setupAddressWidget(ui->payTo, this);
 
     // Set initial send-to address if provided