aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-08 15:45:49 -0400
committerKen Moore <moorekou@gmail.com>2015-10-08 15:45:49 -0400
commit2d267dd458c0a6f947d5e9bcb26deacde64e5f29 (patch)
treef9da0c289652379ca23d35c1ec254db8e61b74b6
parentFix a bug in lumina-fm where launching it from the CLI with invalid arguments... (diff)
downloadlumina-2d267dd458c0a6f947d5e9bcb26deacde64e5f29.tar.gz
lumina-2d267dd458c0a6f947d5e9bcb26deacde64e5f29.tar.bz2
lumina-2d267dd458c0a6f947d5e9bcb26deacde64e5f29.zip
Make sure that when loading thumbnails, it only runs processEvents every 3 items (speeds things up quite a bit).
-rw-r--r--lumina-fm/widgets/DirWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-fm/widgets/DirWidget.cpp b/lumina-fm/widgets/DirWidget.cpp
index 728adc96..5b994a85 100644
--- a/lumina-fm/widgets/DirWidget.cpp
+++ b/lumina-fm/widgets/DirWidget.cpp
@@ -606,7 +606,7 @@ void DirWidget::startLoadThumbs(){
QListWidgetItem *it = listWidget->findItems(needThumbs[i], Qt::MatchExactly).first();
it->setIcon(QIcon( QPixmap(it->whatsThis().section("::::",1,100)).scaled(listWidget->iconSize(),Qt::IgnoreAspectRatio, Qt::FastTransformation) ) );
}
- QApplication::processEvents();
+ if(i%3==0){ QApplication::processEvents(); } // do 3 at a time
}
}
bgstack15