Audit best practice 0.4.8: orientazioni per pagina (reader in landscape), licenza nel pacchetto, EPUB lazy lengths, cover dinamica (ReaderState), flush config senza sync per tasto, pulizia chapterFraction/commenti
This commit is contained in:
+6
-2
@@ -10,6 +10,7 @@
|
||||
#include "apiclient.h"
|
||||
#include "downloader.h"
|
||||
#include "epub.h"
|
||||
#include "readerstate.h"
|
||||
#include "settings.h"
|
||||
|
||||
Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
@@ -22,7 +23,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
app->setOrganizationName(QStringLiteral("harbour"));
|
||||
app->setApplicationName(QStringLiteral("calibreweb"));
|
||||
// versione mostrata nelle impostazioni (tenere allineata allo spec)
|
||||
app->setApplicationVersion(QStringLiteral("0.4.7"));
|
||||
app->setApplicationVersion(QStringLiteral("0.4.8"));
|
||||
|
||||
Settings settings;
|
||||
|
||||
@@ -56,16 +57,19 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
|
||||
QQuickView *view = SailfishApp::createView();
|
||||
|
||||
qDebug() << "harbour-calibreweb v0.4.7 build" << __DATE__ << __TIME__;
|
||||
qDebug() << "harbour-calibreweb v0.4.8 build" << __DATE__ << __TIME__;
|
||||
|
||||
qmlRegisterType<EpubBook>("harbour.calibreweb", 1, 0, "EpubBook");
|
||||
|
||||
ApiClient apiClient(&settings);
|
||||
Downloader downloader(&settings);
|
||||
// stato di lettura corrente (per la cover quando l'app va in background)
|
||||
ReaderState readerState(&settings);
|
||||
|
||||
view->rootContext()->setContextProperty(QStringLiteral("appSettings"), &settings);
|
||||
view->rootContext()->setContextProperty(QStringLiteral("apiClient"), &apiClient);
|
||||
view->rootContext()->setContextProperty(QStringLiteral("downloader"), &downloader);
|
||||
view->rootContext()->setContextProperty(QStringLiteral("readerState"), &readerState);
|
||||
view->rootContext()->setContextProperty(QStringLiteral("appVersion"),
|
||||
QCoreApplication::applicationVersion());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user