Stephen Kelly
217610b8cb
KLinkItemSelectionModel: Make the linked selection model settable
10 years ago
Stephen Kelly
ea6222323a
KLinkItemSelectionModel: Handle changes to the selectionModel model
10 years ago
Stephen Kelly
49609b8b53
KSelectionProxyModel: Fix iteration bug
...
Two bugs in one line of code. This exists since the class was introduced, and
can result in an incomplete selection mapping, and strange behavior.
10 years ago
Stephen Kelly
e92e367b8f
Reset KSelectionProxyModel state when needed
...
When the model of the selectionModel is changed, it is necessary to
reset the proxy and clear any selection state.
This amends commit v5.9.0~5 (KSPM: Connect properly to the source model if it
is changed., 2015-03-12)
10 years ago
Stephen Kelly
a0e309b403
Add a property indicating whether the models form a connected chain.
...
Replace existing asserts with a query and notification API. This makes
the class more suitable for use in QML.
10 years ago
Stephen Kelly
0c9e6cf6c8
Add unit test for KModelIndexProxyMapper.
10 years ago
Andrey Cygankov
1e48795134
Fix most Clazy warnings in KItemModels.
...
Fixed most Clazy warnings in KItemModels.
REVIEW: 126735
10 years ago
David Faure
c123892e29
Move proxymodeltestapp to tests, it's an interactive GUI test program
10 years ago
David Faure
85c7b5781d
fix clang warnings
10 years ago
David Faure
a82ffd5343
Fix wrong QUrl construction from local file
10 years ago
David Faure
b2687816be
Fix KSelectionProxyModel usage in QTableView
...
The proxy would initially say columnCount==0 and would then omit to notify
about the insertion of columns. Simpler to just always have columns, even
when we have 0 rows.
CCBUG: 352369
CCMAIL: steveire@gmail.com
10 years ago
Kevin Funk
7f5b5d4158
Make compile with MSVC2013 again
...
Note: QStringLiteral and multi-line string literals are not possible
with MSVC 2013 and below (known compiler bug/limitation).
Patch by Paul Wulff <paul.wulff@gmail.com>
CCMAIL: montel@kde.org
10 years ago
Montel Laurent
73e876abe3
Use QStringLiteral
11 years ago
David Faure
fad0c43813
KConcatenateRowsProxyModelPrivate: fix handling of layoutChanged.
11 years ago
David Faure
fca1c65bd1
More checking on the selection after sorting.
11 years ago
David Faure
fe0b5826b1
New proxymodel: KConcatenateRowsProxyModel
...
This proxy takes multiple source models and concatenates their rows.
REVIEW: 124644
11 years ago
David Faure
06a48c672a
KExtraColumnsProxyModel: fix bug in sibling() which broke e.g. selections
11 years ago
David Faure
b6ca1f1c84
GIT_SILENT astyle-kdelibs reformatting
11 years ago
Jan Kundrát
4316ecb1b9
Fix build failure with clang 3.4.2
...
autotests/kextracolumnsproxymodeltest.cpp:68:9: error: control may reach end of non-void function [-Werror,-Wreturn-type]
REVIEW: 124385
11 years ago
David Faure
8837e8d2d4
New proxy: KExtraColumnsProxyModel, allows to add columns to an existing model.
...
REVIEW: 124331
11 years ago
David Faure
71d2e8c665
New proxy model: KRearrangeColumnsProxyModel.
...
It supports reordering and hiding columns from the source model.
REVIEW: 124156
11 years ago
David Faure
5dda278d69
Forwardport of KRecursiveFilterProxyModel fixes from KDE/4.14
...
0df92439241a76c6a67efa9485bd95c3c25d63a0 by Christian Mollekopf
445453a6ab79a57f5ed2a94ba35afa36fbb8e325 by myself
+ a fix for the runtime warnings with Qt < 5.5, grabbed from Gammaray's copy.
11 years ago
Stephen Kelly
d65b14a091
KSPM: Connect properly to the source model if it is changed.
11 years ago
Stephen Kelly
7ca4ee3b57
Remove needless metatype registration.
...
QModelIndex is a built-in metatype in Qt 5.
11 years ago
Stephen Kelly
7298c92200
KSPM: Fix setting selection state after source reset.
...
This ammends the parent commit.
11 years ago
Stephen Kelly
41b8a5fc84
KSPM: Fix behavior when a selection is made while resetting.
...
The KSPM should never clear or reset the selection of the
QItemSelectionModel it refers to. It should be a read-only view on
that selection. If the selection changes while the source is being
reset, ignore that selection change. The proxy will clear its own
cached data when it processes the modelReset signal from the model,
and will populate itself with the selection as it is at that point.
11 years ago
Stephen Kelly
9ba41df61b
Rename unit tests which use the ProxyModelTestSuite.
...
Clear the namespace for unit tests which look like normal Qt unit tests.
11 years ago
Stephen Kelly
a2da794f34
Remove obsolete file.
...
It was removed from the CMakeLists.txt in SVN revision 1144232, but
not deleted. It was replaced by kdescendantsproxymodeltest.
11 years ago
Stephen Kelly
0bab0a1b58
Add missing licence header.
11 years ago
Stephen Kelly
dfaaf8b49e
Add missing version check.
11 years ago
Stephen Kelly
dd4fe5eef6
Fix define-check for QtQuickWidgets.
11 years ago
Stephen Kelly
db3d255922
KSPM: Allow constructing KSelectionProxyModel from QML.
...
Follow qtbase commit 7ab29c4e (Allow exposing QItemSelectionModel
to QML, 2015-01-15) by adding a way to default construct it.
11 years ago
Stephen Kelly
8ced53cda1
Trim trailing whitespace.
11 years ago
Stephen Kelly
ad36f4f954
Remove unused variable.
11 years ago
Stephen Kelly
7ff735b4fd
Resolve unused variable warning.
11 years ago
Stephen Kelly
4441b30b46
Resolve a type conversion warning.
11 years ago
Stephen Kelly
017d4013a8
Remove command clearing Qt5Script_FOUND.
...
Used to verify that the code works if it's not found. It does :).
11 years ago
Stephen Kelly
156ec6fc7b
Don't require QtScript to build proxymodeltestapp.
11 years ago
Stephen Kelly
9e8e77cd2f
Make QtScript optional for proxymodeltestapp.
11 years ago
Stephen Kelly
118b6cb872
Handle new QtInfoMsg enum value in switch.
11 years ago
Stephen Kelly
eba8d4f5af
Remove unused variables.
11 years ago
Stephen Kelly
90c712e40f
Remove unused method arguments.
11 years ago
Stephen Kelly
32f6a09917
Use the REQUIRED_QT_VERSION variable to find Qt components.
...
Additional components are needed for the proxymodeltestsuite and
proxymodeltestapp.
11 years ago
Montel Laurent
71270aca51
Remove "/* reimp */"
11 years ago
Kevin Funk
c11efff6fe
Use Q_DECL_OVERRIDE where possible
...
REVIEW: 122542
11 years ago
Alex Merry
c013ac9b4f
Remove NAME_PREFIX argument from ecm_add_tests calls.
12 years ago
Alex Richardson
b3408b7765
Use ecm_add_tests instead of custom macro
...
This fixes running nmake test on Windows
12 years ago
Alex Merry
2fc7aeab83
Make the KSelectionProxyModel unit test pass
...
It looks like Qt4 emitted layoutChanged in circumstances where Qt5 emits
rowsMoved. This could be used to optimize things, but for now we just
act the same way in either case (rebuilding the mapping).
REVIEW: 117777
12 years ago
Stephen Kelly
7cd8252d2c
Add a pedantic mode to modeltest.
...
Cherry-pick of ffd732966d1f2c632d811e8fc378a95aa1456703
This was lost when I updated ModelTest to Qt5.
REVIEW: 117777
12 years ago
Alex Merry
fd6d554d8a
Re-apply Stephen Kelly's modeltest fixes
...
These were lost when I replaced ModelTest with the version from Qt 5.
REVIEW: 117777
12 years ago