Пример #1
0
void setupAddressWidget(QLineEdit *widget, QWidget *parent)
{
    widget->setMaxLength(BitcoinAddressValidator::MaxAddressLength);
    widget->setValidator(new BitcoinAddressValidator(parent));
    widget->setFont(bitcoinAddressFont());
}
Пример #2
0
void setupAddressWidget(QLineEdit *widget, QWidget *parent, bool fAllowEmpty /* = false*/)
{
    widget->setMaxLength(BitcoinAddressValidator::MaxAddressLength);
    widget->setValidator(new BitcoinAddressValidator(parent, fAllowEmpty));
    widget->setFont(bitcoinAddressFont());
}