Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:09:37

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QSPLASHSCREEN_H
0005 #define QSPLASHSCREEN_H
0006 
0007 #include <QtWidgets/qtwidgetsglobal.h>
0008 #include <QtGui/qpixmap.h>
0009 #include <QtWidgets/qwidget.h>
0010 
0011 QT_REQUIRE_CONFIG(splashscreen);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 class QSplashScreenPrivate;
0016 
0017 class Q_WIDGETS_EXPORT QSplashScreen : public QWidget
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit QSplashScreen(const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags());
0022     QSplashScreen(QScreen *screen, const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags());
0023     virtual ~QSplashScreen();
0024 
0025     void setPixmap(const QPixmap &pixmap);
0026     const QPixmap pixmap() const;
0027     void finish(QWidget *w);
0028     void repaint();
0029     QString message() const;
0030 
0031 public Q_SLOTS:
0032     void showMessage(const QString &message, int alignment = Qt::AlignLeft,
0033                   const QColor &color = Qt::black);
0034     void clearMessage();
0035 
0036 Q_SIGNALS:
0037     void messageChanged(const QString &message);
0038 
0039 protected:
0040     bool event(QEvent *e) override;
0041     virtual void drawContents(QPainter *painter);
0042     void mousePressEvent(QMouseEvent *) override;
0043 
0044 private:
0045     Q_DISABLE_COPY(QSplashScreen)
0046     Q_DECLARE_PRIVATE(QSplashScreen)
0047 };
0048 
0049 QT_END_NAMESPACE
0050 
0051 #endif // QSPLASHSCREEN_H