summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-05-20 13:40:07 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-06-15 08:07:32 +0000
commita0c54d6435edd23a7eaacef73b074475730ec208 (patch)
tree36e08f755563c82f3a03cc878f9fc0f3667b6f6c /src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
parent5fbb2043a1be8b14e70335c2b2db77702e52fa10 (diff)
Add QML popup support for xdg_shell
Change-Id: I5b35ff3b1c6c2dc884b52e6f077c0f2bb2db68a2 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Diffstat (limited to 'src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h')
-rw-r--r--src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h b/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
index c2f46917e..53c88c965 100644
--- a/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
+++ b/src/compositor/extensions/qwaylandquickshellsurfaceitem_p.h
@@ -39,6 +39,8 @@
#include <QtWaylandCompositor/private/qwaylandquickitem_p.h>
+#include <functional>
+
QT_BEGIN_NAMESPACE
//
@@ -82,7 +84,7 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandQuickShellEventFilter : public QObject
{
Q_OBJECT
public:
- typedef void (*CallbackFunction)(void);
+ typedef std::function<void()> CallbackFunction;
static void startFilter(QWaylandClient *client, CallbackFunction closePopupCallback);
static void cancelFilter();