TuiNodeBool.cpp   TuiNodeBool.cpp 
skipping to change at line 38 skipping to change at line 38
TuiNodeResponse TuiNodeBool::handleEditingKey(int key) TuiNodeResponse TuiNodeBool::handleEditingKey(int key)
{ {
TuiNodeResponse response; TuiNodeResponse response;
response.accepted = false; response.accepted = false;
response.newNode = this; response.newNode = this;
if (key==Qt::Key_Left || key==Qt::Key_Return) if (key==Qt::Key_Left || key==Qt::Key_Return)
{ {
editing = false; editing = false;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(state)); emit(setValue(state));
return response; return response;
} }
else if (key==Qt::Key_Up || key==Qt::Key_Down || key==Qt::Key_Return ) else if (key==Qt::Key_Up || key==Qt::Key_Down || key==Qt::Key_Return )
{ {
state = !state; state = !state;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(state)); emit(setValue(state));
return response; return response;
} }
else if (key==Qt::Key_1 || key==Qt::Key_Y || key==Qt::Key_T) else if (key==Qt::Key_1 || key==Qt::Key_Y || key==Qt::Key_T)
{ {
state = true; state = true;
emit(setValue(state)); emit(setValue(state));
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(state)); emit(setValue(state));
return response; return response;
} }
else if (key==Qt::Key_0 || key==Qt::Key_N || key==Qt::Key_F) else if (key==Qt::Key_0 || key==Qt::Key_N || key==Qt::Key_F)
{ {
state = false; state = false;
emit(setValue(state)); emit(setValue(state));
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(state)); emit(setValue(state));
return response; return response;
} }
return response; return response;
} }
QString TuiNodeBool::getDisplayText() QString TuiNodeBool::getDisplayText()
{ {
// TODO: The label/value separation needs to be reworked. This way o f using // TODO: The label/value separation needs to be reworked. This way o f using
// the colon is not i18n-friendly. --BM // the colon is not i18n-friendly. --BM
 End of changes. 4 change blocks. 
4 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/