nirvn
51170aec0c
Revert "highlight fix" due to regression ( fixes #16824 )
...
This reverts commit 46596914e11dae13cd4d986941246c12f30aa0d9.
2017-08-29 14:47:51 +07:00
Alessandro Pasotti
daa60d1a0e
Merge pull request #5057 from boundlessgeo/gpkg-raster-import2
...
Geopackage: handle raster drop in browser
2017-08-29 08:48:51 +02:00
Nyall Dawson
c3a737bd36
Merge pull request #5082 from nyalldawson/cmp0005
...
Remove use of old CMP0005 CMake policy
2017-08-29 15:41:39 +10:00
Nyall Dawson
9ac511dc83
Flip a couple of Q_FOREACHs to c++11 for loops
...
... just to check how bad the Q_FOREACH deprecation will be. And yep,
it's horrendous. Each one takes around 10 seconds or so to port, and
we've got some 2500+ remaining uses.
2017-08-29 14:43:59 +10:00
Nyall Dawson
0cb52f6dea
Fix UI build warning
2017-08-29 14:05:00 +10:00
Nyall Dawson
9b2e60ee1b
Remove use of old CMP0005 CMake policy
...
Since it's deprecated on newer CMake versions
2017-08-29 13:37:06 +10:00
Nyall Dawson
9171da6dc7
Merge pull request #5081 from nyalldawson/fix_c4566
...
Fix C4566 warning on Windows build
2017-08-29 13:08:38 +10:00
Nyall Dawson
21a3b8a4f3
Use QGSCOMPARENEAR instead of QVERIFY( qgsDoubleNear(... ) )
...
QGSCOMPARENEAR gives better debugging output when the
test fails
2017-08-29 12:39:59 +10:00
Nyall Dawson
2af10cb2ca
Fix C4566 warning on Windows build
2017-08-29 12:11:07 +10:00
Nyall Dawson
99ef3ff834
Merge pull request #5075 from nyalldawson/no_math_defines
...
Remove redundant math constant defines
2017-08-29 11:59:24 +10:00
Nyall Dawson
347a8171b8
Ignore C4091 warnings caused by inclusion of DbgHelp.h on Windows
...
There's a bug in this header file provided by the Win SDK,
so just disable this warning for any QGIS source files which include
DbgHelp.h
2017-08-29 11:07:35 +10:00
Nyall Dawson
029f741cfa
Add qgsAsConst(...)
...
This is the equivalent of std::as_const (which requires c++17) or
qAsConst (which requires Qt 5.7), neither of which we have
as minimum dependancies.
By wrapping implicitly shared Qt containers in qgsAsConst we can
safely use c++ for ranged loops instead of Q_FOREACH. (Since
Q_FOREACH's future is shaky)
See https://www.kdab.com/goodbye-q_foreach/ for further details
on why for causes a detach for Qt containers and why Q_FOREACH
is being removed from Qt.
2017-08-29 03:18:37 +10:00
Blottiere Paul
30b46f7617
Merge pull request #4913 from pblottiere/joineditable2
...
[FEATURE] Joined layers are editable
2017-08-28 16:32:42 +02:00
Blottiere Paul
19ce33f011
Add a safety guard
2017-08-28 14:09:58 +01:00
Blottiere Paul
e008f5881b
Request without attributes
2017-08-28 14:09:58 +01:00
Blottiere Paul
cbeb8b27e5
Improve performance
2017-08-28 14:09:57 +01:00
Blottiere Paul
1fb88a778c
QgsVectorLayerJoinBuffer inherits from QgsFeatureSink
2017-08-28 14:09:57 +01:00
Blottiere Paul
f27764d2ba
Replace if by switch
2017-08-28 14:09:57 +01:00
Blottiere Paul
b6e42c7d2b
Move join intelligence in QgsVectorlayerJoinBuffer
2017-08-28 14:09:57 +01:00
Blottiere Paul
500348eec3
Add some const
2017-08-28 14:09:57 +01:00
Blottiere Paul
64aa40510d
Update tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
11c62ca205
A joined feature is added only when one of its field is not null
2017-08-28 14:09:57 +01:00
Blottiere Paul
927dea3c18
Add tests
2017-08-28 14:09:57 +01:00
Blottiere Paul
3ba138bff9
Joined features are created on changeAttributeValue when upsertOnEdit is activated
2017-08-28 14:09:57 +01:00
Blottiere Paul
94d7e75a7e
Fix spell check
2017-08-28 14:09:57 +01:00
Blottiere Paul
9df519f13f
Update vector layer properties ui list for join
2017-08-28 14:09:57 +01:00
Blottiere Paul
3a0ab2380e
Add some tooltips
2017-08-28 14:09:57 +01:00
Blottiere Paul
5c5006c755
Add icons for joins status in attribute form
2017-08-28 14:09:57 +01:00
Blottiere Paul
d4789db19a
Fix tests
2017-08-28 14:09:56 +01:00
Blottiere Paul
e0c708c8a1
Initialize attributes
2017-08-28 14:09:56 +01:00
Blottiere Paul
8b70d7fa4b
Rename setDeleteCascade/isDeleteCascade in setCascadedDelete/hasCascadedDelete
2017-08-28 14:09:56 +01:00
Blottiere Paul
97ad226f64
Rename isUpsertOnEdit in hasUpsertOnEdit
2017-08-28 14:09:56 +01:00
Blottiere Paul
cad038b1bf
Initialize joined feature properly
2017-08-28 14:09:56 +01:00
Blottiere Paul
4be1cc0067
Add tests for deleteCascade option
2017-08-28 14:09:56 +01:00
Blottiere Paul
293f0f41ba
Implements deleteCascade option
2017-08-28 14:09:56 +01:00
Blottiere Paul
f92c23fdfb
Small cleanup
2017-08-28 14:09:56 +01:00
Blottiere Paul
cf5ab4b0f1
Add tests for upsertOnEdit option
2017-08-28 14:09:55 +01:00
Blottiere Paul
c347055d82
Update sip binding
2017-08-28 14:09:55 +01:00
Blottiere Paul
1c402ef421
Implements upsertOnEdit option
2017-08-28 14:09:55 +01:00
Blottiere Paul
db11248b1d
Fix column name in join configuration
2017-08-28 14:09:55 +01:00
Blottiere Paul
b8a90ca458
Add tests
2017-08-28 14:09:55 +01:00
Blottiere Paul
477775a5d7
[FEATURE] Joined fields are editable if the option is activated
2017-08-28 14:09:55 +01:00
Blottiere Paul
e92f59ca06
Update sip binding
2017-08-28 14:09:55 +01:00
Blottiere Paul
1897bec2a8
[needs-doc] Add editable/upsert on edit/delete cascade options
2017-08-28 14:09:55 +01:00
Sandro Santilli
55a01dcb17
Simplify linearizeArc code dropping useless conditionals
2017-08-28 10:45:18 +02:00
Alessandro Pasotti
487adb45f6
Removed some GDAL version ifdefs
...
Now that 2.1 is required
2017-08-28 09:25:36 +02:00
Mathieu Pellerin
14388479e3
Merge pull request #5070 from nirvn/open_raster_imp
...
Open raster layer UI improvements
2017-08-28 10:01:03 +07:00
nirvn
095bcae01d
use a QgsFileWidget in open vector layer UI
2017-08-28 10:00:06 +07:00
nirvn
35765326aa
harmonize open raster and open vector UIs
2017-08-28 09:42:19 +07:00
nirvn
0dfdb6f3f4
fix open raster not focusing on raster data source manager tab
2017-08-28 09:42:19 +07:00