-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqeaction.h
37 lines (28 loc) · 857 Bytes
/
qeaction.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
#ifndef QEACTION_H
#define QEACTION_H
#include <QAction>
class QEAction : public QAction
{
Q_OBJECT
public:
QEAction(QObject *parent) : QAction (parent) {};
QEAction(const QString & text, QObject *parent) : QAction (text, parent) {};
QEAction(const QIcon & icon, const QString & text, QObject *parent) : QAction (icon, text, parent) {};
bool showInMenu;
bool showInToolbar;
static QEAction* newAction(QString shortstr, QObject *parent,
QString longstr = "",
QKeySequence keyseq=0,
bool isCheckable = false,
bool isChecked = false,
bool inMenus = true,
bool inToolbars = true);
static QEAction* newAction(QIcon icon, QString shortstr, QObject *parent,
QString longstr = "",
QKeySequence keyseq=0,
bool isCheckable = false,
bool isChecked = false,
bool inMenus = true,
bool inToolbars = true);
};
#endif