41412 Commits

Author SHA1 Message Date
Alexander Bruy
999d93ad6e [console] return home directory as string instead of QDir instance (fix #17106) 2017-09-12 15:47:25 +03:00
Nyall Dawson
b26b8d9789 Merge pull request #5165 from Gustry/save_metadata
write metadata with XML
2017-09-12 20:32:08 +10:00
Nyall Dawson
457709d3d8 Merge pull request #5173 from nyalldawson/model_crash_win
[processing] Fix crash in modeler on Windows
2017-09-12 20:13:01 +10:00
Nyall Dawson
cf16a82419 Fix indentation 2017-09-12 19:23:37 +10:00
Mathieu Pellerin
9b8fad515f [ogr provider] insure connection pool updated when subset sql added/changed (#5172) 2017-09-12 15:27:41 +07:00
Alexander Bruy
06c5d24ebb Merge pull request #4440 from alexbruy/gdal-compression
expose image compression in the layer metadata (fix #15702)
2017-09-12 10:32:48 +03:00
Martin Dobias
220b58d0c9 Fix vertex+segment vs segment snapping type
When user picked snapping to current layer / all layers, snapping to
vertex+segment vs segment were working the other way around
(advanced configuration was working correctly though)
2017-09-12 09:25:11 +02:00
Nyall Dawson
6bd37cc506 [processing] Fix crash when editing models on Windows (fix #17028) 2017-09-12 17:12:13 +10:00
Nyall Dawson
4a974eab18 Cleanup model algorithm parameter definition dialog 2017-09-12 17:12:13 +10:00
Etienne Trimaille
814ef78732 write metadata with XML 2017-09-12 07:28:54 +02:00
Nyall Dawson
88c8c71422 Daily Q_FOREACH removal 2017-09-12 10:44:10 +10:00
Nyall Dawson
8fcad6aed9 [processing] List 'All files (*.*)' option last in save as dialogs
See https://ux.stackexchange.com/questions/111689/file-dialog-formats-list-should-all-files-be-listed-first-or-last for discussion:

- for 'file open' dialogs, wildcard options should be listed first
- for 'file save' dialogs, wildcard options should be listed last
2017-09-12 10:20:52 +10:00
Juergen E. Fischer
3d3b6d1a25 Fix windows build 2017-09-12 00:48:40 +02:00
Nyall Dawson
311a24a7d5 Merge pull request #5166 from nyalldawson/tidy
clang-tidy fixes
2017-09-12 05:36:24 +10:00
Martin Dobias
6772541720 CAD dock: fix a typo -> enable new snapping option
When X or Y is locked and user has mouse on top of a segment, CAD dock widget
will snap at the intersection of the segment and the axis.
2017-09-11 17:06:47 +02:00
Martin Dobias
494fa15fe0 Fix node tool sometimes behaving incorrectly with topo editing
This would happen especially when zoomed out due to mismatch of snapping match vs original map point
2017-09-11 16:45:33 +02:00
Martin Dobias
7c9105d0eb Only update CAD canvas item geometry when necessary
The call to setRect() in paint() handler was triggering canvas redraws
all the time, keeping one CPU core busy nearly all the time when
CAD dock was active.
2017-09-11 15:43:20 +02:00
Martin Dobias
bb20047507 Make CAD dock work well with node tool when adding vertex at endpoint 2017-09-11 14:49:26 +02:00
Nyall Dawson
9b04589ce7 More missing docs 2017-09-11 21:55:20 +10:00
Nyall Dawson
6166d21289 Add missing docs 2017-09-11 21:43:15 +10:00
Nyall Dawson
727d20927d Add missing override keyword 2017-09-11 21:30:05 +10:00
Nyall Dawson
ce3ac5f4d6 Fix clang-tidy misleading comment warning 2017-09-11 21:29:47 +10:00
Nyall Dawson
839c3e506a Remove redundant code 2017-09-11 21:29:30 +10:00
Nyall Dawson
7855849677 Use std::move to reassign unique_ptrs 2017-09-11 21:29:02 +10:00
Nyall Dawson
68ad9feab0 Fix clang-tidy int to bool conversion warning 2017-09-11 21:28:41 +10:00
Nyall Dawson
6ca50a023e Fix clang-tidy redundant .get() calls 2017-09-11 21:28:10 +10:00
Nyall Dawson
f2875a9639 Fix clang-tidy redundant return/continue warnings 2017-09-11 21:27:41 +10:00
Nyall Dawson
357f998e44 Remove redundant virtual keyword from signatures with override 2017-09-11 21:27:02 +10:00
Nyall Dawson
b7f21446d9 Fix clang-tidy use emplace_back instead of push_back warnings 2017-09-11 21:26:27 +10:00
Nyall Dawson
2716127969 Remove more unnecessary destructors, flip empty constructors to =default 2017-09-11 21:25:29 +10:00
Nyall Dawson
c17978043c Use .empty() instead of .size() > 0/.size() >=1/etc
Possibly faster, and clearer to read
2017-09-11 21:21:45 +10:00
Nyall Dawson
2a33844416 Pass by const ref where possible 2017-09-11 21:19:22 +10:00
Martin Dobias
68a39a2820 Fix settings icon for CAD dock widget
Previously it used an icon from georeferencer's QRC
2017-09-11 12:53:48 +02:00
Alessandro Pasotti
2e8d7f0378 Fix broken signals for AFS/AMS layer addition from the datasource dialog 2017-09-11 09:26:41 +02:00
Nyall Dawson
c9fa976524 Use =delete to remove default functions
Via clang-tidy modernize-use-equals-delete
2017-09-11 17:11:50 +10:00
Nyall Dawson
d9ebd3b84b Remove some unnecessary delete guards
Via clang-tidy readability-delete-null-pointer
2017-09-11 17:11:50 +10:00
Nyall Dawson
ccf0dc8fa3 Remove some unnecessary initializers
From clang-tidy readability-redundant-member-init
2017-09-11 17:11:50 +10:00
Nyall Dawson
b468ab3ee5 Simplify boolean expressions
By applying clang-tidy readability-simplify-boolean-expr fixit
2017-09-11 17:11:50 +10:00
Nyall Dawson
7afec4bd98 Cleanup pointer comparisons to nullptr 2017-09-11 17:11:50 +10:00
Nyall Dawson
b20b831635 0/NULL -> nullptr
Using clang-tidy modernize-use-nullptr
2017-09-11 17:11:49 +10:00
Nyall Dawson
904aaefee4 Avoid casting int to bool
Using clang-tidy modernize-use-bool-literals
2017-09-11 17:10:31 +10:00
Nyall Dawson
851c081105 Remove use of deprecated header 2017-09-11 17:10:31 +10:00
Nyall Dawson
c78ca050c0 Ignore =default during doxygen coverage test 2017-09-11 17:10:31 +10:00
Nyall Dawson
07e12e2832 Replace reimplemented default methods by = default
Using clang-tidy modernize-use-equals-default
2017-09-11 17:10:31 +10:00
Nyall Dawson
ba64e3e533 Remove redundant initializations
Fixes when a member is initialized both in the header and
source to the same initial value

(via clang-tidy modernize-use-default-member-init fixit)
2017-09-11 17:09:35 +10:00
Alessandro Pasotti
32dee4480c Merge pull request #5156 from boundlessgeo/gpkg_tab
[feature][needs-docs] Gpkg tab in source select dialog
2017-09-11 08:15:55 +02:00
Nyall Dawson
a650681061 Merge pull request #5131 from nyalldawson/location_algs
Rework Select by Location algorithm
2017-09-11 15:50:43 +10:00
Nyall Dawson
7f5bd00cbf Merge pull request #5154 from nyalldawson/stats
[processing] Improve Stats by Categories algorithm, remove duplicate algs
2017-09-11 15:50:16 +10:00
Nyall Dawson
cf8afc1e5b Merge pull request #5159 from alexbruy/fix-filter
[processing] fix file filter construction for output files
2017-09-11 11:37:59 +10:00
Martin Dobias
8aeffdb457 Reduce debugging noise when using curved geometries 2017-09-10 18:52:07 +02:00