mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user