Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent) { | ||||
widget->setFont(fixedPitchFont()); | widget->setFont(fixedPitchFont()); | ||||
const CChainParams ¶ms = Params(); | const CChainParams ¶ms = Params(); | ||||
#if QT_VERSION >= 0x040700 | #if QT_VERSION >= 0x040700 | ||||
// We don't want translators to use own addresses in translations | // We don't want translators to use own addresses in translations | ||||
// and this is the only place, where this address is supplied. | // and this is the only place, where this address is supplied. | ||||
widget->setPlaceholderText( | widget->setPlaceholderText( | ||||
QObject::tr("Enter a Bitcoin address (e.g. %1)") | QObject::tr("Enter a Bitcoin address (e.g. %1)") | ||||
.arg(QString::fromStdString(DummyAddress(params, GlobalConfig())))); | .arg(QString::fromStdString(DummyAddress(params, GetConfig())))); | ||||
#endif | #endif | ||||
widget->setValidator( | widget->setValidator( | ||||
new BitcoinAddressEntryValidator(params.CashAddrPrefix(), parent)); | new BitcoinAddressEntryValidator(params.CashAddrPrefix(), parent)); | ||||
widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); | widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); | ||||
} | } | ||||
void setupAmountWidget(QLineEdit *widget, QWidget *parent) { | void setupAmountWidget(QLineEdit *widget, QWidget *parent) { | ||||
QDoubleValidator *amountValidator = new QDoubleValidator(parent); | QDoubleValidator *amountValidator = new QDoubleValidator(parent); | ||||
▲ Show 20 Lines • Show All 837 Lines • Show Last 20 Lines |