Hello community,

here is the log from the commit of package krunner for openSUSE:Factory checked 
in at 2019-07-26 12:20:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/krunner (Old)
 and      /work/SRC/openSUSE:Factory/.krunner.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "krunner"

Fri Jul 26 12:20:04 2019 rev:66 rq:715904 version:5.60.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/krunner/krunner.changes  2019-06-22 
11:14:06.732750891 +0200
+++ /work/SRC/openSUSE:Factory/.krunner.new.4126/krunner.changes        
2019-07-26 12:20:06.506651912 +0200
@@ -1,0 +2,11 @@
+Sun Jul 14 06:41:39 UTC 2019 - [email protected]
+
+- Update to 5.60.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/kde-frameworks-5.60.0.php
+- Changes since 5.59.0:
+  * Don't delay emission of matchesChanged indefinitely
+  * Install in new logging directory when we use kf5 5.59.0
+
+-------------------------------------------------------------------

Old:
----
  krunner-5.59.0.tar.xz

New:
----
  krunner-5.60.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ krunner.spec ++++++
--- /var/tmp/diff_new_pack.Qod3Ea/_old  2019-07-26 12:20:07.142650144 +0200
+++ /var/tmp/diff_new_pack.Qod3Ea/_new  2019-07-26 12:20:07.142650144 +0200
@@ -17,13 +17,13 @@
 
 
 %define lname   libKF5Runner5
-%define _tar_path 5.59
+%define _tar_path 5.60
 # Full KF5 version (e.g. 5.33.0)
 %{!?_kf5_version: %global _kf5_version %{version}}
 # Last major and minor KF5 version (e.g. 5.33)
 %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | 
awk -F. '{print $1"."$2}')}
 Name:           krunner
-Version:        5.59.0
+Version:        5.60.0
 Release:        0
 Summary:        Plugins responsible for better integration of Qt applications 
in KDE Workspace
 License:        LGPL-2.1-or-later

++++++ krunner-5.59.0.tar.xz -> krunner-5.60.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.59.0/CMakeLists.txt 
new/krunner-5.60.0/CMakeLists.txt
--- old/krunner-5.59.0/CMakeLists.txt   2019-06-01 18:40:11.000000000 +0200
+++ new/krunner-5.60.0/CMakeLists.txt   2019-07-06 15:17:29.000000000 +0200
@@ -1,12 +1,12 @@
 cmake_minimum_required(VERSION 3.5)
 
-set(KF5_VERSION "5.59.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.59.0") # handled by release scripts
+set(KF5_VERSION "5.60.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.60.0") # handled by release scripts
 project(KRunner VERSION ${KF5_VERSION})
 
 # ECM setup
 include(FeatureSummary)
-find_package(ECM 5.59.0  NO_MODULE)
+find_package(ECM 5.60.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
@@ -34,7 +34,7 @@
 )
 
 # Dependencies
-set(REQUIRED_QT_VERSION 5.10.0)
+set(REQUIRED_QT_VERSION 5.11.0)
 
 find_package(Qt5 ${REQUIRED_QT_VERSION} NO_MODULE REQUIRED Gui Widgets Quick)
 
@@ -98,7 +98,7 @@
         COMPONENT Devel)
 
     # contains list of debug categories, for kdebugsettings
-install(FILES krunner.categories DESTINATION ${KDE_INSTALL_CONFDIR})
+install(FILES krunner.categories  DESTINATION  
${KDE_INSTALL_LOGGINGCATEGORIESDIR})
 
 
 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/krunner-5.59.0/src/runnermanager.cpp 
new/krunner-5.60.0/src/runnermanager.cpp
--- old/krunner-5.59.0/src/runnermanager.cpp    2019-06-01 18:40:11.000000000 
+0200
+++ new/krunner-5.60.0/src/runnermanager.cpp    2019-07-06 15:17:29.000000000 
+0200
@@ -21,6 +21,7 @@
 
 #include "runnermanager.h"
 
+#include <QElapsedTimer>
 #include <QMutex>
 #include <QTimer>
 #include <QCoreApplication>
@@ -74,6 +75,10 @@
         QObject::connect(&matchChangeTimer, SIGNAL(timeout()), q, 
SLOT(matchesChanged()));
         QObject::connect(&context, SIGNAL(matchesChanged()), q, 
SLOT(scheduleMatchesChanged()));
         QObject::connect(&delayTimer, SIGNAL(timeout()), q, 
SLOT(unblockJobs()));
+
+        // Set up tracking of the last time matchesChanged was signalled
+        lastMatchChangeSignalled.start();
+        QObject::connect(q, &RunnerManager::matchesChanged, q, [&] { 
lastMatchChangeSignalled.restart(); });
     }
 
     ~RunnerManagerPrivate()
@@ -84,7 +89,12 @@
 
     void scheduleMatchesChanged()
     {
-        matchChangeTimer.start(100);
+        if(lastMatchChangeSignalled.hasExpired(250)) {
+            matchChangeTimer.stop();
+            emit q->matchesChanged(context.matches());
+        } else {
+            matchChangeTimer.start(250 - lastMatchChangeSignalled.elapsed());
+        }
     }
 
     void matchesChanged()
@@ -430,6 +440,7 @@
     RunnerContext context;
     QTimer matchChangeTimer;
     QTimer delayTimer; // Timer to control when to run slow runners
+    QElapsedTimer lastMatchChangeSignalled;
     QHash<QString, AbstractRunner*> runners;
     QHash<QString, QString> advertiseSingleRunnerIds;
     AbstractRunner* currentSingleRunner;


Reply via email to