39019 Commits

Author SHA1 Message Date
Nyall Dawson
4b33e2fb1c Small optimisations 2017-05-25 07:36:04 +10:00
Nyall Dawson
a5e3f1931b Use field formatter when exporting feature attributes to JSON
This means that field values which utilise widget setups like
value maps will correctly show the "friendly" value
for the field, instead of the raw values.
2017-05-25 07:29:53 +10:00
Nyall Dawson
987f80a4ce Use weak layer pointer instead of layer id in QgsJsonExporter 2017-05-25 07:29:53 +10:00
Denis Rouzaud
f63adfe145 [sipify] keep external forward declaration 2017-05-24 15:39:46 +02:00
Denis Rouzaud
09d3e2ff3a sipify core effects 2017-05-24 15:39:46 +02:00
Denis Rouzaud
827c19f2e7 QgsCharacterSelectorDialog: rename file name according to class name 2017-05-24 15:22:09 +02:00
Denis Rouzaud
3f0017a46d sipify gui part 2 2017-05-24 15:22:09 +02:00
Denis Rouzaud
f5e66dd227 [sipify] handle constrained annotation 2017-05-24 14:49:28 +02:00
Denis Rouzaud
563e7c17fc sipify gui part 3 2017-05-24 14:49:28 +02:00
Denis Rouzaud
cc5e713e83 sipify gui part 4 2017-05-24 13:48:03 +02:00
Denis Rouzaud
801a0ea537 sipify gui part 5 2017-05-24 10:44:30 +02:00
Nyall Dawson
599db1b7fd [composer] Refresh data defined properties after page size changes
Fix #16390
2017-05-24 18:15:19 +10:00
Denis Rouzaud
5f6d020b13 add default constructors to QgsFieldFormatter inherited classes 2017-05-24 09:57:52 +02:00
Denis Rouzaud
cf68aed755 sipify core field formatter 2017-05-24 09:57:52 +02:00
Denis Rouzaud
30a7e44d57 [sip] handle Deprecated annotations
some additional fixes in headers too
2017-05-24 09:49:46 +02:00
Denis Rouzaud
694c8113e5 sipify gui part 1 2017-05-24 09:49:46 +02:00
Juergen E. Fischer
5c6ab71342 spelling fix 2017-05-24 09:43:16 +02:00
Juergen E. Fischer
b3f2fe2b55 fix windows build (followup dd40a3d) 2017-05-24 08:00:03 +02:00
Denis Rouzaud
dd40a3dfe1 sipify diagram classes 2017-05-24 07:24:31 +02:00
Denis Rouzaud
8157cf6e44 template classes are not imperatively exported
followup a14ad32b676664cef99f4d43f0a54b4d1ee88f52
fixes win build
2017-05-24 07:22:59 +02:00
Luigi Pirelli
f1383e240a Avoid row sorts during attribute editing in AttributeTable Fix #15976 2017-05-23 21:56:26 +02:00
Denis Rouzaud
2929f9d693 [sip] more reverse engineering 2017-05-23 21:03:56 +02:00
Alessandro Pasotti
fe9594f668 [bugfix] Fixes an unreported crash in WFS 2017-05-23 17:10:39 +02:00
Denis Rouzaud
a14ad32b67 sipify QgsVectorLayerFeatureIterator 2017-05-23 15:02:55 +02:00
Denis Rouzaud
8d2f42af2d reverse sipify override methods 2017-05-23 13:40:01 +02:00
Denis Rouzaud
00fcc6e0cd sipify auth classes 2017-05-23 11:43:34 +02:00
Denis Rouzaud
e99f54854b sipify batch 2017-05-23 10:35:12 +02:00
Alexander Bruy
ca7cd631d8 add test for createMultiBandRaster 2017-05-23 11:23:02 +03:00
Alexander Bruy
fa6b5b0a16 rename new method to createMultiBandRaster to make it more obvious
reorganize arguments
2017-05-23 09:06:03 +03:00
Alexander Bruy
9272dc0f7c [API] convenience API call to create empty raster file with given
number of bands. Will be useful for porting raster analysis code
to use QgsRasterBlock instead of GDAL calls.

