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

List:       kde-commits
Subject:    branches/kpdf/annotations/kdegraphics/kpdf/ui
From:       Enrico Ros <rosenric () dei ! unipd ! it>
Date:       2005-07-17 15:30:18
Message-ID: 1121614218.532937.16585.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 435592 by eros:

Set the workingCursor() while generating pages (not when switching to
cached ones).


 M  +5 -0      presentationwidget.cpp  


--- branches/kpdf/annotations/kdegraphics/kpdf/ui/presentationwidget.cpp \
#435591:435592 @@ -446,9 +446,14 @@
     // notifyPixmapChanged call or else we can proceed to pixmap generation
     if ( !frame->page->hasPixmap( PRESENTATION_ID, pixW, pixH ) )
     {
+        // operation will take long: set busy cursor
+        QApplication::setOverrideCursor( KCursor::workingCursor() );
+        // request the pixmap
         QValueList< PixmapRequest * > request;
         request.push_back( new PixmapRequest( PRESENTATION_ID, m_frameIndex, pixW, \
pixH, PRESENTATION_PRIO ) );  m_document->requestPixmaps( request );
+        // restore cursor
+        QApplication::restoreOverrideCursor();
     }
     else
     {


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

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