Nyall Dawson
e28a0b7258
Add flag to QgsProviderSublayerDetails to indicate that the uri
...
may be a container for other sublayers but that indepth scanning
of the container was skipped
2021-07-23 14:57:56 +10:00
Nyall Dawson
6c2d7bd7c9
Add driver name to QgsProviderSublayerDetails
2021-07-23 14:57:56 +10:00
Keigo Imai
c34cfeb43b
update sip file
2021-07-23 11:30:34 +10:00
Keigo Imai
811a0353a5
Add activeDecorations to iface object
...
Allow plugins and scripts to export animations with decorations
2021-07-23 11:30:34 +10:00
Nyall Dawson
94417729bc
Use proper icon for unknown/collection geometry types, instead
...
of always using polygon icon
2021-07-22 21:00:30 +10:00
Nyall Dawson
5246257e8a
Cleaner API for QgsProviderUtils::sublayerDetailsAreIncomplete,
...
add flag to ignore unknown geometry types
2021-07-22 14:54:13 +10:00
Alessandro Pasotti
276d1980f8
Address PR comments and add ENUM for widget mode
2021-07-22 10:18:13 +10:00
Alessandro Pasotti
387c403c2f
First nail in the coffin of DB Manager
...
Replace DB Manager legend custom menu action with
C++ implementation for SQL layer
2021-07-22 10:18:13 +10:00
Alessandro Pasotti
f5946a184b
Unfinished attempt to use query result widget for SQL layer updates
2021-07-22 10:18:13 +10:00
Sandro Mani
a499a30354
Remove explicit template instantiations
2021-07-22 10:03:07 +10:00
Even Rouault
da41d49c53
Add QgsProcessingAlgorithm::writeFeatureError() to help throw processing exception when addFeature() fails
2021-07-22 06:51:28 +10:00
Alexander Bruy
9098f2c6f9
warn when adding model with the same name as the existing one ( fix #42184 )
...
confirm model overwrite if model file has the same name as the existing
one
2021-07-21 20:47:57 +10:00
Andrea Giudiceandrea
deb516d584
Fix typo in QgsMapSettings::visibleExtent() doc
2021-07-21 14:14:46 +10:00
Harrissou Sant-anna
5bbae769d7
Fix QgsPoint code samples
2021-07-21 10:17:37 +10:00
Nyall Dawson
c2e1ea3b39
QgsGeometry::Change operator== should be const
2021-07-20 17:25:48 +10:00
Nyall Dawson
81b934d9d1
Rework API and improve memory handling of graph objects
...
Instead of QgsGraphBuilder::graph() taking the ownership of the graph
and leaving the QgsGraphBuilder in an unpredictable state, add an
explicit "takeGraph" method which takes the existing graph and
make the existing "graph" method just return a copy of the graph.
Also fix corresponding memory leaks in network analysis processing
algorithms.
Fixes #44079
2021-07-20 13:54:46 +10:00
Nyall Dawson
9328953aa7
[layouts] Ensures that 1:1 zoom level on layout designer accounts
...
for actual screen dpi, and responds correctly when window is dragged
between screens
2021-07-20 11:21:29 +10:00
Alessandro Pasotti
ff54bd5380
Merge pull request #43831 from elpaso/localization-more-fixes
...
GUI localization tweaks
2021-07-19 10:46:41 +02:00
Nyall Dawson
1436a81b31
Truncate filter from middle of string
2021-07-19 17:01:07 +10:00
Vincent Cloarec
8cd8bec5f2
[mesh] mesh frame editing part 3 - Advanced editing ( #44169 )
...
[mesh] [feature] Delaunay triangulation and face refinement for advanced mesh editing tools
2021-07-19 08:21:31 +02:00
Nyall Dawson
4bb7f82f2e
[sipify] Add check that doxygen //!< command is only used for enum
...
documentation
sipify can't handle it in other contexts
2021-07-19 16:05:53 +10:00
Nyall Dawson
2724315a99
Move enums from QgsVectorLayer to Qgis, promote to enum classes,
...
and fix redundant QgsVectorLayer.VertexMarkerType enum
2021-07-19 14:02:39 +10:00
nirvn
d10695cf77
QMap::unite is gone in Qt6, use QMultiMap
2021-07-17 16:59:20 +07:00
nirvn
2006c975f4
Migrate remaining uses of QRegExp in src/core
2021-07-16 11:01:42 +10:00
Nyall Dawson
bb354708da
Only try to query sublayers for providers which support them
...
Fixes loading other layer types from browser
2021-07-15 19:23:34 +10:00
Nyall Dawson
1f31a38dd3
Add API to QgsProjectStorage to determine matching project storage
...
implementation from a file path
2021-07-15 16:51:06 +10:00
Mathieu Pellerin
3a07af0ef1
Merge pull request #44152 from nirvn/application_regexp
...
Migrate away from QRegExp in the core application class
2021-07-14 23:18:00 +07:00
Mathieu Pellerin
94aa4a4f76
Merge pull request #44137 from nirvn/core_regexp_more
...
[qt6] A few more QRegExp aurevoirs in src/core
2021-07-14 20:37:02 +07:00
Nedjima Belgacem
298a4514ec
Make 2d terrain rendering optional ( #43489 )
...
First part of https://github.com/qgis/QGIS-Enhancement-Proposals/issues/215
2021-07-14 10:09:48 +02:00
nirvn
f55fe4e1fb
Add note
2021-07-14 13:19:50 +07:00
Matthias Kuhn
071e4b585d
Merge pull request #44132 from m-kuhn/respect_screen_dpi
...
Allow using physical DPI for map canvas
2021-07-14 08:02:42 +02:00
Vincent Cloarec
c09443a056
[mesh] mesh frame editing part 3 - Edit mesh map tool ( #44037 )
...
[mesh] [feature] add mesh map tool to CRUD/digitize actions for mesh frame (vertices, faces)
2021-07-14 08:00:55 +02:00
nirvn
a580968983
Remove QgsApplication::shortNameRegExp altogether, document API break
2021-07-14 10:36:47 +07:00
nirvn
358a4af06a
Better and faster strategy: replicate QRegExp::escape code
2021-07-14 10:28:41 +07:00
nirvn
03d99a4202
Migrate away from QRegExp in the core application class
2021-07-14 08:42:36 +07:00
Matthias Kuhn
598e2bd31f
physical dpi is only available after showEvent
2021-07-13 21:15:33 +02:00
Mathieu Pellerin
557752ff73
Merge pull request #44138 from nirvn/core_regexp_more_more
...
[qt6] Move string utils and {vector,raster} layer class away from QRegExp
2021-07-13 20:54:16 +07:00
nirvn
0847f55bad
[qt6] Mirate string utils class away from QRegExp
2021-07-13 14:13:37 +07:00
Vincent Cloarec
494735a482
create new mesh layer ( #43873 )
...
[mesh] [feature] adds a option to create blank/scratch mesh frame (vertices/faces)
2021-07-13 07:37:46 +02:00
Nyall Dawson
59f7b4cc07
Remove duplicate code
2021-07-13 06:39:11 +10:00
Nyall Dawson
61c842165d
Commit missed file
2021-07-13 06:39:11 +10:00
Nyall Dawson
220bcb0114
Rework QgsMapLayerFactory.createLayer API so that we can specify additional options
2021-07-13 06:39:11 +10:00
Nyall Dawson
5cb167b013
Fix warning
2021-07-13 06:39:11 +10:00
Nyall Dawson
d44412ddb8
Can't monkey patch from core into gui classes
2021-07-13 06:39:11 +10:00
Nyall Dawson
d0beaae3a4
Move QgsSublayersDialog::PromptMode enum to Qgis and rename
2021-07-13 06:39:11 +10:00
Nyall Dawson
d44f31000d
Start depreating
2021-07-13 06:39:11 +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
3ff67896a5
Consider sublayers with unknown counts as incomplete details
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