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
Summary: Helps to use it together with ModelTest
Reviewers: #frameworks, broulik
Reviewed By: broulik
Subscribers: broulik, kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D13043
Using the new extra-cmake-modules module ECMAddQch (since 5.36.0)
this adds the option to automatically build and install a file
in QCH format with the docs about the public API, which then can be
used e.g. in Qt Assistant, Qt Creator or KDevelop.
Additionally the installed cmake config files will be extended
with a target KF5ItemModels_QCH containing information about how to "link"
into the generated QCH file, which then can be used in the cmake build
system of other libraries building on this library, by
simply listing this target in "LINK_QCHS" of their ecm_add_qch() usage.
And a respective doxygen tag file with all the metadata about the
generated QCH file and used for the "linking" will be created and
installed.
Pass -DBUILD_QCH=ON to cmake to enable this.
Same fix as Stephen Kelly's fix for QIdentityProxyModel in https://codereview.qt-project.org/180390
I tried to write a unittest but QStandardItemModel doesn't support moveRow,
and we don't have all the infrastructure here to force emitting a layoutChange
with specific parents like in the Qt unittests.
This commit, added to the 3 fixes in Qt, fixes crashes when moving folders in kmail.
CCMAIL: steveire@gmail.com
After
int proxyEndRemove = proxyStartRemove;
proxyEndRemove += rc; was adding 0 (empty root)
and then --proxyEndRemove; was making us end up with proxyEndRemove < proxyStartRemove.
REVIEW: 129657