Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F117937
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
760 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/UserEvent.h b/src/UserEvent.h
index 7b3243d..2ef6abb 100644
--- a/src/UserEvent.h
+++ b/src/UserEvent.h
@@ -1,34 +1,35 @@
#ifndef USEREVENT_H
#define USEREVENT_H
#include <QEvent>
#include <QVariant>
+#include <functional>
enum UserEvent {
Start = QEvent::User,
EventUserFunction,
};
class StartEvent : public QEvent {
public:
StartEvent()
: QEvent((QEvent::Type)UserEvent::Start)
{
}
};
class UserFunctionEvent : public QEvent {
public:
std::function<void(QVariant &)> func;
QVariant var;
explicit UserFunctionEvent(std::function<void(QVariant const &)> const &func, QVariant const &var)
: QEvent((QEvent::Type)EventUserFunction)
, func(func)
, var(var)
{
}
};
#endif // USEREVENT_H
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, May 14, 11:49 PM (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
63755
Default Alt Text
(760 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline