summaryrefslogtreecommitdiffstats
path: root/beetplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'beetplayer.cpp')
-rw-r--r--beetplayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/beetplayer.cpp b/beetplayer.cpp
index 16cb191..82b749a 100644
--- a/beetplayer.cpp
+++ b/beetplayer.cpp
@@ -7,6 +7,8 @@
#include <QMenuBar>
#include <QStatusBar>
#include <QLabel>
+#include <QSplashScreen>
+#include <QApplication>
#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)));