4735 Commits

Author SHA1 Message Date
Nyall Dawson
2a70c4bcca Remove invalid ring handling from filterVertices, move to removeInvalidRings() 2018-05-30 05:01:40 +10:00
Nyall Dawson
0c7df170e1 Optimise QgsCurve::asQPolygonF for linestring geometries 2018-05-30 05:01:40 +10:00
Nyall Dawson
f092c7edb7 Add method to filter vertices for geometries in place, by providing a custom filter function 2018-05-30 05:01:40 +10:00
Nyall Dawson
8341b9b19c Safer memory management for shapeburst fills
Fail gracefully if temporary image could not be allocated

TODO: use a maximum size for the image, and downsample to match
2018-05-30 05:01:40 +10:00
nirvn
5ab3fe4ba0 Add subsetStringChanged signal 2018-05-29 17:10:17 +07:00
Matthias Kuhn
b202d60672 const correctness QgsVectorLayer::deleteAttributes 2018-05-29 19:43:04 +10:00
Denis Rouzaud
65bb60e96c run sipify 2018-05-28 10:39:34 -08:00
Nyall Dawson
4c3a9ef7be Ensure that class \brief comes before \since (#7081)
Otherwise it breaks the Python docstrings, which require
the brief to come first
2018-05-28 04:03:46 -08:00
Nyall Dawson
b6f2f7bd40 Don't use QgsVectorLayer::selectedFeatures() to check for a selection
in a layer

This is incredibly inefficient, because selectedFeatures() actually
fetches a full copy of all selected features (including all
attributes and geometry). Instead use selectedFeatureIds(), which
is just a list of numbers.

Add warning note to docs cautioning against this practice.

Fixes massive ui lockup when right clicking on a layer with
selected features in the layer tree
2018-05-28 10:59:48 +10:00
Nyall Dawson
e552ce62be Add warning note to QgsLayoutPageCollection::shouldExportPage 2018-05-28 10:06:23 +10:00
Harrissou Sant-anna
f0b72ae62e Set the dpi default to -1 to use layout dpi 2018-05-28 08:56:32 +10:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Juergen E. Fischer
499459be4b fix build with SIP <4.19 2018-05-27 19:17:12 +02:00
Nyall Dawson
7a1a787c0a Fix incorrect returns docstring when doxygen \returns has extra trailing spaces or uses tabs 2018-05-27 18:54:09 +10:00
Nyall Dawson
0e75f6ef85 Don't indent multiline versionadded/deprecated tags
Turns out there isn't any valid ones anyway - the only
multiline versionadded tags are due to incorrect ordering
of brief/since tags (which is fixed in a different PR)
2018-05-27 18:54:09 +10:00
Nyall Dawson
9f650fead9 Fix incorrect param docstring when doxygen \param has extra
trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00
Nyall Dawson
4b1b752633 Fix bad regex 2018-05-27 18:54:09 +10:00
Nyall Dawson
71107d1d2f Sipify 2018-05-27 18:54:09 +10:00
Nyall Dawson
3d6ea5972b Remove some junk lines from docstrings 2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Nyall Dawson
c864d22d1f Add "get ..." to doxygen compliance blacklist
Should be "gets ..." for consistent tense, or better yet
"returns ..." for consistency.
2018-05-27 14:05:06 +10:00
Nyall Dawson
b6b08e96a0 Add 'accessor for' to doxygen compliance blacklist
Use "Returns the..." instead
2018-05-27 14:05:06 +10:00
Nyall Dawson
4bb7f82fcb Remove some incorrect 'not available in Python bindings' notes 2018-05-26 16:51:58 +10:00
Nyall Dawson
94cf3fc788 Use "customize" instead of "customise"
Since we default to US spelling, we should always be using "customize"
2018-05-26 15:44:04 +10:00
Nyall Dawson
fa5a7d2ae2 Typo 2018-05-26 15:44:04 +10:00
Nyall Dawson
ff55cfc99d Add missing getters to QgsContrastEnhancementFunction 2018-05-26 15:44:04 +10:00
Nyall Dawson
8f770c3f60 Add 'mutator for ' to doxygen compliance blacklist 2018-05-26 15:44:04 +10:00
Nyall Dawson
80e44c1364 Speed up map to pixel simplification by directly accessing x/y vertex data 2018-05-26 11:00:43 +10:00
Matthias Kuhn
cb4d11787c Remove redundant virtual on override 2018-05-26 06:11:37 +10:00
Nyall Dawson
99b6194e3c Improve docs for single symbol renderer, add missing SIP_FACTORY 2018-05-25 17:12:24 +10:00
Nyall Dawson
43928d8c9c Don't crash when a null task is added to task manager 2018-05-25 16:53:51 +10:00
Nyall Dawson
5e360f90e8 Add unit test to prevent deprecated methods without description
And add missing descriptions
2018-05-25 16:31:03 +10:00
Nyall Dawson
8bb45b935a Typo 2018-05-25 15:09:00 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00
Nyall Dawson
bcaad3a5dc Fix documentation warning 2018-05-25 11:40:57 +10:00
Nyall Dawson
b813a6715e Fix API breaks 2018-05-25 11:40:57 +10:00
Nyall Dawson
44630b47ed Add QgsDataProvider::ProviderOptions struct to constructors
for data providers

Allows a way to pass generic settings to providers, e.g.
passing a datum transform context for use in provider's
constructors.
2018-05-25 11:40:57 +10:00
Nyall Dawson
bb995202fd Fix more broken links 2018-05-25 11:16:18 +10:00
Nyall Dawson
2cb8a33884 Fix broken see also links 2018-05-25 11:16:18 +10:00
Harrissou Sant-anna
c7538702f9 Fix typo 2018-05-25 09:17:24 +10:00
Martin Dobias
61f84ce7f6
Merge pull request #7008 from PeterPetrik/qgsmeshlayer_2_scalar_vector_datasets
[mesh] Rendering of scalar and vector datasets
2018-05-24 07:43:14 -04:00
Peter Petrik
882d8ed79b tiny doc change 2018-05-24 08:16:11 +02:00
Alessandro Pasotti
f41daee1cb Fix docstring for setEditFormConfig 2018-05-23 09:27:44 +02:00
Nyall Dawson
6165e4c8d6 Add some SIP_THROW( QgsCsException ) annotations
Incomplete, but allows proper QgsCsException catching
for these methods
2018-05-23 07:55:30 +10:00
Nyall Dawson
f82b639604 Fix outdated docs
Fixes #19004
2018-05-23 06:55:22 +10:00
Peter Petrik
81bf510c09 fix typo 2018-05-22 18:59:06 +02:00
Peter Petrik
c75876938b fix docs 2018-05-22 14:35:10 +02:00
Peter Petrik
33390123e3 various small fixes from review 2018-05-22 14:32:20 +02:00
Denis Rouzaud
b4ec9a3190
[pyqgis] add QgsSettings.enumValue and flagValue to the bindings (#7024)
* [pyqgis] add QgsSettings.enumValue and flagValue to the bindings

these are done in pure Python since no implementation is possible in SIP

there is a dirty hack for flags since QgsMapLayerProxyModel.Filters.__qualname__
returns 'Filters' and not 'QgsMapLayerProxyModel.Filters'

* fix typo
2018-05-18 09:25:12 -08:00
Denis Rouzaud
deccf205cf
[pyqgis] add method to retrieve metaEnum from an enum value or type (#7023) 2018-05-18 06:47:18 -08:00