________________________________________________________________________
r420358 | aacid | 2005_05_31 23:30:21 |0200 (Tue, 31 May 2005) | 2 lines

i'm able to see a thumbnail now :_)

________________________________________________________________________
Index: core/document.cpp
===================================================================
--- core/document.cpp	(revision 420357)
+++ core/document.cpp	(working copy)
@@ -1218,7 +1218,9 @@
 
 int KPDFDocument::getFreeMemory()
 {
-#ifdef __linux__
+#warning this hangs, check why
+#if 0
+//#ifdef __linux__
     // if /proc/meminfo doesn't exist, return MEMORY FULL
     QFile memFile( "/proc/meminfo" );
     if ( !memFile.open( IO_ReadOnly ) )
Index: core/generator_pdf/generator_pdf.cpp
===================================================================
--- core/generator_pdf/generator_pdf.cpp	(revision 420357)
+++ core/generator_pdf/generator_pdf.cpp	(working copy)
@@ -895,12 +895,14 @@
 
 
 
-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<QCustomEvent *>(e);
+
 #if 0
     // check if thread is running (has to be stopped now)
     if ( generatorThread->running() )
@@ -1100,4 +1102,5 @@
     QCustomEvent * readyEvent = new QCustomEvent( TGE_DATAREADY_ID );
     readyEvent->setData( d->currentRequest );
     QApplication::postEvent( d->generator, readyEvent );
+    kdDebug() << "UEEEEEE GENERATED" << endl;
 }
Index: core/generator_pdf/generator_pdf.h
===================================================================
--- core/generator_pdf/generator_pdf.h	(revision 420357)
+++ core/generator_pdf/generator_pdf.h	(working copy)
@@ -97,7 +97,7 @@
         // private function for creating the transition information
         void addTransition( int pageNumber, KPDFPage * page );
         // (async related) receive data from the generator thread
-        void customEvent( QCustomEvent * );
+        void customEvent( QEvent * );
 
         // xpdf dependant stuff
         QMutex docLock;