trikRuntime
trikGui::MotorLever Class Reference

Widget that allows to set power value of a motor and turn it on and off. More...

#include <motorLever.h>

Inheritance diagram for trikGui::MotorLever:
Collaboration diagram for trikGui::MotorLever:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

MotorLever::MotorLever ( const QString &  port,
trikControl::MotorInterface motor,
QWidget *  parent = 0 
)

Constructor.

Parameters
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.
MotorLever::~MotorLever ( )
override

Destructor.

Member Function Documentation

void MotorLever::keyPressEvent ( QKeyEvent *  event)
overrideprotected

The documentation for this class was generated from the following files: