@ -39,7 +38,26 @@ QValidator::State BitcoinAddressValidator::validate(QString &input, int &pos) co
@@ -39,7 +38,26 @@ QValidator::State BitcoinAddressValidator::validate(QString &input, int &pos) co
default:
break;
}
}
/* Validation */
QValidator::Statestate=QValidator::Acceptable;
for(intidx=0;idx<input.size();++idx)
{
intch=input.at(idx).unicode();
if(((ch>='0'&&ch<='9')||
(ch>='a'&&ch<='z')||
(ch>='A'&&ch<='Z'))&&
ch!='l'&&ch!='I'&&ch!='0'&&ch!='O')
{
/* Alphanumeric and not a 'forbidden' character */