Kstars

TelescopeControl.qml
1 // SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
2 // SPDX-License-Identifier: GPL-2.0-or-later
3 
4 import QtQuick 2.7
5 import QtQuick.Controls 2.0
6 import QtQuick.Layouts 1.3
7 
8 ColumnLayout {
9  property var telescope: null
10  anchors.horizontalCenter: parent.horizontalCenter
11 
12  Label {
13  font {
14  pointSize: 13
15  }
16  text: telescope == null ? "" : telescope.deviceName
17  }
18 
19  RowLayout {
20  anchors.horizontalCenter: parent.horizontalCenter
21  Button {
22  text: xi18n("Slew")
23  onClicked: {
24  telescope.slew(SkyMapLite.clickedObjectLite)
25  }
26  }
27  Button {
28  text: xi18n("Sync")
29  onClicked: {
30  telescope.sync(SkyMapLite.clickedObjectLite)
31  }
32  }
33  }
34 }
QString xi18n(const char *text, const TYPE &arg...)
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:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.