| 129 | } |
| 130 | |
| 131 | void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent) |
| 132 | { |
| 133 | parent->setFocusProxy(widget); |
| 134 | |
| 135 | widget->setFont(fixedPitchFont()); |
| 136 | // We don't want translators to use own addresses in translations |
| 137 | // and this is the only place, where this address is supplied. |
| 138 | widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. %1)").arg( |
| 139 | QString::fromStdString(DummyAddress(Params())))); |
| 140 | widget->setValidator(new BitcoinAddressEntryValidator(parent)); |
| 141 | widget->setCheckValidator(new BitcoinAddressCheckValidator(parent)); |
| 142 | } |
| 143 | |
| 144 | void AddButtonShortcut(QAbstractButton* button, const QKeySequence& shortcut) |
| 145 | { |
no test coverage detected