Kstars

skyobjectlite.cpp
1/*
2 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com>
3 SPDX-License-Identifier: GPL-2.0-or-later
4*/
5#include "skyobjectlite.h"
6
8{
9}
10
12{
13 object = obj;
14 if (obj)
15 {
16 setPoint(obj);
17 emit translatedNameChanged(obj->translatedName());
18 }
19}
20
22{
23 if (object)
24 {
25 return object->translatedName();
26 }
27 else
28 {
29 return "";
30 }
31}
SkyObjectLite()
Constructor.
Q_INVOKABLE QString getTranslatedName()
void setObject(SkyObject *object)
sets SkyObject that is needed to be wrapped
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
QString translatedName() const
Definition skyobject.h:149
Wrapper for SkyPoint to allow access of some of its properties from QML.
void setPoint(SkyPoint *point)
sets SkyPoint that is needed to be wrapped
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.