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:02:22 +0900
commit2fb9f1c2a1e057d95e205873a1ef92d56c2f4de0 (patch)
tree95c833fef0dd0009c27704a7d5479bed8abfb19e
parenteb8555ba760cefa6932495c4637c8ebd6d58ba6c (diff)
downloaddigikam-2fb9f1c2a1e057d95e205873a1ef92d56c2f4de0.tar.gz
digikam-2fb9f1c2a1e057d95e205873a1ef92d56c2f4de0.zip
Fixed delay in slideshow from toolbar button. This resolves bug 2306
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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 48dc1d2..2960282 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());