Changeset View
Changeset View
Standalone View
Standalone View
ksirk/decoratedgameframe.h
Show All 36 Lines | |||||
37 | namespace Ksirk | 37 | namespace Ksirk | ||
38 | { | 38 | { | ||
39 | 39 | | |||
40 | class ArenaAction : public QAction | 40 | class ArenaAction : public QAction | ||
41 | { | 41 | { | ||
42 | Q_OBJECT | 42 | Q_OBJECT | ||
43 | public: | 43 | public: | ||
44 | ArenaAction(QObject* parent = 0) : QAction(parent), m_arenaEnabled(false) {} | 44 | ArenaAction(QObject* parent = 0) : QAction(parent), m_arenaEnabled(false) {} | ||
45 | ArenaAction(const QString& text, QObject* parent = 0) : QAction(text, parent), m_arenaEnabled(false) {} | 45 | explicit ArenaAction(const QString& text, QObject* parent = 0) : QAction(text, parent), m_arenaEnabled(false) {} | ||
46 | inline bool isArenaEnabled() {return m_arenaEnabled;} | 46 | inline bool isArenaEnabled() {return m_arenaEnabled;} | ||
47 | inline void setArenaEnabled(bool value) {m_arenaEnabled = value;} | 47 | inline void setArenaEnabled(bool value) {m_arenaEnabled = value;} | ||
48 | private: | 48 | private: | ||
49 | bool m_arenaEnabled; | 49 | bool m_arenaEnabled; | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
52 | 52 | | |||
53 | /** | 53 | /** | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |