51185 Commits

Author SHA1 Message Date
Matthias Kuhn
3522518bec
Do not add allowCommit to Python bindings 2018-10-05 08:43:13 +02:00
Nyall Dawson
2f89139ce3 Fix up test 2018-10-05 16:00:36 +10:00
Nyall Dawson
3fc0e69fb3 [mssql] Add unit test for #15305 2018-10-05 16:00:36 +10:00
Nyall Dawson
17b80c1492 [mssql] Implement native uniqueStringsMatching method, should speed up provider queries 2018-10-05 16:00:36 +10:00
Nyall Dawson
4986d43247 [mssql] Fix crash when requesting min/max/unique values from invalid field index 2018-10-05 16:00:36 +10:00
Nyall Dawson
a6ae6c1702 Add a provider test for a crash experienced in SQL Server provider 2018-10-05 16:00:36 +10:00
Nyall Dawson
b7f5a3c1ea [mssql] Fix shifted attributes after importing layers via browser
drag and drop

Fixes #15305
2018-10-05 16:00:36 +10:00
Nyall Dawson
57fcf439ba Boundary alg cannot run in-place mode 2018-10-05 15:44:51 +10:00
Nyall Dawson
10095ce0ef [mssql] Compile some simple expression functions
Should speed up lots of querying operations on sql server layers
2018-10-05 11:34:49 +10:00
Nyall Dawson
1d9086c75d [mssql] Allow compilation of int div expressions 2018-10-05 11:34:49 +10:00
Nyall Dawson
4a687a07f7 [mssql] Fix integer division compilation
Makes sql server provider pass conformance tests again!
2018-10-05 11:34:49 +10:00
Nyall Dawson
3df8c75db8 [mssql] Update list of uncompilable expressions 2018-10-05 11:34:49 +10:00
Nyall Dawson
8cad2a6e16 [processing] Fix random selection count parameter
Remove a bunch of manual "max" values for numeric parameters
where the maximum just represents a 'large number' and not a real
constraint, and let the default parameter max value handling kick in instead.

In the case of random selection the max value exceeded the possible
range for integers in spin boxes and broke the widget.

Fixes #20015
2018-10-05 10:48:17 +10:00
Juergen E. Fischer
e3e9297633 sip fix for xenial 2018-10-05 01:37:32 +02:00
Nyall Dawson
234985b59d [needs-docs][labeling] Fix substitutions don't play well with wrapped labels
Fixes an issue identified in the upcoming QGIS Map Design 2nd ed
(spoiler alert!) where it's impossible to utilise label text
substitutions if you also want to use word wrapping.

This isn't possible to directly fix, because we need to evaluate
the full label expression (including the word wrapping component)
in order to actually HAVE text to substitute into.

So, a new setting has been added to the label formatting tab
allowing users to directly set an auto-wrapping line ideal
line size. This is applied AFTER label text evaluation, substitutions,
and the 'wrap text on' character, so it can play correctly well with
all these other settings. This also has the nice side-effect
of making auto label text wrapping more accessible to new
users/those unfamiliar with the wordwrap expression function.

Fixes #20007, and cleans up a chapter of QMD 2ed ;)
2018-10-05 06:58:56 +10:00
Nyall Dawson
dce8673d21 Move guts of wordwrap expression function to QgsStringUtils::wordWrap
To allow use outside of expressions
2018-10-05 06:58:56 +10:00
Denis Rouzaud
9363aeb8c6 remove useless script 2018-10-04 16:20:20 -04:00
Denis Rouzaud
e1f611bae5 also do raster layer properties 2018-10-04 15:46:34 -04:00
Denis Rouzaud
3ffd72a89c create joined layer to feed the join tab in vector layer properties 2018-10-04 15:22:53 -04:00
Nyall Dawson
706b13a47b [processing] Make 'canvas extent' its own menu item in the extent
selection parameter button, instead of requiring opening the
'select layer/canvas extent' and choosing 'canvas extent'

