MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / setupAddressWidget

Function setupAddressWidget

src/qt/guiutil.cpp:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void 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
144void AddButtonShortcut(QAbstractButton* button, const QKeySequence& shortcut)
145{

Callers 4

SendCoinsEntryMethod · 0.85
SendCoinsDialogMethod · 0.85
EditAddressDialogMethod · 0.85

Calls 4

fixedPitchFontFunction · 0.85
DummyAddressFunction · 0.85
setCheckValidatorMethod · 0.80
ParamsClass · 0.50

Tested by

no test coverage detected