/* Copyright (C) 2018 * swift project Community / Contributors * * This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, * including this file, may be copied, modified, propagated, or distributed except according to the terms * contained in the LICENSE file. */ //! \file #ifndef BLACKGUI_SPLASHSCREEN_H #define BLACKGUI_SPLASHSCREEN_H #include "blackmisc/statusmessage.h" #include #include #include #include #include #include namespace BlackGui { /** * Own splash screen */ class CSplashScreen : public QSplashScreen { public: //! Ctor CSplashScreen(const QPixmap &pixmap); //! Show status message void showStatusMessage(const QString &html); //! Show status message void showStatusMessage(const BlackMisc::CStatusMessage &message); //! Set the font for the splash screen void setSplashFont(const QFont &font); private: //! Hide text void hideText(); QString m_message; QTimer m_hideTextTimer; QLabel *m_label = nullptr; }; } // ns #endif // guard