Nyall Dawson
31c1ae1c6a
Add missing QStringLiterals
2017-09-25 17:12:03 +10:00
Juergen E. Fischer
b9162dccdf
scripts/astyle-all.sh run
2017-03-03 15:37:12 +01:00
Nyall Dawson
337dabea4e
Swap QSharedPointer to std::shared_ptr
2017-02-07 12:32:02 +10:00
Denis Rouzaud
4c3968b9aa
more spelling fixes
2017-01-20 15:06:09 +01:00
Matthias Kuhn
dfd9833467
Let all tests work with a proper QgsApplication instance
2016-12-20 01:20:08 +01:00
Nyall Dawson
7e0cd9af3d
Fix QgsFields::lookupField returns bad result for empty field name
...
QString::isNull vs ::isEmpty strikes again!
2016-11-24 11:17:03 +10:00
Nyall Dawson
4166a3ea62
Fix most clazy qstring-unneeded-heap-allocations warnings
...
By flipping string literals to QStringLiteral/QLatin1String
see
https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Matthias Kuhn
b6779f63ff
Rename QgsFields::fieldNameIndex() to lookupField()
...
To have two clearly different names for tolerant/intolerant index lookup
2016-10-01 15:39:03 +02:00
Matthias Kuhn
9a261cfbbc
QgsFields::fieldNameIndex also matches field alias
...
This method is also doing case insensitive "fuzzy" matching now, this
just adds yet another level of tolerance.
This changes the expressions to also take the alias into account if no
matches have been found.
2016-10-01 15:39:03 +02:00
Juergen E. Fischer
b514f521e6
cppcheck fixes
2016-05-16 14:14:14 +02:00
Nyall Dawson
0e5214cdec
Don't crash when iterating empty QgsFields
2016-03-10 10:45:18 +11:00
Matthias Kuhn
8e4d5a8b69
Add const_iterator and iterator methods to QgsFields
...
Because using Q_FOREACH is so much easier to write than an index-based loop.
2016-03-09 12:07:33 +01:00
Nyall Dawson
ecbd691ca4
Followup 8e2b791, add unit test
2015-10-12 09:14:20 +11:00
Juergen E. Fischer
481d2c071e
remove duplicate semicolons
2015-09-15 12:08:38 +02:00
Nyall Dawson
d107603f35
Expand QgsField/QgsFields tests
2015-08-02 06:29:38 +10:00
Denis Rouzaud
9e3183c63f
Revert "sort includes"
...
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73
sort includes
2015-06-10 13:59:08 +02:00
Matthias Kuhn
7af658f8f8
Coverity fixes
2015-05-26 11:44:40 +02:00
arnaud.morvan@camptocamp.com
f31abe4dfe
Update QgsFields nameToIndex hash on field removed
2015-05-26 09:12:15 +02:00
Nyall Dawson
5194ce5288
More QgsFields tests
2015-05-14 20:02:48 +10:00
Nyall Dawson
d955b03924
Boost test coverage of QgsField / QgsFields
2015-05-13 22:03:08 +10:00
Nyall Dawson
fba32f123d
Allow storing QgsField and QgsFields in a QVariant
2015-05-06 07:03:39 +10:00
Nyall Dawson
bb648306b6
Implicit sharing for QgsFields
2015-05-03 20:57:36 +10:00