aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@qt.io>2021-03-09 11:50:30 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-03-09 11:55:22 +0000
commit140095b310a144740774b0a5c01af30e624eb8c7 (patch)
tree02c69415bad293f2a243036c21df30f28b89eb23 /src
parentb482f194f7a058d8312e3a274f0af448c21bea4f (diff)
Fix static build
Function with the same name is exported from QtQuick which leads to multiple definition linker error. Marking this function as static avoids the issue. Change-Id: I29f3923ee55b5181e9b76b91e49d9f753f54ed8f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 02b18562fe1d6dec50e361a2ac568cb11087b743) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/quicktemplates2/qtquicktemplates2global.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qtquicktemplates2global.cpp b/src/quicktemplates2/qtquicktemplates2global.cpp
index 9b79d60c..5d7816b4 100644
--- a/src/quicktemplates2/qtquicktemplates2global.cpp
+++ b/src/quicktemplates2/qtquicktemplates2global.cpp
@@ -42,7 +42,7 @@
QT_BEGIN_NAMESPACE
#if QT_CONFIG(accessibility)
-QAccessibleInterface *qQuickAccessibleFactory(const QString &classname, QObject *object)
+static QAccessibleInterface *qQuickAccessibleFactory(const QString &classname, QObject *object)
{
if (classname == u"QQuickPage") {
return new QAccessibleQuickPage(qobject_cast<QQuickPage *>(object));