70236 Commits

Author SHA1 Message Date
Denis Rouzaud
555f516925
use cmake native FindPython (#42497) 2021-03-28 21:49:40 +02:00
nirvn
cb24fe48e1 Fix fid collisions when pasting features into a gpkg/spatialite dataset 2021-03-28 15:25:35 +07:00
Matthias Kuhn
6ca82a2717 Fix sipify 2021-03-28 06:29:24 +10:00
Matthias Kuhn
10e9de15e8 [qt6] compatibility with [[deprecated]] attribute 2021-03-28 06:29:24 +10:00
Matthias Kuhn
1a59efb177 [qt6] Qt6 uses utf-8 by default
for QTextStream and QSettings
2021-03-28 06:28:35 +10:00
Matthias Kuhn
9f6502e32d [qt6] QPrinter api changed 2021-03-28 06:27:44 +10:00
Matthias Kuhn
cdde805769 [qt6] Use QTransform instead of QMatrix
QMatrix is dead
2021-03-28 06:27:03 +10:00
Matthias Kuhn
a75f6ab903 [qt6] QVector and QList are unified 2021-03-28 06:26:33 +10:00
Matthias Kuhn
84fcfd0113 containers 2021-03-28 06:25:42 +10:00
Matthias Kuhn
abc51f935e [qt6] Changed size of size(), length()
long long vs int
2021-03-28 06:25:07 +10:00
Juergen E. Fischer
4a41f637f1 osgeo4w: fix nightlies with nightlies of proj and gdal 2021-03-27 19:44:02 +01:00
Juergen E. Fischer
65a3cb6d90 fix 79572de47614 2021-03-27 19:31:16 +01:00
Matthias Kuhn
7f2c7c8330
Merge pull request #42448 from m-kuhn/qt6_recursive_mutex
[qt6] Use RecursiveMutex instead of QMutex( QMutex::Recursive )
2021-03-27 13:00:51 +01:00
Matthias Kuhn
5be4bcfb89
Merge pull request #42517 from m-kuhn/forward_declaration
[qt6] Code shuffling
2021-03-27 13:00:31 +01:00
Matthias Kuhn
e94d9bc024 [qt6] Use RecursiveMutex instead of QMutex( QMutex::Recursive )
QMutex::Recursive will be gone.
The replacement only entered the stage with Qt 5.14
2021-03-27 10:17:45 +01:00
Nyall Dawson
90a4902e0d Use qgis::down_cast to avoid nonnull warnings 2021-03-27 19:02:40 +10:00
Nyall Dawson
ced110a33d Fix unused variable warning when building without server plugins 2021-03-27 19:02:40 +10:00
Nyall Dawson
f435e93907 Fix bind to temporary warnings 2021-03-27 19:02:40 +10:00
Nyall Dawson
ddcde49801 Add missing include 2021-03-27 19:02:40 +10:00
Nyall Dawson
9d01cca0bd Fix warning: loop variable ‘xyz’ of type ‘const string&’ {aka ‘const std::__cxx11::basic_string<char>&’} binds to a temporary warning 2021-03-27 19:02:40 +10:00
Nyall Dawson
99e18d87f5 Revert "Fix a bunch of warnings emitted by gcc11"
This reverts commit d5c36802754383895a685b98036a785f6db35727.
2021-03-27 19:02:40 +10:00
Nyall Dawson
b4091edb9d Port GDAL's cpl::down_cast to qgis::down_cast
Use qgis::down_cast<Derived*>(pointer_to_base) as equivalent of
static_cast<Derived*>(pointer_to_base) with safe checking in debug
mode.
2021-03-27 19:02:40 +10:00
Nyall Dawson
e2bf57ef1f Fix a bunch of warnings emitted by gcc11 2021-03-27 19:02:40 +10:00
Nyall Dawson
8f98880601 Simplify API 2021-03-27 12:09:09 +10:00
Nyall Dawson
40ed79393e Instead of double-iterating over features caused by calling
QgsVectorLayer::minimumValue and then QgsVectorLayer::maximumValue
when we need BOTH the min and max value for a field, add an
optimised QgsVectorLayer::minimumAndMaximumValue() method
which can calculate both min and max at the same time in
a single iteration.

Potentially halves the cost of calculating these values whenever
we are forced to do a full iteration to calculate them.
2021-03-27 12:09:09 +10:00
Nyall Dawson
bb76b6bf37 Add an extremely horrible hack to allow the python bindings to build
on gcc11

Don't blame me, blame sip
2021-03-27 09:48:59 +10:00
Juergen E. Fischer
bc1f5d23d6 fix submission in nightlies 2021-03-26 23:33:51 +01:00
Matthias Kuhn
14a20daba2 forward declaration issue 2021-03-26 22:29:52 +01:00
Matthias Kuhn
0ba0ceb10a quuid 2021-03-26 22:29:52 +01:00
Matthias Kuhn
23fbde4b6d double define 2021-03-26 22:29:52 +01:00
Matthias Kuhn
dfb3e1a2e6 Undefined classes for mocing 2021-03-26 22:29:52 +01:00
Matthias Kuhn
ce2bce52fd Switch QString ref functions to QStringView 2021-03-27 06:17:06 +10:00
Matthias Kuhn
08c1275e0e Tackle some QStringList double definitions 2021-03-27 06:17:06 +10:00
Matthias Kuhn
514cd3af13 QgsNumericFormatContext : use QString instead of QChar
With Qt6, these methods return strings to be prepared
 for utf-16 surrogates
 Do we care? If yes, we need to switch all members of QgsNumericFormatContext to QString
2021-03-27 06:17:06 +10:00
signedav
75e9f01547
Fix GUI on layout attributetable widget enabling/disabling geometry filter options (#41668)
* uncheck show only visible on map on Current Report Layer source

* consider disabling depending map combobox

* disable the widgets according to the layers geometry (if nullgeometry - don't provide geometric filters

* check for vector layer before accessing the geometryType

* allow 'show only features visible within a map' on current report feature but only if it has geometry

* enable/disable 'show only features intersecting report feature' according if layer has geometry AND if atlas-layer has geometry
2021-03-26 14:56:40 +01:00
Denis Rouzaud
cf1ffdaaa1
Merge pull request #42376 from troopa81/fix_oracle_ci
Split CI providers test
2021-03-26 10:51:10 +01:00
Matthias Kuhn
41fbcbe7ce
Merge pull request #42450 from m-kuhn/qt6_rand
[qt6] Switch from qrand to std::rand
2021-03-26 08:28:28 +01:00
Nyall Dawson
f98ab57c1c Don't always try to calculate temporal extents for all layer types -- it's too expensive 2021-03-26 14:05:48 +10:00
Nyall Dawson
f0fb5c8418 Fix crash when changing point cloud to Attribute by Ramp renderer
Fixes #42486
2021-03-26 11:20:35 +10:00
Nyall Dawson
5f670cec00 More tests 2021-03-26 11:15:05 +10:00
Nyall Dawson
15420f282d Much faster QgsTemporalRange::mergeRanges 2021-03-26 11:15:05 +10:00
nirvn
c26279498a [labeling] Fix handling of data-defined callouts (both UI/UX and rendering) 2021-03-26 07:44:13 +07:00
Matthias Kuhn
47bd6607a8
Merge pull request #42475 from m-kuhn/desktopwidget
[qt6] goodbye QDesktopWidget
2021-03-25 17:44:42 +01:00
Matthias Kuhn
31513ba412
Merge pull request #42469 from m-kuhn/qvariant_operators
[qt6] Add comparison operators for QVariant
2021-03-25 17:44:30 +01:00
Loïc Bartoletti
7feb362f72 Fix TestQgsGeometry::splitGeometry() test with geos 3.9 2021-03-26 02:38:22 +10:00
Julien Cabieces
b77af9595d reduce again docker deps for oracle 2021-03-25 13:59:49 +01:00
Matthias Kuhn
b024eea261 [qt6] Switch from qrand to std::rand 2021-03-25 12:35:16 +01:00
Alessandro Pasotti
4c06804a96
Merge pull request #42472 from elpaso/bugfix-gh42405-wrong-password-encoding-with-auth-basic-followup
Fix auth basic encoding (no auth system)
2021-03-25 12:32:42 +01:00
Matthias Kuhn
877b2ff66a
Merge pull request #42474 from m-kuhn/qt6cmake
[qt6] CMake build adjustments for qt6
2021-03-25 12:32:01 +01:00
Alessandro Pasotti
e713cd7e6d
Merge pull request #42412 from elpaso/optimization-ogr-avoid-double-load-fields-call
Prevent double expensive calls to loadFields in OGR
2021-03-25 12:30:12 +01:00