summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2015-05-30 14:02:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2015-05-30 14:03:11 +0900
commit0783a62488145751b9aa2fd971ef4f94ff262563 (patch)
tree1e856f1e3512cee26326f703b9e1fe267f554119
parentb780cd5e31518a052e361d480d2dcbd50637c0e8 (diff)
downloaddigikam-0783a62488145751b9aa2fd971ef4f94ff262563.tar.gz
digikam-0783a62488145751b9aa2fd971ef4f94ff262563.zip
Fixed delay in slideshow from toolbar button. This resolves bug 2306
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 2fb9f1c2a1e057d95e205873a1ef92d56c2f4de0)
-rw-r--r--digikam/digikam/digikamview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/digikam/digikam/digikamview.cpp b/digikam/digikam/digikamview.cpp
index 48dc1d25..29602829 100644
--- a/digikam/digikam/digikamview.cpp
+++ b/digikam/digikam/digikamview.cpp
@@ -33,6 +33,7 @@
#include <tqlabel.h>
#include <tqimage.h>
#include <tqevent.h>
+#include <tqeventloop.h>
#include <tqapplication.h>
#include <tqsplitter.h>
#include <tqtimer.h>
@@ -1542,7 +1543,7 @@ void DigikamView::slideShow(ImageInfoList &infoList)
settings.pictInfoMap.insert(info->kurl(), pictInfo);
emit signalProgressValue((int)((i++/cnt)*100.0));
- kapp->processEvents();
+ kapp->eventLoop()->processEvents(TQEventLoop::AllEvents & ~TQEventLoop::WaitForMore);
}
emit signalProgressBarMode(StatusProgressBar::TextMode, TQString());