mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
27 lines
505 B
C++
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
|