Kstars

FOVPopup.qml
1// SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4import QtQuick.Controls 2.0
5import QtQuick 2.6
6import QtQuick.Layouts 1.1
7import "../../constants" 1.0
8import "../../modules"
9import KStarsLiteEnums 1.0
10
11Popup {
12 id: fovPopup
13 focus: true
14 modal: true
15 width: fovList.implicitWidth
16 height: parent.height > fovList.implicitHeight ? fovList.implicitHeight : parent.height
17 background: Rectangle {
18 anchors.fill: parent
19 color: Num.sysPalette.base
20 }
21
22 KSListView {
23 id: fovList
24 anchors {
25 fill: parent
26 centerIn: parent
27 }
28 checkable: true
29
30 model: SkyMapLite.FOVSymbols
31 onClicked: {
32 SkyMapLite.setFOVVisible(index, checked)
33 }
34 }
35}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.