summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/main.cpp
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/main.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/main.cpp b/core/multimedia/opieplayer/main.cpp
index 32dc1d5..4a7ac52 100644
--- a/core/multimedia/opieplayer/main.cpp
+++ b/core/multimedia/opieplayer/main.cpp
@@ -19,2 +19,5 @@
19**********************************************************************/ 19**********************************************************************/
20#include <qmessagebox.h>
21
22
20#include "mediaplayerstate.h" 23#include "mediaplayerstate.h"
@@ -36,2 +39,8 @@ int main(int argc, char **argv) {
36 39
40 if(!QDir(QString(getenv("OPIEDIR")) +"/pics/opieplayer2/skins/").exists()) {
41 QMessageBox::critical( 0, "Opieplayer Error", "<p>opieplayer2 skin not found. Please install an opieplayer2 skin.</p>" );
42
43 return -1;
44 }
45
37 MediaPlayerState st( 0, "mediaPlayerState" ); 46 MediaPlayerState st( 0, "mediaPlayerState" );
@@ -45,8 +54,8 @@ int main(int argc, char **argv) {
45 LoopControl lc( 0, "loopControl" ); 54 LoopControl lc( 0, "loopControl" );
55 // qDebug("loop control created");
46 loopControl = &lc; 56 loopControl = &lc;
47 MediaPlayer mp( 0, "mediaPlayer" ); 57 MediaPlayer mp( 0, "mediaPlayer" );
48 58 // qDebug("mediaplayer created");
49// pl.setCaption( MediaPlayer::tr("OpiePlayer") ); 59// pl.setCaption( MediaPlayer::tr("OpiePlayer") );
50 a.showMainDocumentWidget(&pl); 60 a.showMainDocumentWidget(&pl);
51
52 return a.exec(); 61 return a.exec();