Harrissou Sant-anna
d4e60173bc
Fix after review
2020-07-21 10:13:45 +10:00
Harrissou Sant-anna
140425b1e3
Fix file formatting for better output rendering
2020-07-21 10:13:45 +10:00
Harrissou Sant-anna
5c83cd07cc
Move some cpp code samples to python
2020-07-21 10:13:45 +10:00
Nyall Dawson
81a9db9f57
[sipify] Fix creation of cross references
2020-06-15 13:43:58 +10:00
signedav
20ac7e3c22
Update python/core/auto_generated/expression/qgsexpression.sip.in
...
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
and
set parameter to const
2019-12-03 15:29:17 +01:00
David Signer
7fbf2c867d
tags helping to find the correct function are integrated into the help of the expression
...
defined in the json files and used by the expression builder to find the function (not using as alias)
2019-12-03 15:29:16 +01:00
Matthias Kuhn
65fe231ee9
Q_GLOBAL_STATIC for expressions
2019-11-02 15:01:59 +01:00
Nyall Dawson
16a64ed84d
Deprecate some methods, dox++
2019-03-22 12:16:22 +10:00
Nyall Dawson
107b48a430
Add NULLPTR macro for use in doxygen comments
...
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)
Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab
Sipify
2019-02-27 09:41:11 +10:00
Hugo Mercier
e4288e5dea
QgsExpression: set setGeomCalculator precedence
...
setGeomCalculator, setDistanceUnits and setAreaUnits have now
precedence over expression scopes.
2019-02-14 13:40:12 +01:00
Nyall Dawson
384d310233
Minor improvements to PyQGIS returns for SIP_OUT params
2019-02-05 04:55:34 +11:00
Denis Rouzaud
166e952c33
run sipify
2018-12-19 08:04:27 -04:00
Denis Rouzaud
edfb7e1465
run sipify
2018-12-18 17:17:25 -04:00
Even Rouault
7e81226b51
Replace toUtf8().data() by toUtf8().constData()
...
All your uses of toUtf8().data() actually just need a const char*
So use constData() that is semantically more correct, and documented
to be faster.
From http://doc.qt.io/qt-5/qbytearray.html#data
"For read-only access, constData() is faster because it never
causes a deep copy to occur."
2018-10-07 07:23:42 +10:00
Nyall Dawson
c8191ffd50
Allow unformatted preview text for expression results
2018-08-27 14:43:02 +10:00
Denis Rouzaud
c0dd00615a
[pyqgis] __repr__ method for QgsExpression, QgsField ( #7464 )
...
* [pyqgis] __repr__ method for QgsExpression, QgsField
* add tests for __repr__ methods
* Fix test
2018-07-28 08:06:08 +02:00
Nyall Dawson
2ed144ac59
Apply clang-tidy readability-avoid-const-params-in-decls fixit
...
Checks whether a function declaration has parameters that are
top level const.
const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Denis Rouzaud
65bb60e96c
run sipify
2018-05-28 10:39:34 -08: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
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
Alessandro Pasotti
673fac0c88
Added methods to search expression nodes and drop RegExp
...
- nodes() return the list of all nodes
- findNodes<T> returns a list of the nodes matching the class
Also drops the regexp for finding form attrs in the value-relation
expressions.
Other minor fixes as suggested in the PR review.
2018-05-15 18:32:40 +02:00
Alessandro Pasotti
b4f86147c7
Add referencedFunctions() to expressions
2018-05-15 09:20:10 +02:00
Denis Rouzaud
7df2593caf
move auto generated sip file in dedicated folder
2018-05-14 10:23:37 -04:00