18 Commits

Author SHA1 Message Date
Nyall Dawson
83dd2aa036 Move some non-error debug messages to QgsDebugMsgLevel 2019-11-25 12:43:10 +10:00
Matthias Kuhn
db838a3203 Fix qgsfield private header 2019-11-05 21:30:56 +01:00
Alessandro Pasotti
3aa927cc63 sipify 2019-11-03 10:04:07 +01:00
Alessandro Pasotti
0445c7088f
Update python/core/auto_generated/qgsfield.sip.in
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-11-01 08:59:24 +01:00
Alessandro Pasotti
cdf523e33d
Update python/core/auto_generated/qgsfield.sip.in
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-11-01 08:59:17 +01:00
Alessandro Pasotti
f20660c0dd field displayNameWithAlias
This adds another method to display field names with alias, this is to be used when
working close to the data structure (sql builder, expressions etc.) when the information
in the alias is sometimes fundamental to indentify what the field contains.

displayNameWithAlias is now used (insted of field name) in:

    expressions dialog
    query builder

The format is:

alias (field_name)
and, in case there is no alias:
field_name
2019-10-31 17:30:02 +01:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Denis Rouzaud
3a19182fe8
add QgsField::isDateTime (#9007)
* add QgsField::isDateTime

* use QgsField::isDateTime

* rename to isDateOrTime
2019-01-28 13:53:16 -05: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
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
Denis Rouzaud
65bb60e96c run sipify 2018-05-28 10:39:34 -08: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
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
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
Denis Rouzaud
e8cf8c2f1c [sipify] insert missing QMetaObject for gadget classes 2018-05-15 17:38:16 -04:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00