Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_splash_screen.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2021 Alvin Wong <alvin@alvinhc.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef KIS_SPLASH_SCREEN_H
8#define KIS_SPLASH_SCREEN_H
9
10#include <QWidget>
11#include <QTimer>
12
13class QPixmap;
14class QSvgWidget;
15class QLabel;
16
17#include "kritaui_export.h"
18
19class KRITAUI_EXPORT KisSplashScreen : public QWidget
20{
21 Q_OBJECT
22public:
23 struct Source {
24 QString resourcePath;
25 QString artistCredit;
26 };
27
28 explicit KisSplashScreen(int height, QWidget *parent = 0,
29 Qt::WindowFlags f = Qt::WindowFlags(Qt::SplashScreen | Qt::FramelessWindowHint));
30
31 void repaint();
32
33 void show();
34
35 void setLoadingText(QString text);
36
37 static Source getImageSource();
38
39private:
40 void updateSplashImage(const int height);
41
42private:
43
44 QTimer m_timer;
45 bool m_displayLinks { false };
46 QLabel* m_lblSplash;
47 QSvgWidget *m_brandingSvg;
48 QSvgWidget *m_bannerSvg;
52};
53
54#endif // KIS_SPLASH_SCREEN_H
QLabel * m_loadingTextLabel
QSvgWidget * m_brandingSvg
QSvgWidget * m_bannerSvg