diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/imports.pro | 3 | ||||
-rw-r--r-- | src/imports/tableview/plugin.cpp | 64 | ||||
-rw-r--r-- | src/imports/tableview/plugins.qmltypes | 33 | ||||
-rw-r--r-- | src/imports/tableview/qmldir | 5 | ||||
-rw-r--r-- | src/imports/tableview/tableview.pro | 10 | ||||
-rw-r--r-- | src/quick/items/qquickitemsmodule.cpp | 6 | ||||
-rw-r--r-- | src/quick/items/qquicktableview_p.h | 3 |
7 files changed, 10 insertions, 114 deletions
diff --git a/src/imports/imports.pro b/src/imports/imports.pro index 828382ba39..653c787384 100644 --- a/src/imports/imports.pro +++ b/src/imports/imports.pro @@ -17,8 +17,7 @@ qtHaveModule(quick) { SUBDIRS += \ layouts \ qtquick2 \ - window \ - tableview + window qtHaveModule(testlib): SUBDIRS += testlib qtConfig(systemsemaphore): SUBDIRS += sharedimage diff --git a/src/imports/tableview/plugin.cpp b/src/imports/tableview/plugin.cpp deleted file mode 100644 index 3bd9b72a8d..0000000000 --- a/src/imports/tableview/plugin.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2018 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the plugins of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include <QtQml/qqmlextensionplugin.h> -#include <QtQuick/private/qquicktableview_p.h> - -QT_BEGIN_NAMESPACE - -//![class decl] -class QtQuickTableViewPlugin : public QQmlExtensionPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) -public: - QtQuickTableViewPlugin(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) - {} - - void registerTypes(const char *uri) override - { - Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.tableview")); - qmlRegisterType<QQuickTableView>(uri, 1, 0, "TableView"); - } -}; -//![class decl] - -QT_END_NAMESPACE - -#include "plugin.moc" diff --git a/src/imports/tableview/plugins.qmltypes b/src/imports/tableview/plugins.qmltypes deleted file mode 100644 index 8510b698a9..0000000000 --- a/src/imports/tableview/plugins.qmltypes +++ /dev/null @@ -1,33 +0,0 @@ -import QtQuick.tooling 1.2 - -// This file describes the plugin-supplied types contained in the library. -// It is used for QML tooling purposes only. -// -// This file was auto-generated by: -// 'qmlplugindump -nonrelocatable Qt.labs.tableview 1.0' - -Module { - dependencies: ["QtQuick 2.8"] - Component { - name: "QQuickTableView" - defaultProperty: "flickableData" - prototype: "QQuickFlickable" - exports: ["Qt.labs.tableview/TableView 1.0"] - exportMetaObjectRevisions: [0] - attachedType: "QQuickTableViewAttached" - Property { name: "rows"; type: "int"; isReadonly: true } - Property { name: "columns"; type: "int"; isReadonly: true } - Property { name: "rowSpacing"; type: "double" } - Property { name: "columnSpacing"; type: "double" } - Property { name: "cacheBuffer"; type: "int" } - Property { name: "model"; type: "QVariant" } - Property { name: "delegate"; type: "QQmlComponent"; isPointer: true } - } - Component { - name: "QQuickTableViewAttached" - prototype: "QObject" - Property { name: "tableView"; type: "QQuickTableView"; isReadonly: true; isPointer: true } - Property { name: "row"; type: "int"; isReadonly: true } - Property { name: "column"; type: "int"; isReadonly: true } - } -} diff --git a/src/imports/tableview/qmldir b/src/imports/tableview/qmldir deleted file mode 100644 index dac976794a..0000000000 --- a/src/imports/tableview/qmldir +++ /dev/null @@ -1,5 +0,0 @@ -module Qt.labs.tableview -plugin tableviewplugin -classname QtQuickTableViewPlugin -typeinfo plugins.qmltypes - diff --git a/src/imports/tableview/tableview.pro b/src/imports/tableview/tableview.pro deleted file mode 100644 index 97ced65e6b..0000000000 --- a/src/imports/tableview/tableview.pro +++ /dev/null @@ -1,10 +0,0 @@ -CXX_MODULE = qml -TARGET = tableviewplugin -TARGETPATH = Qt/labs/tableview -IMPORT_VERSION = 1.0 - -SOURCES += $$PWD/plugin.cpp - -QT += quick-private qml-private - -load(qml_plugin) diff --git a/src/quick/items/qquickitemsmodule.cpp b/src/quick/items/qquickitemsmodule.cpp index fd6788c256..a20150e3b9 100644 --- a/src/quick/items/qquickitemsmodule.cpp +++ b/src/quick/items/qquickitemsmodule.cpp @@ -64,6 +64,9 @@ #if QT_CONFIG(quick_pathview) #include "qquickpathview_p.h" #endif +#if QT_CONFIG(quick_tableview) +#include "qquicktableview_p.h" +#endif #if QT_CONFIG(quick_viewtransitions) #include "qquickitemviewtransition_p.h" #endif @@ -464,6 +467,9 @@ static void qt_quickitems_defineModule(const char *uri, int major, int minor) qmlRegisterType<QQuickGradient, 12>(uri, 2, 12, "Gradient"); qmlRegisterType<QQuickFlickable, 12>(uri, 2, 12, "Flickable"); qmlRegisterType<QQuickText, 12>(uri, 2, 12, "Text"); +#if QT_CONFIG(quick_tableview) + qmlRegisterType<QQuickTableView>(uri, 2, 12, "TableView"); +#endif } static void initResources() diff --git a/src/quick/items/qquicktableview_p.h b/src/quick/items/qquicktableview_p.h index 7e0f9ba8c6..2ffc23d29b 100644 --- a/src/quick/items/qquicktableview_p.h +++ b/src/quick/items/qquicktableview_p.h @@ -51,6 +51,9 @@ // We mean it. // +#include <private/qtquickglobal_p.h> +QT_REQUIRE_CONFIG(quick_tableview); + #include <QtCore/qpointer.h> #include <QtQuick/private/qtquickglobal_p.h> #include <QtQuick/private/qquickflickable_p.h> |