55154 Commits

Author SHA1 Message Date
Marco Bernasocchi
e213bde9c1
Merge pull request #9935 from mbernasocchi/fix_profiles_profiles
remove redundant /profiles when QGIS_CUSTOM_CONFIG_PATH is set
2019-05-06 17:39:53 +02:00
Mathieu Pellerin
7376e6f82c Add tests 2019-05-06 22:07:00 +07:00
Mathieu Pellerin
eacc506a5a Add a REGEXP function in spatialite_connect() python function
This enables DB Manager and the Spatialite Execute SQL algorithm
to use the 'string REGEXP pattern' syntax.
2019-05-06 22:07:00 +07:00
Mathieu Pellerin
47faac5661 [FEATURE][spatialite] Add a REGEXP function to use for SQL filter et cie 2019-05-06 22:07:00 +07:00
Even Rouault
1148ecb1c1
Merge pull request #9932 from rouault/fix_build_without_qtwebkit
Fix build without WITH_QTWEBKIT
2019-05-06 16:47:33 +02:00
Marco Bernasocchi
b6ec94515f remove redundant /profiles when QGIS_CUSTOM_CONFIG_PATH is set
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
2019-05-06 16:30:43 +02:00
Marco Bernasocchi
24259f92a8
Merge pull request #9931 from mbernasocchi/fix_log
fix wrong SVG PATHS logging on server startup
2019-05-06 15:50:10 +02:00
Even Rouault
6efe30c48f
Fix build without WITH_QTWEBKIT 2019-05-06 15:33:58 +02:00
Marco Bernasocchi
cfe4d8e1d3 fix wrong SVG PATHS logging on server startup
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
2019-05-06 14:52:58 +02:00
vcloarec
fe39b26684 Add test for QgsMeshLayer::reload() and QgsMdalProvider()::reloadData()
Add test and data file for new test
2019-05-03 15:26:22 +02:00
vcloarec
109049ea86 Implementation of QgsMeshLayer::reload() and QgsMdalProvider::reloadData()
Implementation of this override method permit to reload mesh end dataset groups when the data changed outside of the QGIS application.
2019-05-03 15:26:22 +02:00
vcloarec
244bb5543a Fix crash when open project containing a mesh with a extras dataset groups with incompatible mesh
QGis application crash when opening a project contain a mesh layer with a dataset groups wich has a incompatible mesh. It can  happen when the dataset groups file change after first loading.
2019-05-03 15:26:22 +02:00
Marcel Dancak
9820bb4fa9 [processing] updated test files - tiles with transparent background 2019-05-03 13:43:15 +02:00
Marcel Dancak
b1106b9f1e [processing] fix #21958 used sqlite3 module instead of GDAL/ORG's SQLite driver 2019-05-03 13:43:15 +02:00
Nyall Dawson
346cb388cf Fix duplicate layers in custom layer order panel
Fixes #21955
2019-05-03 12:54:03 +10:00
vsklencar
9dcdbbcff4 [QgsQuick] Modified Checkbox widget
Replaced checkbox with switch.
Registered QVariant::Type to recognize field type. When value was empty/not set, it wasn't clear what is a type of field. It caused wrong behavior while setting default un/checked state.
2019-05-02 14:01:15 +02:00
Nyall Dawson
1d258d53c6 Nicer behaviour of QgsCharacterSelectorDialog 2019-05-02 20:38:21 +10:00
Nyall Dawson
25f20f44c1 Fix resizing of QgsCharacterSelectorDialog 2019-05-02 20:38:21 +10:00
Nyall Dawson
bcb6183db0 Allow home/end to jump to first/last character 2019-05-02 20:38:21 +10:00
Nyall Dawson
dd47298090 Draw missing character backgrounds with different color 2019-05-02 20:38:21 +10:00
Nyall Dawson
57fa54763a Nicer way of ensuring selected character is in view 2019-05-02 20:38:21 +10:00
Nyall Dawson
c534f5f3ee Don't draw background outside of character columns 2019-05-02 15:13:38 +10:00
Nyall Dawson
243acb328f Dynamically set number of columns to show in character widget
based on widget width, and avoid unnecessary horizontal scroll bar
2019-05-02 15:13:38 +10:00
Nyall Dawson
ffe02c37b6 Allow QgsScrollArea to maintain horizontal width of area for
child widgets, and apply scroll area to vertical contents only
2019-05-02 15:13:38 +10:00
Nyall Dawson
5a57336880 Don't try to draw characters which don't exist in current font 2019-05-02 15:13:38 +10:00
Nyall Dawson
30f1c97341 Allow navigation of character widget with arrow cursor keys 2019-05-02 15:13:38 +10:00
Nyall Dawson
bd13c36061 Auto emit characterSelected signal 2019-05-02 15:13:38 +10:00
Matthias Kuhn
ac6ed1a18c Doxygen for QgsSymbolLayer::setRenderingPass 2019-05-02 07:16:14 +10:00
Juergen E. Fischer
4ee40991a8 query builder: fix #21805 & #21966 & #21967 2019-05-01 21:21:47 +02:00
nirvn
107c7a8d54 [ui] Fix broken text annotation background color 2019-05-01 09:55:58 +07:00
nirvn
3747cf7870 [FEATURE][symbology] Unlock string as character for font markers 2019-04-30 18:32:03 +07:00
Luigi Pirelli
0f01359b90
Merge pull request #9880 from troopa81/fix_pointpick_precision
Fix point picking precision for point parameters in processing dialog
2019-04-30 12:33:11 +02:00
nirvn
a665eac175 Follow up dc7bfc5 : QString::back() too recent to use 2019-04-30 16:11:15 +07:00
nirvn
dc7bfc5cd3 [FEATURE][ui] Add a line edit to type character for the font marker
The line edit also supports pasting of unicode code in decimal or
hexadecimal format (i.e. 123 or 0x2713).

