56681 Commits

Author SHA1 Message Date
sklencar
f5fe4cb010 [QgsQuick] Custom filepaths for external resource widget (#30929)
* Enabled using default path for external resources.
Value (filepath) can be relative to either project path or default root according field setup/config

* [QgsQuick] Added signal of event when a captured photo is confirmed. That enables custom handling of the action by externalResourceHandler.
Renamed Ok Button of PhotoPanel.

* [QgsQuick] Cleaning source of preview image after closing it
It was causing unpleasant effect when last taken photo has been shown for a short while before previewing another.

* [QgsQuick]
Evaluate and use defaultRootPath in a config of the external resource widget.
Added a function to evaluate expressions for QgsQuick

* [QgsQuick] Use Loader to load photo panel only when its going to be used.
Also prevents for asking camera permissions on form open, when photo panel was initialized as well.

* [QgsQuick] Better wrapping of a long filenames text in the external source widget if an image is not available.

* [QgsQuick] Use canonical path in function
Symlinks are used a lot on Android, therefore its better to use canonical paths.

* [QgsQuick] formatted code.

* [QgsQuick] External source widget - changes requested in review
Fixed test and added one test case for getting relative path.

* [QgsQuick] External widget update
Added function that returns absolute path of image according widget's config - takes into account relative/absolute setting for value and default path.
Added docs about how a path can be configured and used.

* [QgsQuick] External widget update
* removed lefover property
* corrected getAbsolutePath function

* [QgsQuick] Corrected function and fixed test
Do not use canonical path for non-existing file while getting relative path.
2019-08-02 13:30:11 +02:00
Nyall Dawson
37b7b84d8b Fix data defined legend size when using seperated symbols
Fixes #26929
2019-08-02 10:13:10 +10:00
Alessandro Pasotti
e998757961
Merge pull request #31039 from elpaso/pg_raster_support
Expose PostGIS rasters to the browser and the source select dialog
2019-08-01 20:57:33 +02:00
Julien Cabieces
4f7975d2dc Fix WMS GetMap 8bit mode with transparency (#31014)
* Fix WMS GetMap 8bit mode with transparency

* Correct indentation

* Remove french text in qgs test project

* Correct render checker for 8bit image

* Remove empty line
2019-08-01 17:14:43 +02:00
Alessandro Pasotti
25da979f40 Expose PostGIS rasters to the browser and the source select dialog
PostGIS rasters are actually opened with GDAL
2019-08-01 15:13:10 +02:00
Nyall Dawson
2835ed6732 Fix potential crash in marker symbol layer
(the expression context scope wasn't being deleted in all return
paths, resulting in crashes when rendering was complete and
everything was being cleaned up)

And some other code safer against this same risk
2019-08-01 18:41:54 +10:00
Nyall Dawson
ba55fb3e0a Use real symbol buttons in categorized and graduated renderer widgets,
instead of fake ones

Gives these buttons the full power of the usual QgsSymbolButton,
including copy/paste symbols, color/opacity changes, etc. Plus,
some nice additional interface consistency!
2019-08-01 16:03:47 +10:00
Nyall Dawson
66ea97d4e2 Ensure project is dirtied when editing symbols/color via layer tree
Also ensure layer style dock is always in sync with changes made
via layer tree
2019-08-01 15:16:33 +10:00
Harrissou Sant-anna
292efc2bf8 Add minimal description to Processing algorithms
enabling the right-hand help panel
2019-08-01 09:19:08 +10:00
Alban Kraus
7084cb0499 PostgreSQL foreign tables: handle them like views (fixes #30990) [needs-docs]
PostgreSQL foreign tables are not explicitely supported by the PosgreSQL provider.
This commit removes the error message, and handle foreign tables like views.

A foreign table cannot (in PostgreSQL <10) state what column
is the primary key, so we let the user tell QGIS.
2019-08-01 09:05:53 +10:00
Nyall Dawson
06d24e100a Standardise wording and capitalization 2019-08-01 09:02:43 +10:00
Nyall Dawson
193f520ad9 Deprecate existing QgsCustomDropHandler::handleMimeData method,
and add handleMimeDataV2 method which returns a bool

This allows custom drop handlers to indicate that they've fully
handled dropped mime data, and that no further processing should
be done on the mime data
2019-08-01 04:29:34 +10:00
Nyall Dawson
43addee52d Open color picker inline when selecting "change symbol color" from right click menu
in categorized, graduated or rule based renderer widgets
2019-07-31 20:50:28 +10:00
Nyall Dawson
55efeaeb2f [FEATURE] Add copy/paste symbol action to right click menu in categorized/graduated/rule based renderers
Allows symbols to be easily copied and pasted between these nodes
2019-07-31 20:49:43 +10:00
Nyall Dawson
47f83b582f [FEATURE] Add "copy symbol" and "paste symbol" actions to layer right click, style menu
Allows for individual symbols to be copied and pasted between layers or rule/categorized/graduated
nodes
2019-07-31 20:49:43 +10:00
Juergen E. Fischer
d40b387a9e translation string fixes 2019-07-31 10:20:56 +02:00
Nyall Dawson
a0f6ee7541 Sipify 2019-07-31 11:03:06 +10:00
Sandro Mani
c13ee77903 Add missing header to QGIS_CORE_HDRS 2019-07-31 11:03:06 +10:00
Sandro Mani
ed4f185284 Generally chop /bin for pkgDataDir on Windows 2019-07-31 11:03:06 +10:00
Sandro Mani
0a3ec2689a Fix case of dbghelp library 2019-07-31 11:03:06 +10:00
Sandro Mani
769afbb87a Allow specifying native crssync when cross compiling 2019-07-31 11:03:06 +10:00
Sandro Mani
1ed3c91409 Only use pyuic-wrapper.bat when compiling on windows hosts 2019-07-31 11:03:06 +10:00
Sandro Mani
dbb2aa2002 Fix invalid use of EXISTS used to check whether a variable is set 2019-07-31 11:03:06 +10:00
Sandro Mani
5c5237149c Pass NO_CMAKE_FIND_ROOT_PATH when invoking FIND_FILE to find local files
Otherwise, when cross-compiling, the prefix of the cross environment (i.e. /usr/x86_64-w64-mingw32/) is prepended to the path, leading to the files not being found
2019-07-31 11:03:06 +10:00
Harrissou Sant-anna
f051d0a1a7 Apply suggestions from code review
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-07-31 06:42:42 +10:00
Harrissou Sant-anna
9df1764ef6 [Feature] Enable widget filtering in Interface Customization dialog
Adds a search text box to allow filtering through the widgets when
customizing the interface
2019-07-31 06:42:42 +10:00
vsklencar
390f594498 [QgsQuick] Range widget update
Different background color when a widget is enabled/disabled
2019-07-30 22:29:22 +02:00
vsklencar
a9db87a9c4 [QgsQuick] Small visual fixes of a range widget 2019-07-30 22:29:22 +02:00
vsklencar
1a414ef16c [QgsQuick] Added SpinBox beside Slider for a range field.
Formatted
2019-07-30 22:29:22 +02:00
vsklencar
35c9ee3e66 [QgsQuick] Added SpinBox beside Slider for a range field. 2019-07-30 22:29:22 +02:00
vsklencar
e506bb18a0 [QgsQuick] Added Range widget
Suppose to be used in Feature form as a editor widget for a number field of type 'range'.
2019-07-30 22:29:22 +02:00
Nyall Dawson
6646a009d3 Swap a QDoubleSpinBox for QgsDoubleSpinBox 2019-07-31 05:09:27 +10:00
Nyall Dawson
6c06538812 Code style 2019-07-31 05:09:27 +10:00
Nyall Dawson
4e21ef5e58 Use a double spin box for Add Circle by 2 Tangents and Point tool
Otherwise non-integer radiuses cannot be used
2019-07-31 05:09:27 +10:00
Nyall Dawson
7377626996 Revise map tip cursor offset calculations to better handle hidpi screens
Fixes #28337
2019-07-31 05:09:03 +10:00
Alexandre Neto
6a1b57214d Better Support to hidpi 2019-07-31 05:09:03 +10:00
Alexandre Neto
8b052fd1c8 Moves MapTip away from the mouse cursor 2019-07-31 05:09:03 +10:00
Nyall Dawson
b9482dda6b Dox++, unit tests 2019-07-31 05:08:37 +10:00
Sandro Mani
62f5f5e8e3 Add QgsLayerTreeView::setLayerVisible 2019-07-31 05:08:37 +10:00
Nyall Dawson
99fce61d3b Add unit tests for QgsUnitTypes::areaToDistanceUnit 2019-07-31 05:08:12 +10:00
Nyall Dawson
03e2c4dae7 Add since 2019-07-31 05:08:12 +10:00
Sandro Mani
91d5c2d55c Add QgsUnitTypes::areaToDistanceUnit 2019-07-31 05:08:12 +10:00
Nyall Dawson
a123a51b5f Optimisations for shapeburst fill rendering 2019-07-31 05:07:48 +10:00
Nyall Dawson
ee29b4c5ca Use QgsImageOperation optimized implementation of stackblur in shapeburst fill 2019-07-31 05:07:48 +10:00
Nyall Dawson
43068c66f6 Move stackblur operation to header so it can be inlined 2019-07-31 05:07:48 +10:00
Nyall Dawson
041aa70724 Const 2019-07-31 05:07:17 +10:00
Nyall Dawson
e02591c09b Much faster copying of expression contexts with a project scope present 2019-07-31 05:07:17 +10:00
Nyall Dawson
5af2e52fff Allow custom drop handlers to indicate that they will accept a mime type
in advance

Allows non-standard mime types to be dropped onto the QGIS window,
which will be handled by custom drop handlers
2019-07-31 05:06:50 +10:00
Nyall Dawson
0238f98471 Simplify method 2019-07-31 02:51:46 +10:00
Sandro Mani
3cf94e98fc Inizialize QgsGpsInformation with sane values, add QgsGpsInformation::isValid and QgsGpsInformation::fixStatus 2019-07-31 02:51:46 +10:00