Hello community, here is the log from the commit of package kitemmodels for openSUSE:Factory checked in at 2019-03-21 09:46:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kitemmodels (Old) and /work/SRC/openSUSE:Factory/.kitemmodels.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kitemmodels" Thu Mar 21 09:46:46 2019 rev:64 rq:686750 version:5.56.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kitemmodels/kitemmodels.changes 2019-02-28 21:30:54.565782484 +0100 +++ /work/SRC/openSUSE:Factory/.kitemmodels.new.28833/kitemmodels.changes 2019-03-21 09:46:48.766890456 +0100 @@ -1,0 +2,11 @@ +Sun Mar 10 20:15:36 UTC 2019 - lbeltr...@kde.org + +- Update to 5.56.0 + * New feature release + * For more details please see: + * https://www.kde.org/announcements/kde-frameworks-5.56.0.php +- Changes since 5.55.0: + * Fix example in documentation + * KRearrangeColumnsProxyModel: make the two column-mapping methods public + +------------------------------------------------------------------- Old: ---- kitemmodels-5.55.0.tar.xz New: ---- kitemmodels-5.56.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kitemmodels.spec ++++++ --- /var/tmp/diff_new_pack.34rrGB/_old 2019-03-21 09:46:49.650890252 +0100 +++ /var/tmp/diff_new_pack.34rrGB/_new 2019-03-21 09:46:49.650890252 +0100 @@ -18,14 +18,14 @@ %define clang_sonum 3.8 %define lname libKF5ItemModels5 -%define _tar_path 5.55 +%define _tar_path 5.56 # 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_with python Name: kitemmodels -Version: 5.55.0 +Version: 5.56.0 Release: 0 Summary: Set of item models extending the Qt model-view framework License: LGPL-2.1-or-later ++++++ kitemmodels-5.55.0.tar.xz -> kitemmodels-5.56.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kitemmodels-5.55.0/CMakeLists.txt new/kitemmodels-5.56.0/CMakeLists.txt --- old/kitemmodels-5.55.0/CMakeLists.txt 2019-02-02 18:22:22.000000000 +0100 +++ new/kitemmodels-5.56.0/CMakeLists.txt 2019-03-02 14:27:40.000000000 +0100 @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.5) -set(KF5_VERSION "5.55.0") # handled by release scripts +set(KF5_VERSION "5.56.0") # handled by release scripts project(KItemModels VERSION ${KF5_VERSION}) include(FeatureSummary) -find_package(ECM 5.55.0 NO_MODULE) +find_package(ECM 5.56.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) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kitemmodels-5.55.0/autotests/krearrangecolumnsproxymodeltest.cpp new/kitemmodels-5.56.0/autotests/krearrangecolumnsproxymodeltest.cpp --- old/kitemmodels-5.55.0/autotests/krearrangecolumnsproxymodeltest.cpp 2019-02-02 18:22:22.000000000 +0100 +++ new/kitemmodels-5.56.0/autotests/krearrangecolumnsproxymodeltest.cpp 2019-03-02 14:27:40.000000000 +0100 @@ -88,6 +88,27 @@ QCOMPARE(pm.columnCount(), 0); } + void shouldMapColumns() + { + // Given a rearrange-columns proxy + KRearrangeColumnsProxyModel pm; + pm.setSourceColumns(QVector<int>() << 3 << 1 << 0); + + // When using that proxy on top of an empty source model + QStandardItemModel sourceModel; + sourceModel.setColumnCount(4); + pm.setSourceModel(&sourceModel); + + // Then the mapping methods should work + QCOMPARE(pm.proxyColumnForSourceColumn(0), 2); + QCOMPARE(pm.proxyColumnForSourceColumn(1), 1); + QCOMPARE(pm.proxyColumnForSourceColumn(2), -1); + QCOMPARE(pm.proxyColumnForSourceColumn(3), 0); + QCOMPARE(pm.sourceColumnForProxyColumn(0), 3); + QCOMPARE(pm.sourceColumnForProxyColumn(1), 1); + QCOMPARE(pm.sourceColumnForProxyColumn(2), 0); + } + void shouldShowNothingIfNoRows() { // Given a rearrange-columns proxy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kitemmodels-5.55.0/src/krearrangecolumnsproxymodel.h new/kitemmodels-5.56.0/src/krearrangecolumnsproxymodel.h --- old/kitemmodels-5.55.0/src/krearrangecolumnsproxymodel.h 2019-02-02 18:22:22.000000000 +0100 +++ new/kitemmodels-5.56.0/src/krearrangecolumnsproxymodel.h 2019-03-02 14:27:40.000000000 +0100 @@ -90,8 +90,17 @@ /// @reimp QModelIndex sibling(int row, int column, const QModelIndex &idx) const override; -private: + /** + * Returns the proxy column for the given source column + * or -1 if the source column isn't shown in the proxy. + * @since 5.56 + */ int proxyColumnForSourceColumn(int sourceColumn) const; + + /** + * Returns the source column for the given proxy column. + * @since 5.56 + */ int sourceColumnForProxyColumn(int proxyColumn) const; private: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kitemmodels-5.55.0/src/krecursivefilterproxymodel.h new/kitemmodels-5.56.0/src/krecursivefilterproxymodel.h --- old/kitemmodels-5.55.0/src/krecursivefilterproxymodel.h 2019-02-02 18:22:22.000000000 +0100 +++ new/kitemmodels-5.56.0/src/krecursivefilterproxymodel.h 2019-03-02 14:27:40.000000000 +0100 @@ -58,7 +58,7 @@ - I @endverbatim - That is, even though D and E match the filter, they are not represented in the proxy model because B does not + That is, even though D and G match the filter, they are not represented in the proxy model because B does not match the filter and is filtered out. The KRecursiveFilterProxyModel checks child indexes for filter matching and ensures that all matching indexes