File indexing completed on 2024-05-12 05:37:59

0001 /*
0002     SPDX-FileCopyrightText: 2010 Ivan Cukic <ivan.cukic(at)kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QScreen>
0010 
0011 #include <PlasmaQuick/QuickViewSharedEngine>
0012 
0013 class QMouseEvent;
0014 class QKeyEvent;
0015 
0016 class SplashWindow : public PlasmaQuick::QuickViewSharedEngine
0017 {
0018 public:
0019     SplashWindow(bool testing, bool window, const QString &theme, QScreen *screen);
0020 
0021     void setStage(int stage);
0022     virtual void setGeometry(const QRect &rect);
0023 
0024 protected:
0025     void keyPressEvent(QKeyEvent *event) override;
0026     void mousePressEvent(QMouseEvent *event) override;
0027 
0028 private:
0029     int m_stage;
0030     const bool m_testing;
0031     const bool m_window;
0032     const QString m_theme;
0033 };