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

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

SVN commit 420348 by aacid:

QCustomEvent still exists :-)


 M  +3 -3      generator_pdf.cpp  
 M  +2 -2      generator_pdf.h  


--- branches/work/kde4/kdegraphics/kpdf/core/generator_pdf/generator_pdf.cpp #420347:420348
@@ -894,7 +894,7 @@
 }
 
 
-/*
+
 void PDFGenerator::customEvent( QCustomEvent * event )
 {
     // catch generator 'ready events' only
@@ -906,7 +906,7 @@
     if ( generatorThread->running() )
     {
         // if so, wait for effective thread termination
-        if ( !generatorThread->wait( 9999 /*10s timeout*/ /*) )
+        if ( !generatorThread->wait( 9999 /*10s timeout*/ ) )
         {
             kdWarning() << "PDFGenerator: thread sent 'data available' "
                         << "signal but had problems ending." << endl;
@@ -945,7 +945,7 @@
     ready = true;
     // notify the new generation
     signalRequestDone( request );
-}*/
+}
 
 
 
--- branches/work/kde4/kdegraphics/kpdf/core/generator_pdf/generator_pdf.h #420347:420348
@@ -12,6 +12,7 @@
 #define _KPDF_GENERATOR_PDF_H_
 
 #include <qmutex.h>
+#include <qcoreevent.h>
 #include <qcolor.h>
 #include <qstring.h>
 #include <qthread.h>
@@ -96,8 +97,7 @@
         // private function for creating the transition information
         void addTransition( int pageNumber, KPDFPage * page );
         // (async related) receive data from the generator thread
-#warning QCustomEvent is gone :-/
-//        void customEvent( QCustomEvent * );
+        void customEvent( QCustomEvent * );
 
         // 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