Follow up ff8d91214748e0363010e263401212d0b4e0e491
2017-05-23 09:02:54 +03:00
Nyall Dawson
90bef91d66 Revert "Immediately show progress bar when opening attribute table"
This reverts commit 80a000cd98f3caa90d43f44e0b4bde22cffc1c43.

Causes issues with relation editor widgets
2017-05-23 10:30:59 +10:00
Nyall Dawson
381eef08c6 Microoptimise opening attribute table - don't call sort on model when no sort order set 2017-05-23 10:09:17 +10:00
Nyall Dawson
ebee101969 Microoptimise and avoid cache lookup when no sort order set 2017-05-23 10:04:44 +10:00
Nyall Dawson
80a000cd98 Immediately show progress bar when opening attribute table
...instead of waiting 1 second before first showing it. It's a
placebo which doesn't affect the actual opening time, but
makes it seem more responsive to users by avoiding the
initial 1 second blocking delay before any feedback is
given.
2017-05-23 09:59:56 +10:00
Nyall Dawson
0b95c7764d Don't prefetch attribute table sort values when no sorting set
Shaves some seconds off opening the attribute table in certain
circumstances (no sorting applied)

Refs #16577, #16239
2017-05-23 09:59:14 +10:00
Nyall Dawson
ebd3e0d7a5 Greatly speed up attribute table loading
Don't advise for rows added when a model reset is in progress.
Otherwise the rows are tested for sort order, etc triggering
a bunch of useless calculations, given that the model is in
the process of being reset anyway.

Tested using a 150k point shapefile, decreased attribute table
load times from 50+ seconds to 4 seconds.

Refs #16577, #16239

(forward port from b97a980b99a32f7cbbb8cc32ac6a781246df1171)
2017-05-23 09:35:14 +10:00
Salvatore Larosa
48ecee5643 [processing] fix duplicates fields name in field calculator algorithm when switching between layers (followup c2699b4) 2017-05-22 23:29:26 +02:00
Juergen E. Fischer
403dc35dac don't set friendly name without sublayers (followup e0a2267; fixes #16593, #16594, #16598) 2017-05-22 21:43:48 +02:00
Nathan Woodrow
7fee0b2036 [mssql] Ignore computed columns in insert/update 2017-05-22 22:31:53 +10:00
rldhont
2b39c1e1e9 Merge pull request #4597 from rldhont/server-wms-configparser-getcapabilities-part2
[Server] WMS GetCapabilities refactoring - Part 2
2017-05-22 12:42:48 +02:00
Denis Rouzaud
d93d0a8066 [sipify] detect multiple variable declarations oneliners 2017-05-22 10:17:51 +02:00
Denis Rouzaud
1df3c51606 sipify batch 2017-05-22 10:12:08 +02:00
Nyall Dawson
2a5420a7d0 Fix debug noise 2017-05-22 12:17:40 +10:00
Nyall Dawson
9e331dc0d3 Fix duplicate layout warnings 2017-05-22 12:17:40 +10:00
Nathan Woodrow
3cd714affe Fix Windows build 2017-05-22 10:27:48 +10:00
Nyall Dawson
1577a57a19 Don't clear locator model immediately when a new search triggers
Instead delay the search until either a tiny timeout (100ms) or
the first new results come in, whichever happens first.

This avoids the list view clearing too frequently and giving
a distracting "flashing" appearance when users type quickly
into to locator bar.
2017-05-22 09:46:13 +10:00
Tim Sutton
14fcddb6e7 Added Ismail Sunni and Etienne Trimaille to contributors list 2017-05-22 06:34:45 +07:00
Jürgen Fischer
d55fa22628 Merge pull request #4599 from ismailsunni/fix_geos_c
Fix geos_c.h not found.
2017-05-21 16:34:11 +02:00
Etienne Trimaille
0a661d5b10 [needs-docs] add layerid and layername to atlas expressions 2017-05-21 18:43:03 +07:00
Juergen E. Fischer
3452e8de69 fix osx build 2017-05-21 12:21:09 +02:00