TuiNodeDateTime.cpp   TuiNodeDateTime.cpp 
skipping to change at line 130 skipping to change at line 130
QString h = QString("%1").arg(parts.at(3), 2, 10, QChar('0')); QString h = QString("%1").arg(parts.at(3), 2, 10, QChar('0'));
QString m = QString("%1").arg(parts.at(4), 2, 10, QChar('0')); QString m = QString("%1").arg(parts.at(4), 2, 10, QChar('0'));
QString s = QString("%1").arg(parts.at(5), 2, 10, QChar('0')); QString s = QString("%1").arg(parts.at(5), 2, 10, QChar('0'));
//(Default format string when not editing anything) //(Default format string when not editing anything)
const char* formatString = ": %1-%2-%3 %4:%5:%6 UTC"; const char* formatString = ": %1-%2-%3 %4:%5:%6 UTC";
if (editing) if (editing)
{ {
switch (editingPart) switch (editingPart)
{ {
case 0: case 0:
formatString = ": >%1<-%2-%3 %4:%5:%6 UTC"; //Year formatString = ": >%1<-%2-%3 %4:%5:%6 UTC";
break; //Year
case 1: break;
formatString = ": %1->%2<-%3 %4:%5:%6 UTC"; //Month case 1:
break; formatString = ": %1->%2<-%3 %4:%5:%6 UTC";
case 2: //Month
formatString = ": %1-%2->%3< %4:%5:%6 UTC"; //Day break;
break; case 2:
case 3: formatString = ": %1-%2->%3< %4:%5:%6 UTC";
formatString = ": %1-%2-%3 >%4<:%5:%6 UTC"; //Hour //Day
break; break;
case 4: case 3:
formatString = ": %1-%2-%3 %4:>%5<:%6 UTC"; //Minut formatString = ": %1-%2-%3 >%4<:%5:%6 UTC";
e //Hour
break; break;
case 5: case 4:
formatString = ": %1-%2-%3 %4:%5:>%6< UTC"; //Secon formatString = ": %1-%2-%3 %4:>%5<:%6 UTC";
d //Minute
default: break;
break; case 5:
formatString = ": %1-%2-%3 %4:%5:>%6< UTC";
//Second
default:
break;
} }
} }
QString result = prefixText + q_(displayText) + QString (formatStrin g).arg(yy, mm, dd, h, m, s); QString result = prefixText + q_(displayText) + QString (formatStrin g).arg(yy, mm, dd, h, m, s);
return result; return result;
} }
void TuiNodeDateTime::incPart(int part, bool add) void TuiNodeDateTime::incPart(int part, bool add)
{ {
Q_UNUSED(part); Q_UNUSED(part);
 End of changes. 1 change blocks. 
21 lines changed or deleted 25 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/