Fix 6143. Make library icons larger.
authorAkos Polster <polster@nolove.pipacs.com>
Mon, 2 Aug 2010 07:39:26 +0000 (09:39 +0200)
committerAkos Polster <polster@nolove.pipacs.com>
Mon, 2 Aug 2010 07:39:26 +0000 (09:39 +0200)
book.cpp
bookview.cpp
pkg/changelog

index 471b991..f7b53e7 100644 (file)
--- 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)
 {
index 44bdc48..ae1cfe7 100644 (file)
@@ -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);
index cf276d7..732709f 100644 (file)
@@ -1,3 +1,9 @@
+dorian (0.0.15-1) unstable; urgency=low
+
+  * Fix jumping to a new chapter
+
+ -- Akos Polster <akos@pipacs.com>  Mon,  1 Aug 2010 20:00:00 +0200
+
 dorian (0.0.14-1) unstable; urgency=low
 
   * Make returning from full screen even more obvious