Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F103986
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
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
Sat, Feb 7, 1:31 PM (9 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
56021
Default Alt Text
(760 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline
Log In to Comment