From: Akos Polster Date: Mon, 2 Aug 2010 07:39:26 +0000 (+0200) Subject: Fix 6143. Make library icons larger. X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=060248c2d089b78c2ba75e7d989de5936512b6f3;p=dorian Fix 6143. Make library icons larger. --- diff --git a/book.cpp b/book.cpp index 471b991..f7b53e7 100644 --- a/book.cpp +++ b/book.cpp @@ -16,8 +16,8 @@ #include "ncxhandler.h" #include "trace.h" -const int COVER_WIDTH = 50; -const int COVER_HEIGHT = 55; +const int COVER_WIDTH = 53; +const int COVER_HEIGHT = 59; Book::Book(const QString &p, QObject *parent): QObject(parent) { diff --git a/bookview.cpp b/bookview.cpp index 44bdc48..ae1cfe7 100644 --- a/bookview.cpp +++ b/bookview.cpp @@ -18,8 +18,9 @@ #endif BookView::BookView(QWidget *parent): - QWebView(parent), contentIndex(-1), mBook(0), restorePositionAfterLoad(false), - positionAfterLoad(0), loaded(false), contentsHeight(0), decorated(false) + QWebView(parent), contentIndex(-1), mBook(0), + restorePositionAfterLoad(false), positionAfterLoad(0), loaded(false), + contentsHeight(0), decorated(false) { Trace t("BookView::BookView"); settings()->setAttribute(QWebSettings::AutoLoadImages, true); @@ -30,7 +31,8 @@ BookView::BookView(QWidget *parent): settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, false); settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard, false); settings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, false); - settings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, false); + settings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, + false); settings()->setAttribute(QWebSettings::LocalStorageEnabled, false); settings()->setAttribute(QWebSettings::ZoomTextOnly, true); settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, @@ -168,6 +170,7 @@ void BookView::goToBookmark(const Book::Bookmark &bookmark) if (mBook) { if (bookmark.chapter != contentIndex) { t.trace(QString("Loading new chapter %1").arg(bookmark.chapter)); + mBook->setLastBookmark(bookmark.chapter, bookmark.pos); restorePositionAfterLoad = true; positionAfterLoad = bookmark.pos; loadContent(bookmark.chapter); diff --git a/pkg/changelog b/pkg/changelog index cf276d7..732709f 100644 --- a/pkg/changelog +++ b/pkg/changelog @@ -1,3 +1,9 @@ +dorian (0.0.15-1) unstable; urgency=low + + * Fix jumping to a new chapter + + -- Akos Polster Mon, 1 Aug 2010 20:00:00 +0200 + dorian (0.0.14-1) unstable; urgency=low * Make returning from full screen even more obvious