13288 Commits

Author SHA1 Message Date
Matthias Kuhn
7ab6597150
Merge pull request #7288 from m-kuhn/19137
Take changes of embedded forms into account
2018-06-22 10:14:41 +02:00
Salvatore Larosa
648b588417 [pyqgis-console] APIs file updated 2018-06-22 09:35:23 +02:00
Nyall Dawson
41d6b9d967 Silence more plotly warnings on import 2018-06-22 14:26:55 +10:00
Nyall Dawson
6e7c07bc86 Mark regex 2018-06-22 13:37:58 +10:00
Nyall Dawson
398e2a17dd [console] Fix invalid regex warning 2018-06-22 13:37:58 +10:00
Nyall Dawson
12efb8669e [dbmanager] Fix error when connecting to postgis db
Fixes #19240
2018-06-22 13:37:58 +10:00
Nyall Dawson
635f8ad7ca Add QgsFileUtils::findClosestExistingPath to find the closest
existing folder match for a path

E.g. if \a path is "/home/user/projects/2018/P4343"
and "/home/user/projects" exists but no "2018" subfolder
exists, then the function will return "/home/user/projects".

(Suprisingly no existing Qt method for this!)
2018-06-22 10:45:00 +10:00
Nyall Dawson
757949bac0 Add missing references 2018-06-22 09:43:19 +10:00
Etienne Trimaille
6eeaca5570 return the default style first in the list 2018-06-22 09:23:47 +10:00
Martin Dobias
4c84cfa29a Fix a memory leak in classify() + add missing annotations/docstrings
A pseudo color renderer was getting created in classify() but never deleted.

Spotted by @PeterPetrik

As a bonus switched a for loop from mixed constBegin()/end() usage to range for.
2018-06-22 05:48:46 +10:00
Denis Rouzaud
ad00020366 QgsSettings.enumValue cast to enum 2018-06-21 05:29:16 -08:00
Denis Rouzaud
01681aba89 fix missing import 2018-06-21 05:29:16 -08:00
Denis Rouzaud
7dfec1fde0 [pyqgis] add misssing QgsSettings.setEnumValue
also fix sections in enumValue and flagValue
2018-06-21 05:29:16 -08:00
Matthias Kuhn
0749835071
Take changes of embedded forms into account
when clicking on ok of an attribute form, tell all embedded widgets (all
widgets actually) that we are going to close the form and it's the last
call to push changes to the edit buffer or they will be lost.

Fix #19137
2018-06-21 11:50:20 +02:00
Nyall Dawson
981c6686c0 Dox++ 2018-06-21 18:22:55 +10:00
Nyall Dawson
2ed547219a Add globs to information returned by QgsVectorFileWriter.supportedFiltersAndFormats 2018-06-21 18:22:55 +10:00
Denis Rouzaud
f749c521a9 use Q_ENUM for QgsLocator::Priority 2018-06-20 11:21:25 -08:00
Nyall Dawson
77d22849d9 Fix calculation of relation aggregate in virtual field with same name as related field 2018-06-20 15:23:55 +10:00
Nyall Dawson
4132dbc1c8 Typo 2018-06-20 15:06:36 +10:00
Nyall Dawson
8d6ce61a70 [processing] Silence warnings thrown from within plotly on import 2018-06-20 08:07:23 +10:00
Nyall Dawson
16ac437780 [processing] Fix bar and box plot exception when category field has NULL values 2018-06-20 08:07:23 +10:00
Denis Rouzaud
ff1988f11d Python __repr__ test output 2018-06-19 13:55:53 -04:00
Denis Rouzaud
763dfd2998 use SIP to define Python __repr__ rather than injections
because it's a bit more clever!
2018-06-19 07:58:26 -04:00
Denis Rouzaud
cc3e29bcc2 add __repr__ for more geometry classes and add test 2018-06-19 07:02:17 -04:00
Denis Rouzaud
ac4f508c13 create Python __repr__ methods for QgsPoint and QgsPointXY 2018-06-19 07:02:17 -04:00
Nyall Dawson
a2ef677912 Add method to toggle user visibility of QgsDockWidgets 2018-06-19 17:22:12 +10:00
Nyall Dawson
4059c9b71d Move some more common geometry methods to headers to allow compiler inlining 2018-06-19 13:16:02 +10:00
Nyall Dawson
077ecedfc5 Unit tests for QgsMessageLog 2018-06-19 06:23:58 +10:00
Nyall Dawson
949853a0e0 Add API for temporarily suppressing user notifications for
message log critical/warning messages

