digiKam
Loading...
Searching...
No Matches
dsplashscreen.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2003-02-10
7 * Description : a widget to display splash with progress bar
8 *
9 * SPDX-FileCopyrightText: 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QPainter>
21#include <QSplashScreen>
22
23// Local includes
24
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_EXPORT DSplashScreen : public QSplashScreen
31{
32 Q_OBJECT
33
34public:
35
37 ~DSplashScreen() override;
38
39 void setColor(const QColor& color);
40 void setMessage(const QString& message);
41
42protected:
43
44 void drawContents(QPainter*) override;
45
46private Q_SLOTS:
47
48 void slotAnimate();
49
50private:
51
52 // Disable
53 explicit DSplashScreen(QWidget*) = delete;
54
55private:
56
57 class Private;
58 Private* const d = nullptr;
59};
60
61} // namespace Digikam
Definition dsplashscreen.h:31
Definition datefolderview.cpp:34