some fixes more, able to see pdf already

svn path=/branches/work/kde4/playground/graphics/okular/; revision=522382
remotes/origin/old/work/newpageview
Albert Astals Cid 20 years ago
parent c8a4e8e0b8
commit b61b6e2f22
  1. 6
      generators/poppler/generator_pdf.cpp
  2. 2
      generators/poppler/generator_pdf.h
  3. 4
      ui/toc.cpp

@ -2071,12 +2071,14 @@ void PDFGenerator::addTransition( Page * pdfPage, KPDFPage * page )
void PDFGenerator::customEvent( QCustomEvent * event ) void PDFGenerator::customEvent( QEvent * e )
{ {
// catch generator 'ready events' only // catch generator 'ready events' only
if ( event->type() != TGE_DATAREADY_ID ) if ( e->type() != TGE_DATAREADY_ID )
return; return;
QCustomEvent *event = static_cast<QCustomEvent *>(e);
#if 0 #if 0
// check if thread is running (has to be stopped now) // check if thread is running (has to be stopped now)
if ( generatorThread->running() ) if ( generatorThread->running() )

@ -120,7 +120,7 @@ class PDFGenerator : public Generator
TextPage * fastTextPage (KPDFPage * page); TextPage * fastTextPage (KPDFPage * page);
// (async related) receive data from the generator thread // (async related) receive data from the generator thread
void customEvent( QCustomEvent * ); void customEvent( QEvent * );
// xpdf dependant stuff // xpdf dependant stuff
QMutex docLock; QMutex docLock;

@ -59,8 +59,8 @@ TOC::TOC(QWidget *parent, KPDFDocument *document) : K3ListView(parent), m_docume
setRootIsDecorated(true); setRootIsDecorated(true);
setResizeMode(AllColumns); setResizeMode(AllColumns);
setAllColumnsShowFocus(true); setAllColumnsShowFocus(true);
connect(this, SIGNAL(clicked(QListViewItem *)), this, SLOT(slotExecuted(QListViewItem *))); connect(this, SIGNAL(clicked(Q3ListViewItem *)), this, SLOT(slotExecuted(Q3ListViewItem *)));
connect(this, SIGNAL(returnPressed(QListViewItem *)), this, SLOT(slotExecuted(QListViewItem *))); connect(this, SIGNAL(returnPressed(Q3ListViewItem *)), this, SLOT(slotExecuted(Q3ListViewItem *)));
} }
TOC::~TOC() TOC::~TOC()

Loading…
Cancel
Save