#include <QCloseEvent>
#include <QApplication>
Defines |
#define | CONTRAP_QT_ACTION(_name, _sender, _signal, _receiver, _slot) |
| Write this macro to define a command which will be called on event.
|
Define Documentation
#define CONTRAP_QT_ACTION |
( |
|
_name, |
|
|
|
_sender, |
|
|
|
_signal, |
|
|
|
_receiver, |
|
|
|
_slot |
|
) |
| |
Value:public: void on ## _ ##_name(DPtr command, const SPtr<Scope>& scope, Engine* engine) { \
on ## _ ## _name ## _value = Executable(command, scope, engine); \
connect(_sender,_signal,_receiver,_slot); } \
protected: Executable on ## _ ## _name ## _value; \
Write this macro to define a command which will be called on event.