13945 Commits

Author SHA1 Message Date
Alessandro Pasotti
07b31287ba Fix rollback on large tables when attr table is opened 2018-10-14 00:44:25 +02:00
Alessandro Pasotti
9d82df5d16 Forward to app blocking/unblocking of attr table updates
Fixes #20094 - Extracting z-coordinates takes ages and makes the system unresponsive
2018-10-13 15:40:57 +02:00
Nathan Woodrow
42ea216478
FIX - Move custom expression function help to group box (#8163) 2018-10-11 15:23:06 +10:00
Nathan Woodrow
9cad526f24
Add F2 to rename browser favourite item (#8164) 2018-10-11 14:08:49 +10:00
Nyall Dawson
ff90c13b3a Capitalization 2018-10-11 09:04:55 +10:00
Denis Rouzaud
7c0a2a1cd7 a few more forward declarations 2018-10-09 11:48:33 -08:00
Denis Rouzaud
f27a5043bb remove useless includes 2018-10-09 11:48:33 -08:00
Denis Rouzaud
7fb3a92994 forward declaration of QgsMapMouseEvent 2018-10-09 11:48:33 -08:00
Denis Rouzaud
ef1efebda4 forward declaration of QgsPoint 2018-10-09 11:48:33 -08:00
Denis Rouzaud
711ec1de47 forward declaration of QgsProject 2018-10-08 13:01:16 -08:00
Denis Rouzaud
d000157341 forward declarations for QgsMapLayer 2018-10-08 13:01:16 -08:00
Nathan Woodrow
f928c2e545
[FIX] - Respect selection order in attribute table copy. (#8048)
Only copy fields shown in view for current table.
2018-10-08 12:07:28 +10:00
Nathan Woodrow
556cddd4d9
Fix #19465 - Don't delete expression when pressing enter in combo (#8134) 2018-10-08 12:05:54 +10:00
Blottiere Paul
9ccb1b579b Update doc 2018-10-08 07:24:53 +10:00
Blottiere Paul
6e95586a1c Update python binding 2018-10-08 07:24:53 +10:00
Even Rouault
7e81226b51 Replace toUtf8().data() by toUtf8().constData()
All your uses of toUtf8().data() actually just need a const char*
So use constData() that is semantically more correct, and documented
to be faster.

From http://doc.qt.io/qt-5/qbytearray.html#data
"For read-only access, constData() is faster because it never
causes a deep copy to occur."
2018-10-07 07:23:42 +10:00
Denis Rouzaud
9fa8c356dd
make QgsWkbTypes a Q_GADGET and declare GeometryType as Q_ENUM (#8024)
* make QgsWkbTypes a Q_GADGET and declare GeometryType as Q_ENUM

* include QObject

* remove extra include

* move QgsWkbTypes to moc headers

* run sip_include
2018-10-05 10:25:35 -08:00
Denis Rouzaud
8f4d3ba38e
Merge pull request #8041 from 3nids/user_doc_auto_screenshots
Automatic creation of screenshots for user documentation
2018-10-05 05:02:06 -08:00
Denis Rouzaud
77bfec68c3 fix typo 2018-10-05 09:01:32 -04:00
Matthias Kuhn
e25d6347c6
Merge pull request #8034 from m-kuhn/canCommitChanges
Add QgsVectorLayer::allowCommit property
2018-10-05 13:11:28 +02:00
Alessandro Pasotti
cdf5bb630f Fix test 2018-10-05 11:03:49 +02:00
Alessandro Pasotti
29c4970f8a [processing] In-place add layer name to dlg title and store active layer 2018-10-05 10:10:20 +02:00
Alessandro Pasotti
0782b9d869 Dynamically change button text for in-place editing
The button title changes if there are selected features
2018-10-05 09:21:28 +02:00
Alessandro Pasotti
ca1c65d07a [processing] In place editing triggers editing and select all
If the active layer is not editable, the executor will
try to switch editing on.

If there are no selected features, the executor will
select all features before running.
2018-10-05 08:53:30 +02:00
Matthias Kuhn
3522518bec
Do not add allowCommit to Python bindings 2018-10-05 08:43:13 +02: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
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
046f915c24 more doc 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
819aaee382 move XML flag reading to Xml utils 2018-10-04 08:56:51 -04: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
Giovanni Manghi
e5e1b9a416 fix the GRASS7 r_contour tool removing the mandatory flag of one of the parameters 2018-10-04 05:52:13 +10:00
Alessandro Pasotti
947a199960 [db-manager] Fix max recursion limit in rollback 2018-10-03 15:17:52 +02:00
Alessandro Pasotti
c90da0e46a [db-manager] Fix affected rows -1
Number of affected rows was always reported ad -1
no matter what was in the SQL
2018-10-03 15:11:08 +02:00
Alessandro Pasotti
96b903e1f3 [db-manager] Increase precision when reporting query time
For consistency with the SQL dialog that used 3 decimal places
2018-10-03 14:48:04 +02:00
Alessandro Pasotti
b8c21b0387 [db-manager] Query elapsed time include fetch time
The values reported were always lower than
the actual time for query and fetch.

I guess that those values are useful when you
are testing queries and fine-tuning them,
so the actual value should include fetching
time.
2018-10-03 14:45:01 +02:00
Matthias Kuhn
0319e36c63
Merge pull request #8054 from m-kuhn/geometryCheckPyBindings
Python bindings for QgsGeometryCheck and co
2018-10-03 14:36:48 +02:00
nirvn
3235fb5422 [ui] resurrect home folder 2018-10-03 14:03:40 +07:00
Matthias Kuhn
b3f36dc22f
Merge pull request #8056 from qgis/3nids-patch-3
use float precision for screen coordinates
2018-10-02 14:04:50 +02:00
Nyall Dawson
57f77d01cb [processing] Fix in-place mode results in unknown distance units
We need to still create the parameter wrappers when in in-place mode
for the input/output parameters, as some other wrappers may rely
on these for various interactions (e.g. getting the crs/fields
from the input layer)

Fixes #19990
2018-10-02 19:51:02 +10:00
Nyall Dawson
68dee5b17f [processing] Remove hack 2018-10-02 16:46:16 +10:00
Nyall Dawson
c8bf6db363 [processing] Give progress reports/allow cancelation in in-place mode 2018-10-02 16:46:16 +10:00
Matthias Kuhn
66f2272be0 Improve API docs concerning sort behavior 2018-10-02 15:37:07 +10:00
Nyall Dawson
76190d594a Remove useless member variable 2018-10-02 10:49:41 +10:00
Alessandro Pasotti
ff418821ea
Merge pull request #8082 from elpaso/qvariant-equal
Add qgsVariantEqual for null-aware comparison
2018-10-01 18:29:19 +02:00
Alessandro Pasotti
a68a82cb60 qgsVariantEqual second iteration 2018-10-01 14:59:19 +02:00