Grecko
f08fd2eaed
feat: Add FilterRole role type
2018-09-30 03:00:36 +02:00
Grecko
2b3a368ae1
feat: Add FilterSorter sorter type
2018-09-29 12:02:15 +02:00
Grecko
1ae65bca74
misc: set filters as the default property of SwitchRole
2018-09-28 22:16:41 +02:00
Grecko
51c6a62f4d
fix SwitchRole compilation
...
closes #54
2018-08-28 00:13:24 +02:00
Grecko
3a55ea0d8c
feat: Add RegExpRole proxy role type
...
Add support for multiple roles for one proxy role.
2018-08-08 01:37:20 +02:00
oKcerG
d2772bd6e4
fix: compilation error due to bad includes
...
oops
2018-04-30 10:43:46 +02:00
Grecko
88b5ba4260
refactor: move proxyroles in separate files
2018-04-30 03:16:20 +02:00
Grecko
2ee1936545
refactor: move sorters in separate files
2018-04-30 03:15:52 +02:00
Grecko
df41e94e45
refactor: move filters in separate files
2018-04-30 03:14:08 +02:00
Grecko
febeade02b
refactor: Add container interfaces for filters, sorters and roles
2018-04-30 03:13:46 +02:00
Grecko
d844e7dcfd
test: add tests for Filter containers
2018-04-24 01:49:08 +02:00
Grecko
8499099464
fix: Handle source model with no roles better
...
They are now handled in setSourceModel instead of resetInternalData
Fixes #46
2018-03-22 23:41:36 +01:00
Grecko
9c3e57c02e
fix: don't call sourceData with an invalid role
...
This is related to bug #46
2018-03-22 23:36:59 +01:00
Grecko
6ff055d47d
test: Add a test case for sorting on a model with no initial roles
...
This cause a crash when adding 2 rows to an empty ListModel
2018-03-22 19:16:00 +01:00
Grecko
6211989a48
test: Simplify IndexFilter tests
2017-12-01 00:40:52 +01:00
Kenn Sebesta
18218454e2
Include checkbox in README.md
...
This includes the missing checkbox component for the sorting demo.
2017-11-21 19:04:22 +01:00
oKcerG
d1c46fd13f
doc: Add link to showcase in readme
2017-11-21 18:41:38 +01:00
Grecko
23faaeea22
doc: Regenerate the doc
2017-10-13 01:10:47 +02:00
mitchcurtis
26e2a983eb
Fix ExpressionSorter docs ( #45 )
2017-10-13 00:50:57 +02:00
Grecko
15ccba1f14
doc: Regenerate the doc
2017-09-26 22:34:19 +02:00
Grecko
2a439497ae
doc: document the proxy role types
2017-09-26 22:28:07 +02:00
Grecko
38903de8f8
feat: add ExpressionRole proxy role type
2017-09-26 22:28:06 +02:00
Grecko
4dc2eb1d7a
fix: fix StringSorter case sensitive test
2017-09-26 22:28:05 +02:00
Grecko
d19e22fd54
feat: add a defaultValue property to SwitchRole
2017-09-26 22:28:05 +02:00
Grecko
9a475e52ac
feature: Add SwitchRole proxy role type
2017-09-17 21:16:26 +02:00
Grecko
94a08b49ec
refactor: Refactor Sorter and Fitler to be consistent with ProxyRole
...
remove the friendness with QQSFPM
2017-09-17 21:01:53 +02:00
Grecko
7a2e70b980
fix: emit modelReset signal after a ProxyRole changes its name
...
refactor proxy roles tests
2017-09-17 15:54:56 +02:00
Grecko
dc154fd46b
fix: correctly emit dataChanged
...
emit dataChanged for all of our proxyRoles when another roles has changed
2017-09-16 19:33:22 +02:00
Grecko
c81dcafc35
fix: Allow filters to filters on proxy roles
2017-09-16 19:22:57 +02:00
Grecko
5b071c9526
feat: Add JoinRole proxy role type
2017-09-16 16:53:11 +02:00
Grecko
48ac2bfcd7
test: Add tests for the proxy role functionality
2017-09-16 16:50:39 +02:00
Unknown
400f453d91
feature: Add new basic ProxyRole functionality
...
Add a base ProxyRole type and proxyRoles handling
2017-09-16 16:44:56 +02:00
oKcerG
25b506a3d7
Update README.md
2017-09-12 01:50:42 +02:00
oKcerG
e5b90a47df
Update README.md
2017-09-12 01:46:41 +02:00
Pierre-Yves Siret
3f52c81299
doc: Regenerate documentation for StringSorter
2017-09-12 01:29:47 +02:00
Pierre-Yves Siret
9e37e58eef
feature: add StringSorter type
2017-09-12 01:28:28 +02:00
Pierre-Yves Siret
2f555860ff
tests: Fix order of values in assert message
2017-09-12 00:02:18 +02:00
Pierre-Yves Siret
27af0544ec
test: add more tests for sorters
...
Test RoleSorter and add a test to check tie resolutions in sorters
2017-09-11 21:40:59 +02:00
Pierre-Yves Siret
e260eac830
[fix] Fix IndexFilter bug with negative limits
2017-09-03 18:11:46 +02:00
Pierre-Yves Siret
a96701bb85
[test] Add a new test revealing a bug in IndexFilter
2017-09-03 17:43:17 +02:00
Pierre-Yves Siret
84519a2a8e
[doc] Generate documentation
2017-09-02 18:32:31 +02:00
Pierre-Yves Siret
9009d18554
Merge branch 'feature/filters-and-sorters'
2017-09-02 18:31:04 +02:00
Pierre-Yves Siret
14c0acc993
[doc] Adding some documentation
...
🔥 📖
2017-09-02 18:10:01 +02:00
Pierre-Yves Siret
985c5b0e55
refactor: ascendingSortOrder property becomes sortOrder
...
Changed type from a bool to the Qt::SortOrder enum.
It's still possible to use the ascendingSortOrder bool property (for
now).
2017-09-02 16:07:22 +02:00
Pierre-Yves Siret
1c0731a38c
refactor: copy PatternSyntax enum to RegExpFilter
2017-09-02 16:03:34 +02:00
Tim Angus
598bd7295b
Improve warning to handle C++14 case ( #42 )
2017-08-16 10:49:22 +02:00
Alberto Mardegan
c723de3fb5
Update version number in README.md ( #39 )
2017-07-26 12:14:41 +02:00
Pierre-Yves Siret
070597a9d4
refactor: remove superfluous signal to slot connection
...
Now Filter::filterChanged and Sorter::sorterChanged are both protected
functions and not anymore signals.
Derived classes call these functions directly to indicated that they have
changed.
2017-06-07 16:12:27 +02:00
Pierre-Yves Siret
e109c91553
Add *.qmlc in .gitignore
2017-06-07 02:19:47 +02:00
Pierre-Yves Siret
ac45b581d6
fix: workaround for ListModel starting with no roles
...
A ListModel with no roles first won't emit modelReset when its roles
change (QTBUG-57971).
Fixes #26
2017-06-07 02:10:22 +02:00