void setupAddressWidget(QLineEdit *widget, QWidget *parent) { widget->setMaxLength(BitcoinAddressValidator::MaxAddressLength); widget->setValidator(new BitcoinAddressValidator(parent)); widget->setFont(bitcoinAddressFont()); }
void setupAddressWidget(QLineEdit *widget, QWidget *parent, bool fAllowEmpty /* = false*/) { widget->setMaxLength(BitcoinAddressValidator::MaxAddressLength); widget->setValidator(new BitcoinAddressValidator(parent, fAllowEmpty)); widget->setFont(bitcoinAddressFont()); }