TuiNodeFloat.cpp   TuiNodeFloat.cpp 
skipping to change at line 41 skipping to change at line 41
{ {
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)
{ {
typing = false; typing = false;
typedDecimal = false; typedDecimal = false;
editing = false; editing = false;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
else if (key==Qt::Key_Up) else if (key==Qt::Key_Up)
{ {
typing = false; typing = false;
typedDecimal = false; typedDecimal = false;
value+=increment; value+=increment;
if (value > maximum) if (value > maximum)
value = maximum; value = maximum;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
else if (key==Qt::Key_Down) else if (key==Qt::Key_Down)
{ {
typing = false; typing = false;
typedDecimal = false; typedDecimal = false;
value-=increment; value-=increment;
if (value < minimum) if (value < minimum)
value = minimum; value = minimum;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
else if (key==Qt::Key_Period) else if (key==Qt::Key_Period)
{ {
QString s; QString s;
if (!typing) if (!typing)
{ {
value = 0; value = 0;
typedDecimal = true; typedDecimal = true;
skipping to change at line 152 skipping to change at line 149
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
else if (key==Qt::Key_Minus) else if (key==Qt::Key_Minus)
{ {
typing = true; typing = true;
int i = value *= -1; int i = value *= -1;
if (i>=minimum && i<=maximum) if (i>=minimum && i<=maximum)
value = i; value = i;
response.accepted = true; response.accepted = true;
response.newNode = this;
emit(setValue(value)); emit(setValue(value));
return response; return response;
} }
return response; return response;
} }
QString TuiNodeFloat::getDisplayText() QString TuiNodeFloat::getDisplayText()
{ {
if (!editing) if (!editing)
{ {
 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/