From 99fed11c2d28433de298bb9d98ab5880c749ad55 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 5 Mar 2017 20:20:30 +0100 Subject: Add Splash Screen --- beetplayer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'beetplayer.cpp') diff --git a/beetplayer.cpp b/beetplayer.cpp index 16cb191..82b749a 100644 --- a/beetplayer.cpp +++ b/beetplayer.cpp @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include "beetplayer.h" #include "configurationdialog.h" @@ -16,10 +18,14 @@ BeetPlayer::BeetPlayer(QWidget *parent, Qt::WindowFlags f) : QMainWindow(parent, f) { //general setup qApp->setWindowIcon(QIcon(":/beetplayer32.png")); + QSplashScreen splash(QPixmap(":/splash.png")); + splash.show(); setMinimumWidth(1024); setMinimumHeight(768); openDatabase(); createGlobalActions(); + splash.showMessage(tr("Constructing Player..."), Qt::AlignHCenter, Qt::yellow); + qApp->processEvents(); mPlayerWidget = new PlayerWidget; connect(mPlayerWidget, SIGNAL(viewModeChanged(QString)), this, SLOT(setViewMode(QString))); connect(mPlayerWidget, SIGNAL(playModeChanged(QString)), this, SLOT(setPlayMode(QString))); -- cgit v1.2.3-70-g09d2