Kstars

FOVPopup.qml
1 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
2 // SPDX-License-Identifier: GPL-2.0-or-later
3 
4 import QtQuick.Controls 2.0
5 import QtQuick 2.6
6 import QtQuick.Layouts 1.1
7 import "../../constants" 1.0
8 import "../../modules"
9 import KStarsLiteEnums 1.0
10 
11 Popup {
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 }
QStringList FOVSymbols
list of FOVSymbols that are currently available
Definition: skymaplite.h:68
Q_INVOKABLE void setFOVVisible(int index, bool visible)
updates visibility of FOV symbol according to visible
Definition: skymaplite.cpp:932
Item for displaying sky objects; also handles user interaction events.
Definition: skymaplite.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.