trikRuntime
|
Widget that allows to set power value of a motor and turn it on and off. More...
#include <motorLever.h>
Public Member Functions | |
MotorLever (const QString &port, trikControl::MotorInterface &motor, QWidget *parent=0) | |
Constructor. More... | |
~MotorLever () override | |
Destructor. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
Widget that allows to set power value of a motor and turn it on and off.
It is designed to use as a part of MotorsWidget.
MotorLever::MotorLever | ( | const QString & | port, |
trikControl::MotorInterface & | motor, | ||
QWidget * | parent = 0 |
||
) |
Constructor.
port | - name of a port which the motor is connected to. |
motor | - pointer to an instance representing the motor. |
parent | - pointer to a parent widget. |
|
override |
Destructor.
|
overrideprotected |