It's only one extra click, but I don't think there's any reason
against saving this click!
2018-10-05 05:17:19 +10:00
Denis Rouzaud
c842e544c3 fix flag and group vector layer properties 2018-10-04 15:01:58 -04:00
Denis Rouzaud
2240e1fcfa add screenshots of global options 2018-10-04 14:54:57 -04:00
Denis Rouzaud
18f6562898 save screenshots to sub-folders 2018-10-04 14:01:31 -04:00
Denis Rouzaud
b0e1cf5fe3 use absolute positioning for cropping 2018-10-04 14:01:31 -04:00
Denis Rouzaud
a4ccc95412 cropping and gradient capabilities 2018-10-04 14:01:31 -04:00
Denis Rouzaud
2f93ef1458 add 2.5D screenshot 2018-10-04 14:01:31 -04:00
Denis Rouzaud
046f915c24 more doc 2018-10-04 14:01:31 -04:00
Denis Rouzaud
2b4de28293 rename takeScreenshots to takePicturesOf 2018-10-04 14:01:31 -04:00
Denis Rouzaud
6af8ea8d1f fix QScreen::grabWindow bbehaving weirdly
maybe it's just on mac
2018-10-04 14:01:31 -04:00
Denis Rouzaud
0fec1645a6 give root name + restore all screenshots 2018-10-04 14:01:31 -04:00
Denis Rouzaud
3fc3206591 add licence headers 2018-10-04 14:01:31 -04:00
Denis Rouzaud
46a58c9971 parent to QgisApp for proper style + move dialogs to corner so menu are opened within dialogs 2018-10-04 14:01:31 -04:00
Denis Rouzaud
2e1274e177 add command line to create screenshots 2018-10-04 14:01:31 -04:00
Denis Rouzaud
ffdf617277 take screenshots in app for user documentation 2018-10-04 14:01:31 -04:00
Juergen E. Fischer
2a974e304c fix build on xenial & stretch 2018-10-04 17:03:12 +02:00
Denis Rouzaud
2473973bc7
Merge pull request #8115 from 3nids/fix_cannot_paste_geom_style
[#19980] Fix cannot paste style when geometry doesn't match
2018-10-04 05:53:20 -08:00
Denis Rouzaud
7858b4c375 add missing doc 2018-10-04 09:08:03 -04:00
Denis Rouzaud
1e1d53f0f3 add source categories to disable unvailable ones for pasting style 2018-10-04 08:56:51 -04:00
Denis Rouzaud
819aaee382 move XML flag reading to Xml utils 2018-10-04 08:56:51 -04:00
Denis Rouzaud
0cd6ea488d use the source style from clipbboard to avoid error when pasting with all style 2018-10-04 08:56:51 -04:00
Denis Rouzaud
b004a415ac save categories that were used in the XML 2018-10-04 08:56:50 -04:00
Denis Rouzaud
0787a73d5b do not block pasting style on different geometry type layer if destination categories don't have symbology 2018-10-04 08:56:50 -04:00
Denis Rouzaud
226fb47eef
fix cannot load style when layer has no style in DB (#8113) 2018-10-04 04:45:30 -08:00
Alessandro Pasotti
bfe2413019
Merge pull request #8101 from elpaso/bugfix-various-dbmanager-query-time-rows
[db-manager] Fix some unreported issues in the SQL dialog
2018-10-04 08:26:52 +02:00
Alessandro Pasotti
031efeb39c
Merge pull request #8100 from elpaso/bugfix-19388-crash-on-form-widget
Fix a crash on attribute form widget
2018-10-04 08:26:22 +02:00
Nyall Dawson
cc4e2ab842 Capitalization 2018-10-04 16:07:37 +10:00
nirvn
9d2c3af7ad [mesh] make layer blend mode option visible in UI 2018-10-04 09:59:42 +07:00
Nyall Dawson
64e561cc15 Fix "Add" button in database add layer dialogs is sometimes disabled
even when a layer is selected
2018-10-04 12:46:28 +10:00
Nyall Dawson
7ac86d2fbf [mssql] Fix incorrect feature sort order when combined with subset
of attributes request

Fixes a failing provider conformance test
2018-10-04 12:46:28 +10:00
Nyall Dawson
f3779589c6 [mssql] Fix conversion of time values
At least using the linux sql server driver, time fields are not
correctly automatically converted to QTime variants. Instead
they are returned as a raw byte array containing the value.

Add special handling to ensure that these time values are
read regardless.

(there's already a test in place for this, which was failing
on Linux)
2018-10-04 12:46:28 +10:00