File indexing completed on 2025-04-20 06:34:43
0001 /* 0002 SPDX-FileCopyrightText: 2001 Heiko Evermann <heiko@evermann.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kstarssplash.h" 0008 0009 #include <KLocalizedString> 0010 #include <QStandardPaths> 0011 #include "kspaths.h" 0012 0013 KStarsSplash::KStarsSplash(const QString &customMessage) : QSplashScreen(QPixmap()) 0014 { 0015 /*Background for kstars.png is called "Venus and The Night Sky Over Mammoth"(https://www.flickr.com/photos/newdimensionfilms/7108632527) 0016 *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/)*/ 0017 setPixmap(KSPaths::locate(QStandardPaths::AppLocalDataLocation, "kstars.png")); 0018 setMessage(customMessage.isEmpty() ? i18n("Welcome to KStars. Please stand by while loading...") : customMessage); 0019 } 0020 0021 void KStarsSplash::setMessage(const QString &message) 0022 { 0023 showMessage(message, Qt::AlignBottom | Qt::AlignHCenter, Qt::lightGray); 0024 }