Kstars

skyobjectlite.cpp
1 /*
2  SPDX-FileCopyrightText: 2016 Artem Fedoskin <[email protected]>
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 }
QString translatedName() const
Definition: skyobject.h:148
SkyObjectLite()
Constructor.
void setObject(SkyObject *object)
sets SkyObject that is needed to be wrapped
void setPoint(SkyPoint *point)
sets SkyPoint that is needed to be wrapped
Information about an object in the sky.
Definition: skyobject.h:41
Q_INVOKABLE QString getTranslatedName()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:04:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.