35159 Commits

Author SHA1 Message Date
Nyall Dawson
3272964f58 Fix classes which violate the rule-of-three
(identified using clazy analyser)
2016-10-24 10:36:22 +10:00
Nyall Dawson
12a7bb34e8 [processing] Fix qgis zonal stats algorithm 2016-10-24 08:41:16 +10:00
Matthias Kuhn
96a649e37f Add missing bindings 2016-10-23 21:14:42 +02:00
Matthias Kuhn
54b953f433 Cleanup and modernize QgsProject code 2016-10-23 20:54:41 +02:00
Juergen E. Fischer
28abbf9513 add *.py to .gitattributes 2016-10-23 08:38:36 +02:00
Paolo Cavallini
66b66ed450 Update r.mapcalc.txt
Better description of r.mapcalc
2016-10-23 07:42:51 +02:00
Matthias Kuhn
1445647065 QgsVectorDataProvider API cleanup 2016-10-22 23:03:57 +02:00
Nyall Dawson
ec25df1565 Merge pull request #3659 from nyalldawson/clazy3
Fix clazy level 0 checks
2016-10-23 05:20:47 +10:00
Nyall Dawson
1dca938306 Fix some clazy "inefficient-qlist-soft" warnings
From the clazy docs:

Finds QList<T> where sizeof(T) > sizeof(void*).
QVector<T> should be used instead.
2016-10-22 22:46:18 +10:00
Nyall Dawson
498d03b88a Fix clazy qstring-left warnings
From the clazy docs:

Finds places where you're using QString::left(0) instead
of QString::at(0). The later form is cheaper.
2016-10-22 22:46:18 +10:00
Nyall Dawson
368a04a4d1 Fix clazy "detaching-temporary" warnings
From the clazy docs:

Finds places where you're calling non-const member functions on
temporaries. For example getList().first(), which would detach
if the container is shared.
2016-10-22 22:46:18 +10:00
Nyall Dawson
06cf59a4c2 Add missing references in Q_FOREACH loops 2016-10-22 22:46:17 +10:00
Nyall Dawson
35ecdd1a98 Fix issues with writing to temporary objects 2016-10-22 22:46:17 +10:00
Nyall Dawson
a3968a29bd Fix clazy qmap-with-pointer-key warnings
From the clazy docs:

Finds cases where you're using QMap<K,T> and K is a pointer.

QMap has the particularity of sorting it's keys, but sorting
by memory address makes no sense. Use QHash instead, which
provides faster lookups.
2016-10-22 22:46:16 +10:00
Nyall Dawson
bd20fe425f Fix clazy qvariant-template-instantiation warning
From the clazy docs:

Detects when you're using QVariant::value<Foo>() instead
of QVariant::toFoo().

The former results in more code being generated.
2016-10-22 22:46:16 +10:00
Nyall Dawson
ad13699a23 Fix clazy temporary-iterator warning
Calling constBegin/constEnd on temporary container can result
in endless loop
2016-10-22 22:46:16 +10:00
Nyall Dawson
9459831422 Remove unused variables 2016-10-22 22:46:15 +10:00
Nyall Dawson
fae8071a1e Fix clazy qstring-arg warnings
Avoid chained QString::arg() calls and instead use the multi-arg
overload to save memory allocations
2016-10-22 22:46:15 +10:00
Nyall Dawson
f2672151c2 Fix clazy qfileinfo-exists warnings
From the clazy docs:

Finds places using QFileInfo("foo").exists() instead of the faster
version QFileInfo::exists("foo"). According to Qt's docs: "Using
this function is faster than using QFileInfo(file).exists() for
file system access."
2016-10-22 22:46:14 +10:00
Nyall Dawson
ef5110732b Fix clazy "qstring-ref" warnings
From the clazy docs:

Finds places where QString::fooRef() should be used instead of
QString::foo(), to avoid temporary heap allocations

eg

str.mid(5).toInt(ok) // BAD

