File indexing completed on 2024-10-13 03:29:38
0001 /* 0002 SPDX-FileCopyrightText: 2016 Artem Fedoskin <afedoskin3@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 #include "skyobjectlite.h" 0006 0007 SkyObjectLite::SkyObjectLite() : SkyPointLite(), object(nullptr) 0008 { 0009 } 0010 0011 void SkyObjectLite::setObject(SkyObject *obj) 0012 { 0013 object = obj; 0014 if (obj) 0015 { 0016 setPoint(obj); 0017 emit translatedNameChanged(obj->translatedName()); 0018 } 0019 } 0020 0021 QString SkyObjectLite::getTranslatedName() 0022 { 0023 if (object) 0024 { 0025 return object->translatedName(); 0026 } 0027 else 0028 { 0029 return ""; 0030 } 0031 }