[poppler] qt4/demos

Pino Toscano pino at kemper.freedesktop.org
Tue Jun 2 17:55:00 PDT 2009


 qt4/demos/pageview.cpp   |    5 -----
 qt4/demos/pageview.h     |    3 ---
 qt4/demos/thumbnails.cpp |    2 +-
 qt4/demos/thumbnails.h   |    3 ---
 qt4/demos/viewer.cpp     |    1 -
 5 files changed, 1 insertion(+), 13 deletions(-)

New commits:
commit e8d897581656ee4a20e9bb87dd999425663ace3b
Author: Pino Toscano <pino at kde.org>
Date:   Wed Jun 3 02:54:29 2009 +0200

    [Qt4 demo] simplier way to change page from the thumbnail view

diff --git a/qt4/demos/pageview.cpp b/qt4/demos/pageview.cpp
index b0165e2..3420a63 100644
--- a/qt4/demos/pageview.cpp
+++ b/qt4/demos/pageview.cpp
@@ -60,9 +60,4 @@ void PageView::pageChanged(int page)
     delete popplerPage;
 }
 
-void PageView::setPage(int page)
-{
-    DocumentObserver::setPage(page);
-}
-
 #include "pageview.moc"
diff --git a/qt4/demos/pageview.h b/qt4/demos/pageview.h
index a6f10ec..abf5a50 100644
--- a/qt4/demos/pageview.h
+++ b/qt4/demos/pageview.h
@@ -37,9 +37,6 @@ public:
     /*virtual*/ void documentClosed();
     /*virtual*/ void pageChanged(int page);
 
-public Q_SLOTS:
-    void setPage(int page);
-
 private:
     QLabel *m_imageLabel;
 };
diff --git a/qt4/demos/thumbnails.cpp b/qt4/demos/thumbnails.cpp
index ba82c2d..07b19ca 100644
--- a/qt4/demos/thumbnails.cpp
+++ b/qt4/demos/thumbnails.cpp
@@ -78,7 +78,7 @@ void ThumbnailsDock::slotItemActivated(QListWidgetItem *item)
         return;
     }
 
-    emit pageClicked(item->data(PageRole).toInt());
+    setPage(item->data(PageRole).toInt());
 }
 
 #include "thumbnails.moc"
diff --git a/qt4/demos/thumbnails.h b/qt4/demos/thumbnails.h
index e426b12..076d5ae 100644
--- a/qt4/demos/thumbnails.h
+++ b/qt4/demos/thumbnails.h
@@ -35,9 +35,6 @@ public:
 
     /*virtual*/ void documentClosed();
 
-Q_SIGNALS:
-    void pageClicked(int page);
-
 protected:
     /*virtual*/ void fillInfo();
 
diff --git a/qt4/demos/viewer.cpp b/qt4/demos/viewer.cpp
index c85e079..8792393 100644
--- a/qt4/demos/viewer.cpp
+++ b/qt4/demos/viewer.cpp
@@ -124,7 +124,6 @@ PdfViewer::PdfViewer()
     thumbnailsDock->hide();
     viewMenu->addAction(thumbnailsDock->toggleViewAction());
     m_observers.append(thumbnailsDock);
-    connect(thumbnailsDock, SIGNAL(pageClicked(int)), view, SLOT(setPage(int)));
 
     EmbeddedFilesDock *embfilesDock = new EmbeddedFilesDock(this);
     addDockWidget(Qt::BottomDockWidgetArea, embfilesDock);


More information about the poppler mailing list