summaryrefslogtreecommitdiffstats
path: root/framework/qml/OverlayDialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/OverlayDialog.qml')
-rw-r--r--framework/qml/OverlayDialog.qml61
1 files changed, 0 insertions, 61 deletions
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 @@
1/*
2 Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17*/
18
19import QtQuick 2.4
20import QtQuick.Controls 1.4
21import QtQuick.Layouts 1.1
22
23import org.kube.framework 1.0 as Kube
24
25
26Item {
27 id: root
28
29 function closeDialog() {
30 root.destroy();
31 }
32
33 Rectangle {
34 id: background
35 anchors.fill: parent
36
37 color: "black"
38 opacity: 0.6
39 }
40
41 MouseArea {
42 anchors.fill: parent
43 onClicked: {
44 root.closeDialog()
45 }
46 }
47
48 Rectangle {
49 id: dialog
50 anchors.centerIn: parent
51
52 height: root.height * 0.8
53 width: root.width * 0.8
54
55 color: Kube.Colors.backgroundColor
56
57 MouseArea {
58 anchors.fill: parent
59 }
60 }
61}