Hello community,

here is the log from the commit of package kcalcore for openSUSE:Factory 
checked in at 2019-04-26 22:47:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kcalcore (Old)
 and      /work/SRC/openSUSE:Factory/.kcalcore.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kcalcore"

Fri Apr 26 22:47:36 2019 rev:43 rq:696225 version:19.04.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kcalcore/kcalcore.changes        2019-03-11 
11:09:26.593441753 +0100
+++ /work/SRC/openSUSE:Factory/.kcalcore.new.5536/kcalcore.changes      
2019-04-26 22:47:39.221545195 +0200
@@ -1,0 +2,34 @@
+Sat Apr 20 06:51:54 UTC 2019 - [email protected]
+
+- Update to 19.04.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/announce-applications-19.04.0.php
+- No code changes since 19.03.90
+
+-------------------------------------------------------------------
+Tue Apr 09 20:54:39 UTC 2019 - [email protected]
+
+- Update to 19.03.90
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/announce-applications-19.04-rc.php
+- Changes since 19.03.80:
+  * Fix compile, KCalCore doesn't depend on Qt5Widgets, so use Qt5Gui instead
+  * Workaround a Qt 5.13 bug
+
+-------------------------------------------------------------------
+Wed Mar 27 06:40:59 UTC 2019 - [email protected]
+
+- Update to 19.03.80
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/announce-applications-19.04-beta.php
+- Changes since 18.12.3:
+  * compile without foreach
+  * We use find_dependency, so we need to include CMakeFindDependencyMacro.
+  * Support static builds
+  * Add property for productId
+  * Fix some clazy warning
+
+-------------------------------------------------------------------

Old:
----
  kcalcore-18.12.3.tar.xz

New:
----
  kcalcore-19.04.0.tar.xz

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

Other differences:
------------------
++++++ kcalcore.spec ++++++
--- /var/tmp/diff_new_pack.3SZsLd/_old  2019-04-26 22:47:39.913544840 +0200
+++ /var/tmp/diff_new_pack.3SZsLd/_new  2019-04-26 22:47:39.917544839 +0200
@@ -21,7 +21,7 @@
 # Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
 %{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print 
$1"."$2}')}
 Name:           kcalcore
-Version:        18.12.3
+Version:        19.04.0
 Release:        0
 Summary:        KDE PIM Libraries: KCalCore
 License:        LGPL-2.1-or-later

++++++ kcalcore-18.12.3.tar.xz -> kcalcore-19.04.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/.gitignore 
new/kcalcore-19.04.0/.gitignore
--- old/kcalcore-18.12.3/.gitignore     2019-02-08 07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/.gitignore     2019-04-05 21:08:23.000000000 +0200
@@ -16,6 +16,6 @@
 Makefile
 avail
 random_seed
-/build/
+/build*/
 CMakeLists.txt.user*
 *.unc-backup*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/CMakeLists.txt 
new/kcalcore-19.04.0/CMakeLists.txt
--- old/kcalcore-18.12.3/CMakeLists.txt 2019-02-08 07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/CMakeLists.txt 2019-04-05 21:08:23.000000000 +0200
@@ -1,12 +1,12 @@
-cmake_minimum_required(VERSION 3.0)
-set(PIM_VERSION "5.10.3")
+cmake_minimum_required(VERSION 3.5)
+set(PIM_VERSION "5.11.0")
 
 project(KCalCore VERSION ${PIM_VERSION})
 
 # ECM setup
-set(KF5_VERSION "5.51.0")
+set(KF5_MIN_VERSION "5.56.0")
 
-find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
+find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${KCalCore_SOURCE_DIR}/cmake)
 
 include(GenerateExportHeader)
@@ -23,7 +23,7 @@
 if(POLICY CMP0053)
   cmake_policy(SET CMP0053 NEW)
 endif()
-set(QT_REQUIRED_VERSION "5.9.0")
+set(QT_REQUIRED_VERSION "5.10.0")
 
 set(KCALENDARCORE_LIB_VERSION ${PIM_VERSION})
 ecm_setup_version(PROJECT VARIABLE_PREFIX KCALCORE
@@ -53,7 +53,14 @@
 )
 
 
-add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
+# workaround for https://bugreports.qt.io/browse/QTBUG-74665 (bug in qt5.13 
reevaluate it)
+if (${Qt5Gui_VERSION} STRGREATER "5.13")
+   MESSAGE(STATUS "Qt version: ${Qt5Gui_VERSION} DISABLE compile without 
deprecated methods. bug QTBUG-74665")
+else()
+   add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
+endif()
+add_definitions(-DQT_NO_FOREACH)
+
 ########### Targets ###########
 add_subdirectory(src)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/KF5CalendarCoreConfig.cmake.in 
new/kcalcore-19.04.0/KF5CalendarCoreConfig.cmake.in
--- old/kcalcore-18.12.3/KF5CalendarCoreConfig.cmake.in 2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/KF5CalendarCoreConfig.cmake.in 2019-04-05 
21:08:23.000000000 +0200
@@ -1,3 +1,9 @@
 @PACKAGE_INIT@
 
+if (NOT @BUILD_SHARED_LIBS@)
+    include(CMakeFindDependencyMacro)
+    list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_LIST_DIR})
+    find_dependency(LibIcal)
+endif()
+
 include("${CMAKE_CURRENT_LIST_DIR}/KF5CalendarCoreTargets.cmake")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testattachment.cpp 
