aboutsummaryrefslogtreecommitdiff
path: root/src/qt/splashscreen.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-09-18 13:14:38 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-09-18 13:21:26 +0200
commita49f11d9edf2f7dbce154ca370494a8f86e013d0 (patch)
tree906f50b1935438b6d9c8bf5d51b61be8e3d4dc00 /src/qt/splashscreen.h
parent7fd881367544fcc9e70130bf448a181794da26ab (diff)
downloadbitcoin-a49f11d9edf2f7dbce154ca370494a8f86e013d0.tar.xz
qt: Change splash screen to normal window
Makes it possible to move, minimize, unminimize the window while Bitcoin Core is initializing.
Diffstat (limited to 'src/qt/splashscreen.h')
-rw-r--r--src/qt/splashscreen.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/qt/splashscreen.h b/src/qt/splashscreen.h
index d79038d81d..1151d6c111 100644
--- a/src/qt/splashscreen.h
+++ b/src/qt/splashscreen.h
@@ -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