2997 Commits

Author SHA1 Message Date
Belgacem
fa7e3d4f7d fix sip and add Nyall suggestions 2021-01-13 15:47:40 +01:00
Belgacem
6caf1bfe32 fix code_layout 2021-01-13 15:47:40 +01:00
Belgacem
59bb58f880 cleanup and fix symbol nullptr bug 2021-01-13 15:47:40 +01:00
Belgacem
0073c35b65 remove distanceFromPoint 2021-01-13 15:47:40 +01:00
Belgacem
a97ade0e88 address reviews 2021-01-13 15:47:40 +01:00
Belgacem
b5e6033a88 fix SIP 2021-01-13 15:47:40 +01:00
Belgacem
432f29be92 add pointsLimit and SIP 2021-01-13 15:47:40 +01:00
Belgacem
398144ee93 add docs 2021-01-13 15:47:40 +01:00
Belgacem
3a014ae0bf make identification work with point size 2021-01-13 15:47:40 +01:00
Belgacem
4f3f95a841 raycast intersection with node bounding box 2021-01-13 15:47:40 +01:00
Alessandro Pasotti
337c7c301b Removed sophisticated implementation
Store rows in the model, remove rewind and random access from
query result class.

This implementation is way simpler but the (forward) iterator
can be used only once.

I'm still convinced that the old implementation was better and more
flexible but I need to move forward.

Client code will need to store the results from the iterator.
2021-01-13 11:44:56 +01:00
Alessandro Pasotti
4b1899ef22 Fix cond private 2021-01-13 09:40:11 +01:00
Alessandro Pasotti
decbee4bd7 Fix MXE build 2021-01-13 09:40:11 +01:00
Alessandro Pasotti
322a925b2e flake8 2021-01-13 09:40:11 +01:00
Alessandro Pasotti
3b7cc2434a Query result model threaded fetcher
plus: independent iterators and rewind
2021-01-13 09:40:11 +01:00
Alessandro Pasotti
f5ffc56f07 Threaded query model 2021-01-13 09:40:11 +01:00
Alessandro Pasotti
a717bc7f94 Doxy and new at() method 2021-01-13 09:39:01 +01:00
Alessandro Pasotti
ea72ab92bf QgsQueryResultModel
A model for QgsAbstractDatabaseProviderConnection::QueryResult
2021-01-13 09:39:01 +01:00
Nyall Dawson
a8c3b02cdd Correctly expose QgsLayoutItemAttributeTable::getTableContents to sip,
so that this class can be reused from Python classes