new/kcalcore-19.04.0/autotests/testattachment.cpp
--- old/kcalcore-18.12.3/autotests/testattachment.cpp   2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testattachment.cpp   2019-04-05 
21:08:23.000000000 +0200
@@ -51,7 +51,7 @@
     QCOMPARE(attachment3.size(), attachment2.size());
 
     QByteArray fred("jkajskldfasjfklasjfaskfaskfasfkasfjdasfkasjf");
-    Attachment attachment4(fred, QLatin1String("image/nonsense"));
+    Attachment attachment4(fred, QStringLiteral("image/nonsense"));
     QCOMPARE(fred, attachment4.data());
     QVERIFY(attachment4.isBinary());
     QByteArray ethel("a9fafafjafkasmfasfasffksjklfjau");
@@ -75,7 +75,7 @@
     QTest::addColumn<KCalCore::Attachment::Ptr>("attachment");
 
     Attachment::Ptr nonInline = Attachment::Ptr(new 
Attachment(QStringLiteral("http://www.kde.org";)));
-    Attachment::Ptr inlineAttachment = Attachment::Ptr(new 
Attachment(QByteArray("foo"), QLatin1String("image/nonsense")));
+    Attachment::Ptr inlineAttachment = Attachment::Ptr(new 
Attachment(QByteArray("foo"), QStringLiteral("image/nonsense")));
 
     QTest::newRow("inline") << inlineAttachment;
     QTest::newRow("not inline") << nonInline;
