widgets/listview.cpp \\r
searchresultsdialog.cpp \\r
searchresultinfodialog.cpp \\r
- widgets/progressdialog.cpp\r
+ widgets/progressdialog.cpp \\r
+ widgets/splash.cpp\r
\r
HEADERS += \\r
mainwindow.h \\r
widgets/flickable.h \\r
searchresultsdialog.h \\r
searchresultinfodialog.h \\r
- widgets/progressdialog.h\r
+ widgets/progressdialog.h \\r
+ widgets/splash.h\r
\r
RESOURCES += \\r
dorian.qrc\r
<file>icons/symbian/style-day.png</file>
<file>icons/symbian/style-default.png</file>
<file>icons/symbian/style-night.png</file>
+ <file>icons/splash.jpg</file>
</qresource>
</RCC>
#include "bookdb.h"
#include "search.h"
#include "platform.h"
+#include "splash.h"
#ifdef Q_OS_SYMBIAN
# include "mediakeysobserver.h"
value("tracelevel", (int)DORIAN_DEFAULT_TRACE_LEVEL).toInt();
qInstallMsgHandler(Trace::messageHandler);
+#ifdef Q_OS_SYMBIAN
+ Splash *splash = new Splash();
+ splash->showFullScreen();
+ a.processEvents();
+#endif
+
{
MainWindow w;
+#ifdef Q_OS_SYMBIAN
+ splash->close();
+#endif
ret = a.exec();
}
connect(library, SIGNAL(upgrading(const QString &)),
this, SLOT(onUpgrading(const QString &)));
connect(library, SIGNAL(endUpgrade()), this, SLOT(onEndUpgrade()));
+#ifndef Q_OS_SYMBIAN
connect(library, SIGNAL(beginLoad(int)), this, SLOT(onBeginLoad(int)));
connect(library, SIGNAL(loading(const QString &)),
this, SLOT(onLoading(const QString &)));
connect(library, SIGNAL(endLoad()), this, SLOT(onEndLoad()));
+#endif
library->upgrade();
library->load();
* On Symbian, display confirmation after downloading a book
* Navigate with volume keys on Symbian, too
* Speed up startup, load books on demand
+ * Show splash screen on Symbian
-- Akos Polster <akos@pipacs.com> Fri, 5 Nov 2010 02:00:00 +0100
--- /dev/null
+#include <QtGui>\r
+\r
+#include "splash.h"\r
+\r
+Splash::Splash(QWidget *parent): QMainWindow(parent)\r
+{\r
+ QLabel *label = new QLabel(this);\r
+ QRect geo = QApplication::desktop()->geometry();\r
+ label->setGeometry(geo);\r
+ label->setStyleSheet("background-color: black; color: black");\r
+ label->setPixmap(QPixmap(":/icons/splash.jpg").scaled(geo.width(),\r
+ geo.height(), Qt::KeepAspectRatio, Qt::SmoothTransformation));\r
+ setCentralWidget(label);\r
+}\r
--- /dev/null
+#ifndef SPLASH_H\r
+#define SPLASH_H\r
+\r
+#include <QMainWindow>\r
+\r
+class Splash: public QMainWindow\r
+{\r
+ Q_OBJECT\r
+\r
+public:\r
+ explicit Splash(QWidget *parent = 0);\r
+};\r
+\r
+#endif // SPLASH_H\r