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
13
class
QPixmap;
14
class
QSvgWidget;
15
class
QLabel;
16
17
#include "kritaui_export.h"
18
19
class
KRITAUI_EXPORT
KisSplashScreen
:
public
QWidget
20
{
21
Q_OBJECT
22
public
:
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
39
private
:
40
void
updateSplashImage(
const
int
height);
41
42
private
:
43
44
QTimer
m_timer
;
45
bool
m_displayLinks {
false
};
46
QLabel*
m_lblSplash
;
47
QSvgWidget *
m_brandingSvg
;
48
QSvgWidget *
m_bannerSvg
;
49
QLabel *
m_loadingTextLabel
;
50
QLabel *
m_artCreditsLabel
;
51
QString
m_versionHtml
;
52
};
53
54
#endif
// KIS_SPLASH_SCREEN_H
KisSplashScreen
Definition
kis_splash_screen.h:20
KisSplashScreen::m_timer
QTimer m_timer
Definition
kis_splash_screen.h:44
KisSplashScreen::m_artCreditsLabel
QLabel * m_artCreditsLabel
Definition
kis_splash_screen.h:50
KisSplashScreen::m_loadingTextLabel
QLabel * m_loadingTextLabel
Definition
kis_splash_screen.h:49
KisSplashScreen::m_lblSplash
QLabel * m_lblSplash
Definition
kis_splash_screen.h:46
KisSplashScreen::m_brandingSvg
QSvgWidget * m_brandingSvg
Definition
kis_splash_screen.h:47
KisSplashScreen::m_versionHtml
QString m_versionHtml
Definition
kis_splash_screen.h:51
KisSplashScreen::m_bannerSvg
QSvgWidget * m_bannerSvg
Definition
kis_splash_screen.h:48
KisSplashScreen::Source
Definition
kis_splash_screen.h:23
KisSplashScreen::Source::resourcePath
QString resourcePath
Definition
kis_splash_screen.h:24
KisSplashScreen::Source::artistCredit
QString artistCredit
Definition
kis_splash_screen.h:25
libs
ui
kis_splash_screen.h
Generated at
2026-10-17 02:30:02+02:00
from
Krita
branch
master
, commit
903a17397f5fbe8a26c41562659febfa2f7fb5a5