12 Commits

Author SHA1 Message Date
Stefanos Natsis
ba97282dd0
Allow hiding empty layers in sublayers dialog (#49870)
* Sublayers dialog improvements

* added tests

* fix flake

* check against DisplayRole instead of EditRole
2022-10-21 10:53:49 +00:00
Nyall Dawson
fe7964bb1a Show sublayers in a tree, respecting schema/dataset groupings where known 2022-08-02 17:20:37 +10:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
f2f40096ab Add support for filtering system tables in QgsProviderSublayerProxyModel 2021-08-26 12:56:45 +10:00
Nyall Dawson
9796aa3b88 Create new QgsProviderSublayersDialog class
Based on QgsProviderSublayerDetails, this new dialog nicely handles
mixed layer type files (e.g. mixed vector/raster/mesh layer formats).

It also:

- Resolves geometry types in a background thread, to avoid lengthy
application hangs whenever a full table scan is required to determine
available geometry types
- Shows a handy search filter box for filtering sublayers to matching
strings
- Shows icons representing sublayer types
- Has an interactive label showing the file path which can be clicked
to open a file explorer focused on the file
2021-07-13 06:39:11 +10:00
Nyall Dawson
e685ad00b3 Add methods to return QgsProviderSublayerDetails corresponding
to QModelIndex
2021-07-13 06:39:11 +10:00
Nyall Dawson
c04140443b Equality operator for QgsProviderSublayerModel.NonLayerItem 2021-07-13 06:39:11 +10:00
Nyall Dawson
129ab50607 Add QgsProviderSublayerProxyModel for filtering/sorting
QgsProviderSublayerModel instances
2021-07-06 17:57:21 +10:00
Nyall Dawson
73f45ee467 Allow non sublayer items to be added to QgsProviderSublayerModel
E.g. embedded project items
2021-07-06 17:57:21 +10:00
Nyall Dawson
288321505a Start on sublayer model 2021-07-06 17:57:21 +10:00