aboutsummaryrefslogtreecommitdiffstats
path: root/src/webchannel/qqmlwebchannelattached.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2023-02-02 08:43:05 +0100
committerMichal Klocek <michal.klocek@qt.io>2023-02-03 13:37:42 +0100
commit48d2066d6c9b38f29368e5205a5b7f49ab3fa857 (patch)
treec40f1f840b7450248e1a0549c0caa75b6d536dd9 /src/webchannel/qqmlwebchannelattached.cpp
parent165ecd37b44e6c96c0e85afc5ea4a1bc392e035e (diff)
Fix project structure and auto registry
Create QtWebChannelQuick and move the required sources, so auto registry works and qml types files and friends are auto generated. This makes things inline what other modules do. This change has a side effect as qqmlwebchannel.h will change its module, however this is semi-pulibc header, hopefully only used by QtWebEngine. [ChangeLog] Created new QtWebChannelQuick which holds qml sources. Task-number: QTBUG-110795 Fixes: QTBUG-99959 Change-Id: Ic8aa72f070d6a9e23d918a1210f4df62df739397 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/webchannel/qqmlwebchannelattached.cpp')
-rw-r--r--src/webchannel/qqmlwebchannelattached.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/webchannel/qqmlwebchannelattached.cpp b/src/webchannel/qqmlwebchannelattached.cpp
deleted file mode 100644
index 5019590..0000000
--- a/src/webchannel/qqmlwebchannelattached.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Milian Wolff <milian.wolff@kdab.com>
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-
-#include "qqmlwebchannelattached_p.h"
-
-QT_USE_NAMESPACE
-
-QQmlWebChannelAttached::QQmlWebChannelAttached(QObject *parent)
- : QObject(parent)
-{
-
-}
-
-QQmlWebChannelAttached::~QQmlWebChannelAttached()
-{
-
-}
-
-/*!
- \qmlattachedproperty QString WebChannel::id
-
- \brief The identifier under which an object, registered to a WebChannel, is known to remote clients.
-
- This property must be set for every object that should be published over the WebChannel.
- While no restrictions are enforced on the format of the id, it is usually a good idea to
- choose a string that is also a valid JavaScript identifier.
-*/
-QString QQmlWebChannelAttached::id() const
-{
- return m_id;
-}
-
-void QQmlWebChannelAttached::setId(const QString &id)
-{
- if (id != m_id) {
- m_id = id;
- emit idChanged(id);
- }
-}