AngleSpinBox.cpp   AngleSpinBox.cpp 
skipping to change at line 205 skipping to change at line 205
if (prefix==Unknown) if (prefix==Unknown)
{ {
prefix=currentPrefixType; prefix=currentPrefixType;
} }
int sign=1; int sign=1;
if (input.startsWith(negativePrefix(prefix), Qt::CaseInsensitive)) if (input.startsWith(negativePrefix(prefix), Qt::CaseInsensitive))
{ {
sign = -1; sign = -1;
input = input.mid(negativePrefix(prefix).length()); input = input.mid(negativePrefix(prefix).length());
} }
else else if (input.startsWith(positivePrefix(prefix), Qt::CaseInsensitiv e))
{ {
sign = 1; sign = 1;
input = input.mid(positivePrefix(prefix).length()); input = input.mid(positivePrefix(prefix).length());
} }
else if (input.startsWith("-", Qt::CaseInsensitive))
{
sign = -1;
input = input.mid(1);
}
else if (input.startsWith("+", Qt::CaseInsensitive))
{
sign = 1;
input = input.mid(1);
}
QRegExp dmsRx("^\\s*(\\d+)\\s*[d\\x00b0](\\s*(\\d+(\\.\\d*)?)\\s*[m' ](\\s*(\\d+(\\.\\d*)?)\\s*[s\"]\\s*)?)?$", QRegExp dmsRx("^\\s*(\\d+)\\s*[d\\x00b0](\\s*(\\d+(\\.\\d*)?)\\s*[m' ](\\s*(\\d+(\\.\\d*)?)\\s*[s\"]\\s*)?)?$",
Qt::CaseInsensitive); Qt::CaseInsensitive);
QRegExp hmsRx("^\\s*(\\d+)\\s*h(\\s*(\\d+(\\.\\d*)?)\\s*[m'](\\s*(\\ d+(\\.\\d*)?)\\s*[s\"]\\s*)?)?$", QRegExp hmsRx("^\\s*(\\d+)\\s*h(\\s*(\\d+(\\.\\d*)?)\\s*[m'](\\s*(\\ d+(\\.\\d*)?)\\s*[s\"]\\s*)?)?$",
Qt::CaseInsensitive); Qt::CaseInsensitive);
QRegExp decRx("^(\\d+(\\.\\d*)?)(\\s*[\\x00b0]\\s*)?$"); QRegExp decRx("^(\\d+(\\.\\d*)?)(\\s*[\\x00b0]\\s*)?$");
QRegExp badRx("[^hdms0-9 \\x00b0'\"\\.]", Qt::CaseInsensitive); QRegExp badRx("[^hdms0-9 \\x00b0'\"\\.]", Qt::CaseInsensitive);
QValidator::State dummy; QValidator::State dummy;
if (state == NULL) if (state == NULL)
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/