TuiNodeColor.cpp   TuiNodeColor.cpp 
skipping to change at line 45 skipping to change at line 45
{ {
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)
{ {
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)
{ {
if (editingPart<3) if (editingPart<3)
{ {
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)
{ {
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)
{ {
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;
} }
return response; return response;
} }
QString TuiNodeColor::getDisplayText() QString TuiNodeColor::getDisplayText()
{ {
QString red = QString("%1").arg(value[0], 2, 'f', 2); QString red = QString("%1").arg(value[0], 2, 'f', 2);
QString green = QString("%1").arg(value[1], 2, 'f', 2); QString green = QString("%1").arg(value[1], 2, 'f', 2);
 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/