[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4/kdegraphics/kpdf/core
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2005-05-31 21:30:30
Message-ID: 1117575030.722903.6745.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 420358 by aacid:

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


 M  +3 -1      document.cpp  
 M  +5 -2      generator_pdf/generator_pdf.cpp  
 M  +1 -1      generator_pdf/generator_pdf.h  


--- branches/work/kde4/kdegraphics/kpdf/core/document.cpp #420357:420358
@@ -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 ) )
--- branches/work/kde4/kdegraphics/kpdf/core/generator_pdf/generator_pdf.cpp #420357:420358
@@ -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;
 }
--- branches/work/kde4/kdegraphics/kpdf/core/generator_pdf/generator_pdf.h #420357:420358
@@ -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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic