Kstars

kstarssplash.cpp
1 /*
2  SPDX-FileCopyrightText: 2001 Heiko Evermann <[email protected]>
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 
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::AppLocalDataLocation, "kstars.png"));
18  setMessage(customMessage.isEmpty() ? i18n("Welcome to KStars. Please stand by while loading...") : customMessage);
19 }
20 
22 {
24 }
AlignBottom
void setPixmap(const QPixmap &pixmap)
QString i18n(const char *text, const TYPE &arg...)
void setMessage(const QString &s)
Display the text argument in the Splash Screen's status label.
bool isEmpty() const const
void showMessage(const QString &message, int alignment, const QColor &color)
QString message() const const
KStarsSplash(const QString &customMessage="")
Constructor.
QString message
lightGray
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.