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

List:       kde-commits
Subject:    kdebase/konqueror/iconview
From:       Enrico Ros <rosenric () dei ! unipd ! it>
Date:       2004-07-13 15:51:42
Message-ID: 20040713155142.3A96A16B03 () office ! kde ! org
[Download RAW message or body]

CVS commit by eros: 

unwantedRepaints-=2; This removes a couple of wasted repaints that
happened when hitting the refresh button with the previous page still
loading.


  M +8 -0      konq_iconview.cc   1.468


--- kdebase/konqueror/iconview/konq_iconview.cc  #1.467:1.468
@@ -699,5 +699,9 @@ bool KonqKfmIconView::doCloseURL()
 
     m_mimeTypeResolver->m_lstPendingMimeIconItems.clear();
+
+    // stopImagePreview will trigger an immediate repaint, so we avoid this
+    m_pIconView->setUpdatesEnabled( false );
     m_pIconView->stopImagePreview();
+    m_pIconView->setUpdatesEnabled( true );
     return true;
 }
@@ -926,4 +930,8 @@ void KonqKfmIconView::slotCompleted()
 void KonqKfmIconView::slotNewItems( const KFileItemList& entries )
 {
+    // Stop the autorefresh timer since data to display has arrived and will
+    // be drawn in moments
+    if ( m_pTimeoutRefreshTimer && m_pTimeoutRefreshTimer->isActive() )
+        m_pTimeoutRefreshTimer->stop();
     // We need to disable graphics updates on the iconview when
     // inserting items, or else a blank paint operation will be


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

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