X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmainwindow.cpp;h=e08ab2cac9ee185baeca18f8fce0c7364dfebdb4;hb=1063106840d9aab949b2a3c676fff70f5cc2f06e;hp=3ccacaf5cce8286182937d71b8a5a36e02973e7e;hpb=37a85d24acdd9a5fd6fbe941cec951c8b86f2345;p=jspeed diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3ccacaf..e08ab2c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -31,13 +31,14 @@ #include "widgetscreen.h" #include "poialerts.h" #include "speedalarm.h" +#include "mediaplayer.h" MainWindow::MainWindow(): QMainWindow(0), menu_(0), themeLoader_(0), mainScreen_(0) { setWindowTitle(tr("jSpeed")); showFullScreen(); addScreens(); - QTimer::singleShot(800, this, SLOT(loadServices())); + QTimer::singleShot(500, this, SLOT(loadServices())); } MainWindow::~MainWindow() @@ -49,11 +50,13 @@ void MainWindow::loadServices() { Odometer::instance().start(); QApplication::processEvents(); + startBacklight(); + QApplication::processEvents(); PoiAlerts::instance().start(); QApplication::processEvents(); SpeedAlarm::instance().start(); QApplication::processEvents(); - startBacklight(); + MediaPlayer::init(); } void MainWindow::addScreens()