File indexing completed on 2024-04-28 08:43:43
0001 /* 0002 SPDX-FileCopyrightText: 2017 Nicolas Carion 0003 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 */ 0005 0006 #pragma once 0007 0008 #include <QPixmap> 0009 #include <QSplashScreen> 0010 #include <QStyleOptionProgressBar> 0011 0012 class Splash : public QSplashScreen 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit Splash(); 0018 //~Splash(); 0019 0020 public Q_SLOTS: 0021 void showProgressMessage(const QString &message, int progress = 0, int max = -1); 0022 0023 private: 0024 int m_progress; 0025 QPixmap m_pixmap; 0026 QStyleOptionProgressBar m_pbStyle; 0027 0028 protected: 0029 void drawContents(QPainter *painter) override; 0030 };