aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-08-16 12:48:55 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-08-22 05:46:24 +0000
commit409f30232666a71e7cd374d74b52af69a75a8f84 (patch)
treedcd6a45269aaae07ca9f9f8bc50e89012205eeda /src/imports
parentfb02976cbec61b5a3f53b8245e8a9afb4df4fa63 (diff)
QQuickTableView: move TableView from Qt.labs to QtQuick
TableView is now ready for Qt-5.12. The only thing missing is documentation, which is currently being written, and on the way. So remove the temporary labs plugin that used to register TableView, and register it together with the other QtQuick items. Change-Id: I7f360eac3934d228904a4133363e336afe0c451a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/imports.pro3
-rw-r--r--src/imports/tableview/plugin.cpp64
-rw-r--r--src/imports/tableview/plugins.qmltypes33
-rw-r--r--src/imports/tableview/qmldir5
-rw-r--r--src/imports/tableview/tableview.pro10
5 files changed, 1 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)