These messages are still logged, but the log indicator is not
modified to flag their appearance.

This allows certain error messages to be logged (e.g. on startup)
which cannot be fixed by users/developers (e.g. those caused
by upstream Qt issues, 3rd party Python libraries, etc) but
without flagging them.

Currently, we get so many of these warnings on startup that the
log indicator loses all impact, and newly introduced, VALID
errors go unnoticed/ignored.
2018-06-19 06:23:58 +10:00
Nyall Dawson
00f0583325 Fix doc test 2018-06-18 23:14:45 +10:00
Nyall Dawson
68b38b2daf Add a signal when a project is cleared 2018-06-18 23:14:45 +10:00
Nyall Dawson
a17b77be56 [processing][gdal] Add missing parameters for buildvrt algorithm 2018-06-18 10:28:27 +10:00
Nyall Dawson
76b13ff4c4 [processing][gdal] More descriptive name for separate parameter
in buildvrt algorithm

Fixes #19212
2018-06-18 10:28:27 +10:00
Nyall Dawson
4fb9091e6e QgsRectangle::intersect should use a reference, not a pointer
We never call this method using nullptrs, so there's no need
for this to be a pointer argument in the first place. And
having it a pointer encourages leaky code, such as the
leak this commit fixes in server.
2018-06-18 07:55:17 +10:00
Nyall Dawson
184b0ef2a9 Remove unnecessary code
QObjects cannot be copied anyway
2018-06-17 15:09:07 +10:00
Nyall Dawson
b643465b12 Fix build, dox++ 2018-06-17 15:09:07 +10:00
Nyall Dawson
6470aacb33 Ban QScopedPointer/QSharedPointer 2018-06-17 15:09:07 +10:00
Denis Rouzaud
8503896674
[locator] add clearPreviousResults virtual method (#7256)
* [locator] add clearPreviousResults virtual method

* also clear previous results when triggering result
2018-06-16 19:04:59 -08:00
Nyall Dawson
7a9b2980ea Fix doxygen warning 2018-06-17 11:15:10 +10:00
Marco Hugentobler
e76ca64eae Consider PR feedback 2018-06-17 11:11:39 +10:00
Marco Hugentobler
49cce29268 \param instead of @param 2018-06-17 11:11:39 +10:00
Marco Hugentobler
18f0af8c23 Port dxf export improvements to QGIS 3 2018-06-17 11:11:39 +10:00
Nyall Dawson
a4c8386e88 [sipify] Replace std::numeric_limits with old style DBL_MAX/etc 2018-06-17 09:24:37 +10:00
Nyall Dawson
47e7a100d9 DBL_EPSILON -> numeric_limits 2018-06-17 09:24:37 +10:00
Nyall Dawson
ac17d300ca DBL_MAX -> std::numeric_limits 2018-06-17 09:24:37 +10:00
Nyall Dawson
8323462f3b [processing][saga] Fix definition of cross profiles alg, add test 2018-06-16 15:35:31 +10:00
Even Rouault
6a987f913b
[OGR provider] [FEATURE] Add support for transactions on GPKG databases
For complete support, it requires two GDAL fixes:
- One to avoid feature count to be invalid when using ROLLBACK TO SAVEPOINT
  f73ec8cd1d

- Another one to avoid nasty issues, at least on Linux, with the POSIX
  advisory locks used by libsqlite that could be invalidated due to how GDAL
  could open files behind the back of libsqlite. The consequence of this
  could be the deletion of -wal and -shm files, which caused issues in QGIS
  (non working iterators when the edit is finished, and later edits in the
  same session not working). Those issues could appear for example if doing
  ogrinfo on the .gpkg opened by QGIS, or if opening two QGIS session on the
  .gpkg

Both fixes are queued for GDAL 2.3.1
2018-06-15 12:56:59 +02:00
Matthias Kuhn
66ad9d99dd
Merge pull request #7055 from m-kuhn/wfsNoMainThreadEventLoopb
Avoid running QEventLoop on main thread (in WFS provider)
2018-06-15 08:57:50 +02:00
Nyall Dawson
6b08eff655 Spelling 2018-06-15 13:48:43 +10:00
Nyall Dawson
55a54b0971 [processing][saga] Fix duplicate confusion matrix algs
Fixes #19188
2018-06-15 13:48:43 +10:00