void CannonField::setForce(int force)
{
	if (force < 0)
		force = 0;
	if (currentForce == force)
		return;
	currentForce = force;
	emit forceChanged (currentForce);
}
Example #2
0
void CannonField::setForce( int newton )
{
    if ( newton < 0 )
	newton = 0;
    if ( f == newton )
	return;
    f = newton;
    emit forceChanged( f );
}
Example #3
0
bool CannonField::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: angleChanged((int)static_QUType_int.get(_o+1)); break;
    case 1: forceChanged((int)static_QUType_int.get(_o+1)); break;
    default:
	return QWidget::qt_emit(_id,_o);
    }
    return TRUE;
}