aboutsummaryrefslogtreecommitdiffstats
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 12:25:22 +0000
commit9b62b6b44338dbaa3de1fe888d2b9d4b36eca947 (patch)
treeb9b5edd2cbb289e29811d0b7b1c45b2f04f7dae4
parent2d7f366c786079eae317f26fb9f331b6f66e756d (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>
-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));