@@ -99,7 +99,7 @@
 void AttachmentTest::testWriteToTempFile()
 {
     QByteArray data("foo");
-    Attachment::Ptr inlineAttachment = Attachment::Ptr(new 
Attachment(data.toBase64(), QLatin1String("image/png")));
+    Attachment::Ptr inlineAttachment = Attachment::Ptr(new 
Attachment(data.toBase64(), QStringLiteral("image/png")));
     Event *event = new Event();
     QString filePath = event->writeAttachmentToTempFile(inlineAttachment);
     QVERIFY(filePath.endsWith(QLatin1String(".png")));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testcreateddatecompat.cpp 
new/kcalcore-19.04.0/autotests/testcreateddatecompat.cpp
--- old/kcalcore-18.12.3/autotests/testcreateddatecompat.cpp    2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testcreateddatecompat.cpp    2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "testcreateddatecompat.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testcreateddatecompat.h 
new/kcalcore-19.04.0/autotests/testcreateddatecompat.h
--- old/kcalcore-18.12.3/autotests/testcreateddatecompat.h      2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testcreateddatecompat.h      2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef TESTCREATEDDATECOMPAT_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testincidence.cpp 
new/kcalcore-19.04.0/autotests/testincidence.cpp
--- old/kcalcore-18.12.3/autotests/testincidence.cpp    2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testincidence.cpp    2019-04-05 
21:08:23.000000000 +0200
@@ -74,34 +74,34 @@
 void IncidenceTest::testSummaryChange()
 {
     Event inc;
-    inc.setSummary(QLatin1String("bla"), false);
+    inc.setSummary(QStringLiteral("bla"), false);
     inc.resetDirtyFields();
 
-    inc.setSummary(QLatin1String("bla"), false);
+    inc.setSummary(QStringLiteral("bla"), false);
     QVERIFY(inc.dirtyFields().empty());
 
-    inc.setSummary(QLatin1String("bla2"), false);
+    inc.setSummary(QStringLiteral("bla2"), false);
     QCOMPARE(inc.dirtyFields(), QSet<IncidenceBase::Field>() << 
IncidenceBase::FieldSummary);
     inc.resetDirtyFields();
 
-    inc.setSummary(QLatin1String("bla2"), true);
+    inc.setSummary(QStringLiteral("bla2"), true);
     QCOMPARE(inc.dirtyFields(), QSet<IncidenceBase::Field>() << 
IncidenceBase::FieldSummary);
 }
 
 void IncidenceTest::testLocationChange()
 {
     Event inc;
-    inc.setLocation(QLatin1String("here"), false);
+    inc.setLocation(QStringLiteral("here"), false);
     inc.resetDirtyFields();
 
-    inc.setLocation(QLatin1String("here"), false);
+    inc.setLocation(QStringLiteral("here"), false);
     QVERIFY(inc.dirtyFields().empty());
 
-    inc.setLocation(QLatin1String("there"), false);
+    inc.setLocation(QStringLiteral("there"), false);
     QCOMPARE(inc.dirtyFields(), QSet<IncidenceBase::Field>() << 
IncidenceBase::FieldLocation);
     inc.resetDirtyFields();
 
-    inc.setLocation(QLatin1String("there"), true);
+    inc.setLocation(QStringLiteral("there"), true);
     QCOMPARE(inc.dirtyFields(), QSet<IncidenceBase::Field>() << 
IncidenceBase::FieldLocation);
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kcalcore-18.12.3/autotests/testoccurrenceiterator.cpp 
new/kcalcore-19.04.0/autotests/testoccurrenceiterator.cpp
--- old/kcalcore-18.12.3/autotests/testoccurrenceiterator.cpp   2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testoccurrenceiterator.cpp   2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "testoccurrenceiterator.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testoccurrenceiterator.h 
new/kcalcore-19.04.0/autotests/testoccurrenceiterator.h
--- old/kcalcore-18.12.3/autotests/testoccurrenceiterator.h     2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testoccurrenceiterator.h     2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef TESTOCCURRENCEITERATOR_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testreadrecurrenceid.cpp 
new/kcalcore-19.04.0/autotests/testreadrecurrenceid.cpp
--- old/kcalcore-18.12.3/autotests/testreadrecurrenceid.cpp     2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testreadrecurrenceid.cpp     2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "testreadrecurrenceid.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testreadrecurrenceid.h 
new/kcalcore-19.04.0/autotests/testreadrecurrenceid.h
--- old/kcalcore-18.12.3/autotests/testreadrecurrenceid.h       2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testreadrecurrenceid.h       2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef TESTREADRECURRENCEID_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/kcalcore-18.12.3/autotests/testrecurrenceexception.cpp 
new/kcalcore-19.04.0/autotests/testrecurrenceexception.cpp
--- old/kcalcore-18.12.3/autotests/testrecurrenceexception.cpp  2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testrecurrenceexception.cpp  2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include "testrecurrenceexception.h"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/autotests/testrecurrenceexception.h 
new/kcalcore-19.04.0/autotests/testrecurrenceexception.h
--- old/kcalcore-18.12.3/autotests/testrecurrenceexception.h    2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/autotests/testrecurrenceexception.h    2019-04-05 
21:08:23.000000000 +0200
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #ifndef TESTRECURRENCEEXCEPTION_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/src/calendar.cpp 
new/kcalcore-19.04.0/src/calendar.cpp
--- old/kcalcore-18.12.3/src/calendar.cpp       2019-02-08 07:52:10.000000000 
+0100
+++ new/kcalcore-19.04.0/src/calendar.cpp       2019-04-05 21:08:23.000000000 
+0200
@@ -863,7 +863,7 @@
 
     const QString uid = incidence->uid();
 
-    foreach (const Incidence::Ptr &i, d->mIncidenceRelations[uid]) {
+    for (const Incidence::Ptr &i : qAsConst(d->mIncidenceRelations[uid])) {
         if (!d->mOrphanUids.contains(i->uid())) {
             d->mOrphans.insert(uid, i);
             d->mOrphanUids.insert(i->uid(), i);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/src/calendar.h 
new/kcalcore-19.04.0/src/calendar.h
--- old/kcalcore-18.12.3/src/calendar.h 2019-02-08 07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/src/calendar.h 2019-04-05 21:08:23.000000000 +0200
@@ -132,6 +132,7 @@
     public IncidenceBase::IncidenceObserver
 {
     Q_OBJECT
+    Q_PROPERTY(QString productId READ productId WRITE setProductId)
 
 public:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kcalcore-18.12.3/src/occurrenceiterator.cpp 
new/kcalcore-19.04.0/src/occurrenceiterator.cpp
--- old/kcalcore-18.12.3/src/occurrenceiterator.cpp     2019-02-08 
07:52:10.000000000 +0100
+++ new/kcalcore-19.04.0/src/occurrenceiterator.cpp     2019-04-05 
21:08:23.000000000 +0200
@@ -111,7 +111,8 @@
                 QHash<QDateTime, Incidence::Ptr> recurrenceIds;
                 QDateTime incidenceRecStart = 
inc->dateTime(Incidence::RoleRecurrenceStart);
                 //const bool isAllDay = inc->allDay();
-                foreach (const Incidence::Ptr &exception, 
calendar.instances(inc)) {
+                const auto lstInstances = calendar.instances(inc);
+                for (const Incidence::Ptr &exception : lstInstances) {
                     if (incidenceRecStart.isValid()) {
                         
recurrenceIds.insert(exception->recurrenceId().toTimeZone(incidenceRecStart.timeZone()),
 exception);
                     }


Reply via email to