-
Notifications
You must be signed in to change notification settings - Fork 0
/
buttonw.h
44 lines (36 loc) · 913 Bytes
/
buttonw.h
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
#ifndef BUTTONW_H
#define BUTTONW_H
#include "boxwidget.h"
namespace Ui {
class buttonw;
}
class ButtonW : public boxWidget {
Q_OBJECT
public:
explicit ButtonW(QDomElement* dom = nullptr, boxWidget *parent = nullptr);
~ButtonW();
signals:
private slots:
void updateTabSizes(int index);
void on_cmdLabel_editingFinished();
void delayChanged(int v);
void repeatChanged(int v);
void checkableToggle(bool b);
void autoRepeatToggle(bool b);
void btnPressed();
void btnReleased();
void btnClicked(bool t);
protected:
// void enterEvent(QEvent * event);
// void mouseMoveEvent(QMouseEvent * event);
private:
Ui::buttonw *ui;
int delayVal = 100;
int repeatVal = 500;
int maxDelay = 10000;
int maxRepeat = 10000;
void setBackGroundButton(QString img);
void updateInfo();
void buildXml(QDomDocument& doc);
};
#endif // BUTTONW_H