In addition, the character widget now grabs the keyboard
focus and will change the selected character based on
key stroke.
2019-04-30 15:42:20 +07:00
Alessandro Pasotti
f70acf260b
Merge pull request #9901 from nyalldawson/invalid_qlr
Allow loading QLR files with invalid sources
2019-04-30 09:11:53 +02:00
Julien Cabieces
9cfaf10c42 Never use scientific notation 2019-04-30 09:08:39 +02:00
Nyall Dawson
78ccd4171e Disable some layer context menu actions for invalid layers 2019-04-30 16:34:31 +10:00
Nyall Dawson
72febb35e9 Allow loading QLR files with invalid sources
E.g. if the layer path has moved, we still should allow these
files to be read, so that the layer path can be fixed by the user
manually.
2019-04-30 16:34:31 +10:00
Nyall Dawson
fa60a7ecbf Avoid ugly super-narrow annotation balloon callout lines at some angles 2019-04-30 15:21:39 +10:00
Nyall Dawson
38ef62e1cc Fix incorrect annotation scaling when exporting layouts
Previously, annotation size and position always used pixel units. This
did not work well when exporting layouts, resulting in tiny annotations
(it also caused issues when moving projects between hidpi/non hidpi
displays).

Instead, use millimeters for annotation size and position so that the
appearance is consistent across displays and works correctly in layout
exports.

Add lots of unit tests covering this.

Fixes #18373
2019-04-30 15:21:39 +10:00
Nyall Dawson
070de69e30 [processing] Fix incorrect columns hidden when toggling advanced params in batch mode 2019-04-30 14:43:58 +10:00
Nyall Dawson
1d80fe8a19 Review comments 2019-04-30 14:43:58 +10:00
Nyall Dawson
c12fd877ed [processing] Remove selected rows from batch table, not always last row 2019-04-30 14:43:58 +10:00
Nyall Dawson
ec4cfed694 Fix broken see link 2019-04-30 14:43:58 +10:00
Nyall Dawson
9f43f2f608 [FEATURE][processing] New "Add values by expression" option for
populating batch processing dialog

This option adds news rows using the values from an expression
which returns an array. (As opposed to "Calculate by Expression",
which works only on existing rows).

The intended use case is to allow populating the batch dialog
using complex numeric series, e.g. those created by the "generate_series"
expression function.

For example, adding rows for a batch buffer using the expression

    generate_series(100, 1000, 50)

(results in new rows with values 100, 150, 200, .... 1000)
2019-04-30 14:43:58 +10:00
Nyall Dawson
ee7daa8db7 [FEATURE][processing] Add option to calculate parameter values by expression in batch dialog
This new option is available under the Autofill menu for a column. Selecting it allows users
to create a new QGIS expression to use to update the value inside that column. Existing
parameter values (including those from other columns) are available for use inside
the expression via @variables.

E.g. this allows setting output file names to complex expressions like
'/home/me/stuff/buffer_' || left(@input, 30) || '_' || @distance || '.shp'
2019-04-30 14:43:58 +10:00
Nyall Dawson
185172a946 Refactor creation of batch dialog row algorithm parameters 2019-04-30 14:43:58 +10:00
Nyall Dawson
e6e39173b2 [FEATURE][processing] In batch mode, allow population of file/layer
input columns by searching for files matching a specified pattern

With optional recursive search!
2019-04-30 14:43:58 +10:00
Nyall Dawson
3f4c3d0722 Add widget and dialog for finding files by pattern match, with an
optional recursive search
2019-04-30 14:43:58 +10:00
Nyall Dawson
5edf06a5bc [processing][needs-docs] Move batch execution double-click-to-fill-down
to an explicit widget in the table

The double-click-header action is very hidden, and many users will
not stumble upon this. By moving it to an explicit "Autofill" widget at the
top of the table, we make this important action much more user
discoverable.

It also gives the possibility of other, parameter specific, autofill
actions (e.g. fill by expression, fill by file pattern)
2019-04-30 14:43:58 +10:00