Fixes https://github.com/gltn/stdm/issues/411
2021-01-13 14:56:09 +10:00
Ivan Ivanov
bdb1a541c4 Docs 2021-01-12 23:49:57 +02:00
Ivan Ivanov
a1ffcd5c7d Improved class description docs 2021-01-12 23:49:51 +02:00
Ivan Ivanov
f8b468a045 Rename QgsPolymorphicRelations getGeneratedRelations -> generateRelations 2021-01-12 23:49:40 +02:00
Ivan Ivanov
41e1e61513 Added a QgsRelation::polymorphicRelation() method 2021-01-12 19:13:45 +02:00
Denis Rouzaud
dcd3c32458 fix sipify 2021-01-12 13:02:56 +01:00
Denis Rouzaud
aac558dd59 follow up + some forward declarations 2021-01-12 12:52:23 +01:00
Denis Rouzaud
a6404da815 separate QgsAttributeEditorElement into several files 2021-01-12 12:52:20 +01:00
Denis Rouzaud
ca37a56763
Merge pull request #40947 from 3nids/rel-reg-f2
move reading from XML logic from QgsEditFormConfig to QgsAttributeEditorElement
2021-01-12 10:29:11 +01:00
Ivan Ivanov
89c07ff262 Fixes in the QgsPolymorphicRelation 2021-01-12 10:07:19 +02:00
Denis Rouzaud
9e5b614189 fix legacy config before creating elements to avoid passing widget config 2021-01-12 08:24:35 +01:00
Nyall Dawson
44c2a26074 Add utility functions to determine if a QgsExpression is a simple
"field=value" type expression, and for condensing a list of similar
expressions to an equivalent "field IN (value, value2,...)" expression
wherever possible
2021-01-12 12:16:50 +10:00
Matthias Kuhn
74d053242e Add new field for geoid-ellipsoid diff 2021-01-12 10:25:19 +10:00
Denis Rouzaud
a6aecf5ff5 deprecate QgsEditFormConfig::attributeEditorElementFromDomElement 2021-01-11 21:51:54 +01:00
Denis Rouzaud
3f717cb395 move reading from XML logic from QgsEditFormConfig to QgsAttributeEditorElement
so it lives in the same place than saving the config
2021-01-11 21:51:54 +01:00
Denis Rouzaud
1656ef2987
move the config to QgsAttributeEditorRelation + fix cloning (#40941) 2021-01-11 21:47:09 +01:00
Ivan Ivanov
f31fbdf064 Added support for dynamic relations 2021-01-11 12:13:51 +02:00
Nyall Dawson
f8e5e0bf7e Improve python repr string for QgsCoordinateReferenceSystem
- Indicate invalid crses
- If crs doesn't have an authid, use wkt representation
2021-01-11 13:06:05 +10:00
Matthias Kuhn
e0ad337a2f NMEA calculate 3D RMS 2021-01-11 12:25:05 +10:00
Nyall Dawson
ddf19ac4c3 Add method to retrieve exit status of process 2021-01-09 07:16:14 +10:00
Denis Rouzaud
0fc4aee612
Merge pull request #40721 from suricactus/relregistry
Support multiple relation editors via relation widget registry
2021-01-08 21:39:39 +01:00
Ivan Ivanov
6620bb900e Removed the deprecated methods, will be implemented in Python only 2021-01-08 16:03:50 +02:00
Denis Rouzaud
6061030f96
enable dynamic SVGs for fill symbol (#40902) 2021-01-08 12:02:31 +01:00
Denis Rouzaud
17500a7ee7
Merge pull request #40596 from 3nids/dynamic_svgs
core part to handle dynamic SVGs
2021-01-07 14:57:57 +01:00
Nyall Dawson
a39e1625c0 [api] Add new class to run a process in a blocking manner without
QEventLoop related issues on the main thread

This class should be used whenever a blocking process run is required.
Unlike implementations which rely on QApplication::processEvents()
or creation of a QEventLoop, this class is completely thread safe
and can be used on either the main thread or background threads without
issue.

Execution supports use of a QgsFeedback object to support termination
of the process.
2021-01-07 06:01:39 +10:00
Nyall Dawson
d1761bdb15 Port QProcess::splitCommand from qt 5.15
This is a useful method, and desirable in Qt < 5.15. It's also not
exposed currently to Python, so this doubles as a way for plugins
to use this method.
2021-01-07 06:01:39 +10:00
Denis Rouzaud
98d1be22f2 also update usedAttributes with attributes used in SVG parameters 2021-01-06 16:59:54 +01:00
Denis Rouzaud
130cbae947 prepare expressions of properties for SVG parameters 2021-01-06 16:59:54 +01:00
Denis Rouzaud
3881c81184 fix bad rebase 2021-01-06 16:33:23 +01:00
Denis Rouzaud
2e90da4b26 drop QgsSymbolLayerUitls::readSerializedProperties and serializeProperties 2021-01-06 16:11:14 +01:00
Denis Rouzaud
3201fa4ecb use QgsProperty to handle SVG parameters 2021-01-06 11:25:21 +01:00
Denis Rouzaud
9116a1a181 add a simple class to hold parameters information
this makes it more futureproof to introduce type (string/number) or domain (attribute vs node value)
2021-01-06 11:25:21 +01:00