1 /* 2 SPDX-FileCopyrightText: 2001 Heiko Evermann <heiko@evermann.de> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #include "kstarssplash.h" 8 9 #include <KLocalizedString> 10 #include <QStandardPaths> 11 #include "kspaths.h" 12 KStarsSplash(const QString & customMessage)13KStarsSplash::KStarsSplash(const QString &customMessage) : QSplashScreen(QPixmap()) 14 { 15 /*Background for kstars.png is called "Venus and The Night Sky Over Mammoth"(https://www.flickr.com/photos/newdimensionfilms/7108632527) 16 *It was provided by John Lemieux (https://www.flickr.com/photos/newdimensionfilms/) and is licensed under CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/)*/ 17 setPixmap(KSPaths::locate(QStandardPaths::AppDataLocation, "kstars.png")); 18 setMessage(customMessage.isEmpty() ? i18n("Welcome to KStars. Please stand by while loading...") : customMessage); 19 } 20 setMessage(const QString & message)21void KStarsSplash::setMessage(const QString &message) 22 { 23 showMessage(message, Qt::AlignBottom | Qt::AlignHCenter, Qt::lightGray); 24 } 25