qt: Change splash screen to normal window

Makes it possible to move, minimize, unminimize the window while
Bitcoin Core is initializing.
This commit is contained in:
Wladimir J. van der Laan
2014-09-18 13:14:38 +02:00
parent 7fd8813675
commit a49f11d9ed
3 changed files with 58 additions and 19 deletions

View File

@@ -9,23 +9,34 @@
/** class for the splashscreen with information of the running client
*/
class SplashScreen : public QSplashScreen
class SplashScreen : public QWidget
{
Q_OBJECT
public:
explicit SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTestNet);
explicit SplashScreen(Qt::WindowFlags f, bool isTestNet);
~SplashScreen();
protected:
void paintEvent(QPaintEvent *event);
public slots:
/** Slot to call finish() method as it's not defined as slot */
void slotFinish(QWidget *mainWin);
/** Show message and progress */
void showMessage(const QString &message, int alignment, const QColor &color);
private:
/** Connect core signals to splash screen */
void subscribeToCoreSignals();
/** Disconnect core signals to splash screen */
void unsubscribeFromCoreSignals();
QPixmap pixmap;
QString curMessage;
QColor curColor;
int curAlignment;
};
#endif // SPLASHSCREEN_H