Warning, /pim/kube/framework/qml/HelpPopup.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *  Copyright (C) 2017 Michael Bohlender, <michael.bohlender@kdemail.net>
0003  *  Copyright (C) 2017 Christian Mollekopf, <mollekopf@kolabsys.com>
0004  *
0005  *  This program is free software; you can redistribute it and/or modify
0006  *  it under the terms of the GNU General Public License as published by
0007  *  the Free Software Foundation; either version 2 of the License, or
0008  *  (at your option) any later version.
0009  *
0010  *  This program is distributed in the hope that it will be useful,
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0013  *  GNU General Public License for more details.
0014  *
0015  *  You should have received a copy of the GNU General Public License along
0016  *  with this program; if not, write to the Free Software Foundation, Inc.,
0017  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018  */
0019 
0020 
0021 import QtQuick 2.9
0022 import QtQuick.Controls 2
0023 import QtQuick.Layouts 1.1
0024 
0025 import org.kube.framework 1.0 as Kube
0026 
0027 
0028 Kube.Popup {
0029     id: debugPopup
0030 
0031     default property alias entries: view.model
0032 
0033     modal: true
0034     parent: ApplicationWindow.overlay
0035     closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
0036     x: (parent.width - width)/2
0037     y: Kube.Units.largeSpacing
0038     width: parent.width / 2
0039     height: parent.height - Kube.Units.largeSpacing * 2
0040     clip: true
0041 
0042     ListView {
0043         id: view
0044         anchors.fill: parent
0045         delegate: Kube.Label {
0046             text: description + " " + shortcut
0047         }
0048     }
0049 }