str.midRef(5).toInt(ok) // GOOD
2016-10-22 22:46:14 +10:00
Juergen E. Fischer
6acf0f745f msvc: use /bigobj for sip modules
(cherry picked from commit d0b3e39cdab1da17d7a977ba3def5ce1b64ff707)
2016-10-22 12:28:44 +02:00
Juergen E. Fischer
2cb6982113 release.pl: stay on same master* branch
(cherry picked from commit cc429785edd16a91f7118cb7a1b964492988546f)
2016-10-22 12:28:44 +02:00
Nyall Dawson
a51bebdacc Fix missing doc warning 2016-10-22 13:19:32 +10:00
Nyall Dawson
3cc9b5d962 Indentation 2016-10-22 09:03:24 +10:00
Nyall Dawson
f5d61abf53 Merge pull request #3655 from sebastic/patch-1
Fix copyright in 2017
2016-10-22 07:24:31 +10:00
Bas Couwenberg
85818c684c Fix copyright in 2017
Match copyright header with python code.
2016-10-21 23:14:29 +02:00
Alexander Bruy
bde0f6ee2e Merge pull request #3650 from nirvn/processing_spatialite_sql
[processing] add a "Spatialite execute SQL" algorithm
2016-10-21 15:22:00 +03:00
rldhont
2b9f475a84 [BUGFIX][QGIS-Server] Don't failed when transform boundingbox 2016-10-21 11:57:54 +02:00
Matthias Kuhn
2475ee578c Allow 0 (infinite) for scale dependent visibility
Fix #15414
2016-10-21 11:11:39 +02:00
Matthias Kuhn
35f9aa2994 Restore layer variables when loading QML
Fix #14452
2016-10-21 11:11:35 +02:00
Matthias Kuhn
b6ee23919d Hide constraint warnings when there are no constraints 2016-10-21 11:04:31 +02:00
Matthias Kuhn
b4ff6683a6 Fix icon size for constraint warning 2016-10-21 11:04:25 +02:00
Matthias Kuhn
d5d3eeee35 Fix form constraints and group visibility
When a relation editor was shown (or more generally a widget which is not an
editor widget), constraints and group visibility were silently disabled.
2016-10-21 11:02:39 +02:00
Matthias Kuhn
04e3796610 [postgres] Avoid crash when fetching default value fails 2016-10-21 10:58:14 +02:00
volaya
81e86accc3 Merge pull request #3651 from nirvn/processing_modeler_fix
[processing] fix broken modeler under pyqt5/python3 (fixes #15734)
2016-10-21 08:09:03 +02:00
nirvn
bd7149ce16 [processing] fix broken modeler under pyqt5/python3 (fixes #15734) 2016-10-21 10:11:22 +07:00
nirvn
d83e650ae4 [processing] make spatialite connector work with python3 2016-10-21 10:05:03 +07:00
nirvn
772f2019c1 [processing] add a spatialite execute SQL algorithm 2016-10-21 10:05:03 +07:00
Alexander Bruy
89fa21e5fa [processing] more complete support for int64 fields (follow up 8d2cc8806b)
(cherry picked from commit 649d41f1ecd4b8d22110e11cb9e693231bec8ed2)
2016-10-20 21:02:37 +03:00
Germán Carrillo
62a9436178 Using QVariant.Type enum instead of numbers for readability.
(cherry picked from commit 6df926dfe6e3e8f7ac330fbb9206dc69492da6ed)
2016-10-20 21:02:37 +03:00
Germán Carrillo
4730d25012 Fixing issue with 'Eliminate sliver polygons' and fields of type long.
(cherry picked from commit be25a29da196fac687f95abffb71e34138e3d20c)
2016-10-20 21:02:37 +03:00
Juergen E. Fischer
5c47bd6972 release.pl:
* allow minor releases from master_2 branch
* convert windows splash screen to BMP3 from PNG

(cherry picked from commit 09db6e4a00dda3b573cda7be938d46e8def66bef)
2016-10-20 18:22:57 +02:00
Juergen E. Fischer
2013984297 fix translation strings 2016-10-20 18:16:37 +02:00
Matthias Kuhn
fba53db785 Followup a6a4f2ed: clean pre-cxx-11 garbage 2016-10-20 14:55:18 +02:00
Matthias Kuhn
9bab3fa305 Fix build warning 2016-10-20 14:05:30 +02:00
Matthias Kuhn
3e83fafc42 Expose QgsUnitTypes to QML 2016-10-20 12:56:35 +02:00
Matthias Kuhn
58be4fc899 Rename visibility presets to map themes part 2 2016-10-20 12:56:35 +02:00
Matthias Kuhn
0f93fb0bc0 Q_PROPERTYze QgsCoordinateReferenceSystem::unitType 2016-10-20 12:56:35 +02:00
Matthias Kuhn
067e590566 Update snapping settings widget when avoid intersection list changes 2016-10-20 12:56:35 +02:00
Matthias Kuhn
bb23d6ebd0 Move snapping options to project menu 2016-10-20 12:56:35 +02:00