Hello community,

here is the log from the commit of package knotifyconfig for openSUSE:Factory 
checked in at 2019-05-21 10:30:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/knotifyconfig (Old)
 and      /work/SRC/openSUSE:Factory/.knotifyconfig.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "knotifyconfig"

Tue May 21 10:30:40 2019 rev:66 rq:703369 version:5.58.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/knotifyconfig/knotifyconfig.changes      
2019-04-19 21:23:42.187822186 +0200
+++ /work/SRC/openSUSE:Factory/.knotifyconfig.new.5148/knotifyconfig.changes    
2019-05-21 10:30:42.135429714 +0200
@@ -1,0 +2,10 @@
+Wed May 15 18:16:17 UTC 2019 - [email protected]
+
+- Update to 5.58.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/kde-frameworks-5.58.0.php
+- Changes since 5.57.0:
+  * [knotifyconfig] make it compile without foreach
+
+-------------------------------------------------------------------

Old:
----
  knotifyconfig-5.57.0.tar.xz

New:
----
  knotifyconfig-5.58.0.tar.xz

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

Other differences:
------------------
++++++ knotifyconfig.spec ++++++
--- /var/tmp/diff_new_pack.ZKXhGG/_old  2019-05-21 10:30:42.823429450 +0200
+++ /var/tmp/diff_new_pack.ZKXhGG/_new  2019-05-21 10:30:42.823429450 +0200
@@ -17,14 +17,14 @@
 
 
 %define lname   libKF5NotifyConfig5
-%define _tar_path 5.57
+%define _tar_path 5.58
 # 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}')}
 %bcond_without lang
 Name:           knotifyconfig
-Version:        5.57.0
+Version:        5.58.0
 Release:        0
 Summary:        Configuration dialog for desktop notifications
 License:        LGPL-2.1-or-later

++++++ knotifyconfig-5.57.0.tar.xz -> knotifyconfig-5.58.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/knotifyconfig-5.57.0/CMakeLists.txt 
new/knotifyconfig-5.58.0/CMakeLists.txt
--- old/knotifyconfig-5.57.0/CMakeLists.txt     2019-04-07 09:30:54.000000000 
+0200
+++ new/knotifyconfig-5.58.0/CMakeLists.txt     2019-05-07 13:26:39.000000000 
+0200
@@ -1,12 +1,12 @@
 cmake_minimum_required(VERSION 3.5)
 
-set(KF5_VERSION "5.57.0") # handled by release scripts
-set(KF5_DEP_VERSION "5.57.0") # handled by release scripts
+set(KF5_VERSION "5.58.0") # handled by release scripts
+set(KF5_DEP_VERSION "5.58.0") # handled by release scripts
 project(KNotifyConfig VERSION ${KF5_VERSION})
 
 # Dependencies
 include(FeatureSummary)
-find_package(ECM 5.57.0  NO_MODULE)
+find_package(ECM 5.58.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)
 
@@ -56,6 +56,8 @@
 if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
     ki18n_install(po)
 endif()
+#We can't activate it as it depend against phonon but it builds fine without it
+#add_definitions(-DQT_NO_FOREACH)
 add_subdirectory(src)
 if(BUILD_TESTING)
   add_subdirectory(tests)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/knotifyconfig-5.57.0/po/zh_CN/knotifyconfig5.po 
new/knotifyconfig-5.58.0/po/zh_CN/knotifyconfig5.po
--- old/knotifyconfig-5.57.0/po/zh_CN/knotifyconfig5.po 2019-04-07 
09:30:54.000000000 +0200
+++ new/knotifyconfig-5.58.0/po/zh_CN/knotifyconfig5.po 2019-05-07 
13:26:39.000000000 +0200
@@ -15,8 +15,8 @@
 "Project-Id-Version: kdeorg\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n";
 "POT-Creation-Date: 2018-08-16 09:05+0200\n"
