aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2022-08-12 10:50:49 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-14 04:53:15 +0000
commitc8d5a6cf4ac84c9a828d15074de05c7650bdc9ff (patch)
tree832a220be1f1260e7cdab3705cbab1322e68cb83
parente21a4cdf224197ee9c134b8d7fa424a919f60dfc (diff)
QQuickShortcut: export as part of private API
All the Qt Quick types in src/quick/util are exported except this one, so export it as well. It may also be used by external users when implementing something in pure C++ instead of QML. Change-Id: If224608127e5fdc2c834b294f200b7a72fae6f96 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 70074e1acaca16afd6306a9c967ce4d15966c333) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/quick/util/qquickshortcut_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/util/qquickshortcut_p.h b/src/quick/util/qquickshortcut_p.h
index f303043008..baa884b6f0 100644
--- a/src/quick/util/qquickshortcut_p.h
+++ b/src/quick/util/qquickshortcut_p.h
@@ -22,12 +22,13 @@
#include <QtQml/qqmlparserstatus.h>
#include <QtQml/qqml.h>
#include <QtCore/private/qglobal_p.h>
+#include <QtQuick/private/qtquickglobal_p.h>
QT_BEGIN_NAMESPACE
class QShortcutEvent;
-class QQuickShortcut : public QObject, public QQmlParserStatus
+class Q_QUICK_PRIVATE_EXPORT QQuickShortcut : public QObject, public QQmlParserStatus
{
Q_OBJECT
Q_INTERFACES(QQmlParserStatus)