ui/qt/toolkit.h

changeset 1109
1dd32226aa9f
parent 536
4a1c2eae4bcd
equal deleted inserted replaced
1108:2c8ab8c17da7 1109:1dd32226aa9f
61 public slots: 61 public slots:
62 void slot(); 62 void slot();
63 void destroy(); 63 void destroy();
64 }; 64 };
65 65
66 class UiAction; 66 class UiQAction;
67 67
68 typedef void (*ui_prepare_action_event_func)(UiEvent *event, UiAction *action); 68 typedef void (*ui_prepare_action_event_func)(UiEvent *event, UiQAction *action);
69 69
70 class UiAction : public QAction { 70 class UiQAction : public QAction {
71 Q_OBJECT 71 Q_OBJECT
72 72
73 UiObject *obj; 73 UiObject *obj;
74 ui_callback callback; 74 ui_callback callback;
75 void *userdata; 75 void *userdata;
81 void *customdata1 = nullptr; 81 void *customdata1 = nullptr;
82 void *customdata2 = nullptr; 82 void *customdata2 = nullptr;
83 int customvalue1 = 0; 83 int customvalue1 = 0;
84 int customvalue2 = 0; 84 int customvalue2 = 0;
85 85
86 UiAction(UiObject *obj, QString &label, ui_callback f, void *userdata); 86 UiQAction(UiObject *obj, QString &label, ui_callback f, void *userdata);
87 ~UiAction(); 87 ~UiQAction();
88 88
89 private slots: 89 private slots:
90 void trigger(); 90 void trigger();
91 }; 91 };
92 92
93 void ui_action_enable(UiAction *action, int enable); 93 void ui_action_enable(UiQAction *action, int enable);
94 94
95 #endif /* TOOLKIT_H */ 95 #endif /* TOOLKIT_H */
96 96

mercurial