-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstationuserwindow.h
More file actions
51 lines (34 loc) · 1.1 KB
/
stationuserwindow.h
File metadata and controls
51 lines (34 loc) · 1.1 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef STATIONUSERWINDOW_H
#define STATIONUSERWINDOW_H
#include <QWidget>
#include <QEvent>
#include <QPushButton>
#include <QIcon>
namespace Ui {
class StationUserWindow;
}
class StationUserWindow : public QWidget
{
Q_OBJECT
public:
explicit StationUserWindow(QWidget *parent = nullptr);
~StationUserWindow();
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
private slots:
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
void on_pushButton_5_clicked();
void on_pushButton_6_clicked();
void on_pushButton_8_clicked();
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void on_pushButton_9_clicked();
private:
Ui::StationUserWindow *ui;
QPoint m_lastPoint; // Добавляем переменную для хранения последней позиции курсора
void updateButtonIcon(QPushButton *button, const QString &iconPath);
};
#endif // STATIONUSERWINDOW_H