|
|
@ -91,7 +91,9 @@ void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent) |
|
|
|
|
|
|
|
|
|
|
|
widget->setFont(bitcoinAddressFont()); |
|
|
|
widget->setFont(bitcoinAddressFont()); |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
#if QT_VERSION >= 0x040700 |
|
|
|
widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)")); |
|
|
|
// We don't want translators to use own addresses in translations
|
|
|
|
|
|
|
|
// and this is the only place, where this address is supplied.
|
|
|
|
|
|
|
|
widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. %1)").arg("1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L")); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
widget->setValidator(new BitcoinAddressEntryValidator(parent)); |
|
|
|
widget->setValidator(new BitcoinAddressEntryValidator(parent)); |
|
|
|
widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); |
|
|
|
widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); |
|
|
|