12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef QSPLASHSCREEN_H
- #define QSPLASHSCREEN_H
- #include <QtGui/qpixmap.h>
- #include <QtWidgets/qwidget.h>
- QT_BEGIN_NAMESPACE
- #ifndef QT_NO_SPLASHSCREEN
- class QSplashScreenPrivate;
- class Q_WIDGETS_EXPORT QSplashScreen : public QWidget
- {
- Q_OBJECT
- public:
- explicit QSplashScreen(const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags());
- QSplashScreen(QWidget *parent, const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags());
- virtual ~QSplashScreen();
- void setPixmap(const QPixmap &pixmap);
- const QPixmap pixmap() const;
- void finish(QWidget *w);
- void repaint();
- QString message() const;
- public Q_SLOTS:
- void showMessage(const QString &message, int alignment = Qt::AlignLeft,
- const QColor &color = Qt::black);
- void clearMessage();
- Q_SIGNALS:
- void messageChanged(const QString &message);
- protected:
- bool event(QEvent *e) Q_DECL_OVERRIDE;
- virtual void drawContents(QPainter *painter);
- void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
- private:
- Q_DISABLE_COPY(QSplashScreen)
- Q_DECLARE_PRIVATE(QSplashScreen)
- };
- #endif
- QT_END_NAMESPACE
- #endif
|