• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Stellarium / stellarium / 13260145531

11 Feb 2025 09:41AM UTC coverage: 12.127% (+0.03%) from 12.101%
13260145531

Pull #3751

github

10110111
Restore deleted additional SC files
Pull Request #3751: Switch skycultures to the new format

14613 of 120497 relevant lines covered (12.13%)

18620.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/StelSplashScreen.hpp
1
/*
2
 * Copyright (C) 2019 Ruslan Kabatsayev
3
 *
4
 * This program is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU General Public License
6
 * as published by the Free Software Foundation; either version 2
7
 * of the License, or (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
17
 */
18

19
#ifndef STELLARIUM_SPLASH_SCREEN_HPP
20
#define STELLARIUM_SPLASH_SCREEN_HPP
21

22
#include <QThread>
23
#include <QApplication>
24
#include <QSplashScreen>
25

26
class SplashScreen
27
{
28
        class SplashScreenWidget : public QSplashScreen
29
        {
30
                QFont splashFont;
31
                bool painted=false;
32
        public:
33
                SplashScreenWidget(QPixmap const& pixmap, double sizeRatio);
34
                void ensureFirstPaint() const
×
35
                {
36
                        while(!painted)
×
37
                        {
38
                                QThread::msleep(1);
×
39
                                qApp->processEvents();
×
40
                        }
41
                }
×
42

43
        protected:
44
                void paintEvent(QPaintEvent*) override;
45
        };
46

47
        static SplashScreenWidget* instance;
48

49
public:
50
        static void present(double sizeRatio);
51
        static void finish(QWidget* mainWindow);
52
        static void showMessage(QString const& message);
53
        static void clearMessage();
54
};
55

56
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc