first commit
This commit is contained in:
24
project/fm_viewer/ui/fm_speed_widget.h
Normal file
24
project/fm_viewer/ui/fm_speed_widget.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef FM_SPEED_WIDGET_H
|
||||
#define FM_SPEED_WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class FMSpeedWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FMSpeedWidget(QWidget *parent = nullptr);
|
||||
void updateSpeed(int speed);
|
||||
private:
|
||||
int currentSpeed;
|
||||
QPixmap numberPixmap;
|
||||
QPixmap barPixmapOn;
|
||||
QPixmap barPixmapOff;
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // FM_SPEED_WIDGET_H
|
||||
Reference in New Issue
Block a user