-"PO-Revision-Date: 2019-03-07 09:22\n"
-"Last-Translator: guoyunhe <[email protected]>\n"
+"PO-Revision-Date: 2019-05-05 22:21\n"
+"Last-Translator: Guo Yunhe (guoyunhe)\n"
 "Language-Team: Chinese Simplified\n"
 "Language: zh_CN\n"
 "MIME-Version: 1.0\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/knotifyconfig-5.57.0/src/knotifyconfigactionswidget.cpp 
new/knotifyconfig-5.58.0/src/knotifyconfigactionswidget.cpp
--- old/knotifyconfig-5.57.0/src/knotifyconfigactionswidget.cpp 2019-04-07 
09:30:54.000000000 +0200
+++ new/knotifyconfig-5.58.0/src/knotifyconfigactionswidget.cpp 2019-05-07 
13:26:39.000000000 +0200
@@ -138,7 +138,7 @@
     const QString soundFilename = m_ui.Sound_select->text();
     QUrl soundURL;
     const auto dataLocations = 
QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation);
-    foreach (const QString &dataLocation, dataLocations) {
+    for (const QString &dataLocation : dataLocations) {
         soundURL = QUrl::fromUserInput(soundFilename,
                                        dataLocation + 
QStringLiteral("/sounds"),
                                        QUrl::AssumeLocalFile);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/knotifyconfig-5.57.0/src/knotifyeventlist.cpp 
new/knotifyconfig-5.58.0/src/knotifyeventlist.cpp
--- old/knotifyconfig-5.57.0/src/knotifyeventlist.cpp   2019-04-07 
09:30:54.000000000 +0200
+++ new/knotifyconfig-5.58.0/src/knotifyeventlist.cpp   2019-05-07 
13:26:39.000000000 +0200
@@ -75,7 +75,7 @@
 
     int iconWidth = option.decorationSize.width();
     int iconHeight = option.decorationSize.height();
-    foreach (const QIcon &icon, iconList) {
+    for (const QIcon &icon : qAsConst(iconList)) {
         icon.paint(painter, rect.left() + mc_x + 4, rect.top() + 
(rect.height() - iconHeight) / 2, iconWidth, iconHeight);
         mc_x += iconWidth + 4;
     }
@@ -125,7 +125,7 @@
     QRegExp rx(QStringLiteral("^Event/([^/]*)$"));
     conflist = conflist.filter(rx);
 
-    foreach (const QString &group, conflist) {
+    for (const QString &group : qAsConst(conflist)) {
         KConfigGroup cg(config, group);
         rx.indexIn(group);
         QString id = rx.cap(1);
@@ -143,7 +143,8 @@
 
         if (loadDefaults) {
             KConfigGroup g(config, QStringLiteral("Event/") + id);
-            foreach(const QString &entry, g.keyList()) {
+            const auto keyList = g.keyList();
+            for (const QString &entry : keyList) {
                 g.revertToDefault(entry);
             }
         }
@@ -156,7 +157,7 @@
 
 void KNotifyEventList::save()
 {
-    foreach (KNotifyEventListItem *it, m_elements) {
+    for (KNotifyEventListItem *it : qAsConst(m_elements)) {
         it->save();
     }
     config->sync();
@@ -165,7 +166,7 @@
 bool KNotifyEventList::disableAllSounds()
 {
     bool changed = false;
-    foreach (KNotifyEventListItem *it, m_elements) {
+    for (KNotifyEventListItem *it : qAsConst(m_elements)) {
          QStringList actions = 
it->configElement()->readEntry(QStringLiteral("Action")).split(QLatin1Char('|'));
          if (actions.removeAll(QStringLiteral("Sound"))) {
              it->configElement()->writeEntry(QStringLiteral("Action"), 
actions.join(QLatin1Char('|')));
@@ -202,7 +203,7 @@
 
 void KNotifyEventList::updateAllItems()
 {
-    foreach (KNotifyEventListItem *it, m_elements) {
+    for (KNotifyEventListItem *it : qAsConst(m_elements)) {
         it->update();
     }
 }


Reply via email to