forked from nspire-emus/firebird
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlcdwidget.h
More file actions
33 lines (25 loc) · 705 Bytes
/
Copy pathlcdwidget.h
File metadata and controls
33 lines (25 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef LCDWIDGET_H
#define LCDWIDGET_H
#include <QGraphicsView>
#include <QKeyEvent>
#include <QTimer>
class LCDWidget : public QWidget
{
Q_OBJECT
public:
LCDWidget(QWidget *parent, Qt::WindowFlags f = Qt::WindowFlags());
public slots:
void mousePressEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void showEvent(QShowEvent *e) override;
void hideEvent(QHideEvent *e) override;
void closeEvent(QCloseEvent *e) override;
protected:
virtual void paintEvent(QPaintEvent *) override;
signals:
void closed();
private:
QTimer refresh_timer;
};
#endif // LCDWIDGET_H