17 #include <QtCore/qglobal.h> 19 #include <QtWidgets/QWidget> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QProgressBar> 24 #include <QtCore/QString> 53 void setDistance(
int distance);
60 const int mMaxDistance;
61 const int mMinDistance;
62 const int mDistanceStep;
67 QProgressBar mDistanceBar;
SensorLever(const QString &port, QWidget *parent=0)
Constructor.
Definition: sensorLever.cpp:25
static const int port
Definition: trikCommunicatorTest.cpp:24
void keyPressEvent(QKeyEvent *event) override
Definition: sensorLever.cpp:59
Widget that allows to set distance value of a sensor.
Definition: sensorLever.h:29
bool isGreater() const
Returns sign of command.
Definition: sensorLever.cpp:114
Definition: abstractIndicator.h:21
int distance() const
Returns distance value of this lever.
Definition: sensorLever.cpp:109
void paintEvent(QPaintEvent *) override
Definition: sensorLever.cpp:80