From 32449cb4c7d7a37fa7fd54d5f7fc29bc7ecb2eff Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 4 Apr 2018 14:44:26 +0200 Subject: Got rid of controls1 where possible, and otherwise marked it learly --- framework/qml/MailListView.qml | 1 - framework/qml/OverlayDialog.qml | 61 ----------------------------------------- framework/qml/TreeView.qml | 4 +-- framework/qml/View.qml | 1 - framework/qmldir | 1 - 5 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 framework/qml/OverlayDialog.qml (limited to 'framework') diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index ff72a59c..f5806d82 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml @@ -18,7 +18,6 @@ import QtQuick 2.9 import QtQuick.Controls 2.0 -import QtQuick.Controls 1.4 as Controls import QtQuick.Layouts 1.1 import org.kube.framework 1.0 as Kube diff --git a/framework/qml/OverlayDialog.qml b/framework/qml/OverlayDialog.qml deleted file mode 100644 index 4334754f..00000000 --- a/framework/qml/OverlayDialog.qml +++ /dev/null @@ -1,61 +0,0 @@ -/* - Copyright (C) 2016 Michael Bohlender, - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -import QtQuick 2.4 -import QtQuick.Controls 1.4 -import QtQuick.Layouts 1.1 - -import org.kube.framework 1.0 as Kube - - -Item { - id: root - - function closeDialog() { - root.destroy(); - } - - Rectangle { - id: background - anchors.fill: parent - - color: "black" - opacity: 0.6 - } - - MouseArea { - anchors.fill: parent - onClicked: { - root.closeDialog() - } - } - - Rectangle { - id: dialog - anchors.centerIn: parent - - height: root.height * 0.8 - width: root.width * 0.8 - - color: Kube.Colors.backgroundColor - - MouseArea { - anchors.fill: parent - } - } -} diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml index 7b9a1103..21345fb0 100644 --- a/framework/qml/TreeView.qml +++ b/framework/qml/TreeView.qml @@ -18,7 +18,7 @@ */ import QtQuick 2.4 -import QtQuick.Controls 1.4 +import QtQuick.Controls 1.4 as Controls1 import QtQuick.Controls 2 as Controls2 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.1 @@ -60,7 +60,7 @@ FocusScope { flickable: flickableItem } - TreeView { + Controls1.TreeView { id: treeView anchors { diff --git a/framework/qml/View.qml b/framework/qml/View.qml index e5a4c274..b0c108fc 100644 --- a/framework/qml/View.qml +++ b/framework/qml/View.qml @@ -19,7 +19,6 @@ import QtQuick 2.7 -import QtQuick.Controls 1.3 import QtQuick.Controls 2.0 as Controls2 import QtQuick.Layouts 1.1 import org.kube.framework 1.0 as Kube diff --git a/framework/qmldir b/framework/qmldir index 4a6f40ef..c62444c9 100644 --- a/framework/qmldir +++ b/framework/qmldir @@ -9,7 +9,6 @@ InlineAccountSwitcher 1.0 InlineAccountSwitcher.qml NewAccountDialog 1.0 NewAccountDialog.qml EditAccount 1.0 EditAccount.qml LoginAccount 1.0 LoginAccount.qml -OverlayDialog 1.0 OverlayDialog.qml Outbox 1.0 Outbox.qml NotificationPopup 1.0 NotificationPopup.qml Icon 1.0 Icon.qml -- cgit v1.2.3