Summary:
Allows
* projects linking to KItemModels to hide deprecated API up to a
given version or silence deprecation warnings after a given version,
using
* -DKITEMMODELS_DISABLE_DEPRECATED_BEFORE_AND_AT
* -DKITEMMODELS_NO_DEPRECATED
* -DKITEMMODELS_DEPRECATED_WARNINGS_SINCE
* -DKITEMMODELS_NO_DEPRECATED_WARNINGS
or
* -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT
* -DKF_NO_DEPRECATED
* -DKF_DEPRECATED_WARNINGS_SINCE
* -DKF_NO_DEPRECATED_WARNINGS
* to build KItemModels optionally with deprecated API excluded from
the build, using "EXCLUDE_DEPRECATED_BEFORE_AND_AT" cmake argument.
Test Plan:
Builds with EXCLUDE_DEPRECATED_BEFORE_AND_AT set to 0, 4.8.0,
CURRENT.
Reviewers: #frameworks, dfaure, mlaurent
Reviewed By: mlaurent
Subscribers: kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D24600
Summary: For eventual use in a KItemModels QML plugin
Test Plan:
Compliles.
Used it in a QML project (exported elsewhere)
Seemed to work
Subscribers: kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D22859
Summary: make it compile without foreach
Test Plan: autotest ok
Reviewers: dfaure
Reviewed By: dfaure
Subscribers: kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D19778
This can be useful for setting up column delegates at the right place,
no matter what the column mapping actually is:
tree->setItemDelegateForColumn(reorderProxy->proxyColumnForSourceColumn(MySourceColumn), ...)
CCMAIL: jesper.pedersen@kdab.com
This test was testing for something that will never work, knowing that
it will never work; it's just that it failed silently before and it even
asserts now. It makes no sense to keep this.