projects
/
dorian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix downloading several books. Update version.
[dorian]
/
platform.cpp
diff --git
a/platform.cpp
b/platform.cpp
index
291a4b5
..
ee7f5d9
100644
(file)
--- a/
platform.cpp
+++ b/
platform.cpp
@@
-1,5
+1,6
@@
#include <QtGlobal>
#include <QDir>
#include <QtGlobal>
#include <QDir>
+#include <QtGui>
#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
# include <unistd.h>
#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
# include <unistd.h>
@@
-82,7
+83,14
@@
QString Platform::version()
QString Platform::downloadDir()
{
QString Platform::downloadDir()
{
+#ifdef Q_OS_SYMBIAN
+ if (QDir("E:/").exists()) {
+ return "E:/Books";
+ }
+ return "C:/Books";
+#else
return QDir::home().absoluteFilePath("Books");
return QDir::home().absoluteFilePath("Books");
+#endif
}
QString Platform::defaultFont()
}
QString Platform::defaultFont()