You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QSplashScreen>
|
|
|
|
|
#include <QPixmap>
|
|
|
|
|
#include <QProgressBar>
|
|
|
|
|
#include <QList>
|
|
|
|
|
#include "iSplashObj.h"
|
|
|
|
|
|
|
|
|
|
class I_GUI_SPLASH_EXPORT iSplashObjScreenEx: public QSplashScreen, public iSplashObj
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
iSplashObjScreenEx(QPixmap& pixmap);
|
|
|
|
|
~iSplashObjScreenEx();
|
|
|
|
|
|
|
|
|
|
// 开启或关闭
|
|
|
|
|
virtual void start();
|
|
|
|
|
virtual void finish();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
// 产生随机数
|
|
|
|
|
void generateRandoms();
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
//
|
|
|
|
|
void slotUpdateProgress();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
int m_nImgHeight;
|
|
|
|
|
int m_nImgWidth;
|
|
|
|
|
QList<int> m_listRandoms; //随机数
|
|
|
|
|
int m_nLoopMax; //最大
|
|
|
|
|
|
|
|
|
|
QProgressBar* m_pProgressBar;
|
|
|
|
|
|
|
|
|
|
QTimer* m_pTimer;
|
|
|
|
|
};
|