diff --git a/generators/poppler/generator_pdf.cpp b/generators/poppler/generator_pdf.cpp index 5d71218f0..8e1bde8c7 100644 --- a/generators/poppler/generator_pdf.cpp +++ b/generators/poppler/generator_pdf.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 - if ( event->type() != TGE_DATAREADY_ID ) + if ( e->type() != TGE_DATAREADY_ID ) return; + QCustomEvent *event = static_cast(e); + #if 0 // check if thread is running (has to be stopped now) if ( generatorThread->running() ) diff --git a/generators/poppler/generator_pdf.h b/generators/poppler/generator_pdf.h index e01a9302c..9250f3405 100644 --- a/generators/poppler/generator_pdf.h +++ b/generators/poppler/generator_pdf.h @@ -120,7 +120,7 @@ class PDFGenerator : public Generator TextPage * fastTextPage (KPDFPage * page); // (async related) receive data from the generator thread - void customEvent( QCustomEvent * ); + void customEvent( QEvent * ); // xpdf dependant stuff QMutex docLock; diff --git a/ui/toc.cpp b/ui/toc.cpp index 95cb72562..1f08d7243 100644 --- a/ui/toc.cpp +++ b/ui/toc.cpp @@ -59,8 +59,8 @@ TOC::TOC(QWidget *parent, KPDFDocument *document) : K3ListView(parent), m_docume setRootIsDecorated(true); setResizeMode(AllColumns); setAllColumnsShowFocus(true); - connect(this, SIGNAL(clicked(QListViewItem *)), this, SLOT(slotExecuted(QListViewItem *))); - connect(this, SIGNAL(returnPressed(QListViewItem *)), this, SLOT(slotExecuted(QListViewItem *))); + connect(this, SIGNAL(clicked(Q3ListViewItem *)), this, SLOT(slotExecuted(Q3ListViewItem *))); + connect(this, SIGNAL(returnPressed(Q3ListViewItem *)), this, SLOT(slotExecuted(Q3ListViewItem *))); } TOC::~TOC()