vnote/src/core/events.h
Le Tan 52702a32e9 hard days for VNoteX project
Never say "refactor" again!!!
2020-11-28 23:10:43 +08:00

27 lines
505 B
C++

#ifndef EVENTS_H
#define EVENTS_H
#include <QVariant>
namespace vnotex
{
class Event
{
public:
void reset()
{
m_handled = false;
m_response.clear();
}
// Whether this event is handled.
// If it is handled, later handler should just ignore this event.
bool m_handled = false;
// Handler could use this field to return state to the event sender.
QVariant m_response = true;
};
}
#endif // EVENTS_H