TuiNodeDateTime.cpp   TuiNodeDateTime.cpp 
skipping to change at line 50 skipping to change at line 50
typing = false; typing = false;
if (editingPart==0) if (editingPart==0)
{ {
editing = false; editing = false;
} }
else else
{ {
editingPart--; editingPart--;
} }
response.accepted = true; response.accepted = true;
response.newNode = this;
if (!editing) if (!editing)
{ {
emit(setValue(value)); emit(setValue(value));
} }
return response; return response;
} }
if (key==Qt::Key_Return) if (key==Qt::Key_Return)
{ {
typing = false; typing = false;
editing = false; editing = false;
editingPart = 0; editingPart = 0;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
if (key==Qt::Key_Right) if (key==Qt::Key_Right)
{ {
typing = false; typing = false;
if (editingPart<5) if (editingPart<5)
{ {
editingPart++; editingPart++;
} }
response.accepted = true; response.accepted = true;
response.newNode = this;
return response; return response;
} }
if (key==Qt::Key_Up) if (key==Qt::Key_Up)
{ {
typing = false; typing = false;
incPart(editingPart, true); incPart(editingPart, true);
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
if (key==Qt::Key_Down) if (key==Qt::Key_Down)
{ {
typing = false; typing = false;
incPart(editingPart, false); incPart(editingPart, false);
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
if (key>=Qt::Key_0 && key<=Qt::Key_9 && editingPart==0) if (key>=Qt::Key_0 && key<=Qt::Key_9 && editingPart==0)
{ {
QString s; QString s;
if (!typing) if (!typing)
{ {
s = QString("%1").arg(key - Qt::Key_0); s = QString("%1").arg(key - Qt::Key_0);
typing = true; typing = true;
 End of changes. 5 change blocks. 
5 lines changed or deleted 0 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/