bdm-oslandia
fcf2a6de3e
fix(QgsAuxiliaryStorage): remove tmp file only if it exists
2025-05-26 16:34:37 +02:00
Matthias Kuhn
39e33dea65
Add include moc lines
2024-10-26 07:35:20 +02:00
Julien Cabieces
49d22d1b8b
auto fix core
2024-05-31 08:46:33 +10:00
Nyall Dawson
09578d6a8f
Use templates to avoid ugly static_cast
2024-01-31 13:48:49 +10:00
Nyall Dawson
23f3af4290
Use enum classes for QgsProperty property keys
...
Should fix usage on Qt 6 builds
2024-01-31 13:48:49 +10:00
Nyall Dawson
3ed97c3c76
Move QgsProperty::Type to Qgis, promote to enum class
2023-11-07 20:45:49 +10:00
Nyall Dawson
8a2c0e3561
Replace QgsDebugMsg(...) with QgsDebugError(...) and ensure it
...
is ONLY used for error message reporting
Everything else gets bumped to QgsDebugMsg(..., >= 2)
2023-05-20 16:19:17 +10:00
Blottiere Paul
d624a98aac
Some cleaning
2022-10-12 12:30:54 +02:00
Blottiere Paul
cc42f5f33e
Angle and offset properties of symbol layers are hidden
2022-10-10 13:51:24 +02:00
nirvn
4324a2a8b5
[auxiliary storage] Avoid needless spatialite database connection
2022-02-21 09:08:22 +10:00
Nyall Dawson
304475806f
Gracefully handle empty existing property values when creating auxiliary
...
fields
Fixes #46403
2022-01-31 18:55:50 +10:00
Antoine
aa730d6a44
call static
2021-12-31 09:55:44 +10:00
Nyall Dawson
bbd8a5c902
Add option not to overwrite existing property in
...
QgsAuxiliaryLayer::createProperty(*)
Instead, if a property already exists it will be upgraded to
an expression based property of the form:
coalesce("new aux field", 'existing' || 'property' || 'expression')
(i.e. allow per-feature value overrides from the auxiliary field,
but by default fallback to the existing property definition)
Refs #44475
2021-09-28 13:25:54 +10:00
Nyall Dawson
19565032e3
const ALL the things
...
Use clang-tidy const correctness fixit to add const to all
variables which it can
2021-08-13 15:25:15 +10:00
Blottiere Paul
572995889a
Error string is mutable
2021-06-07 11:10:36 +02:00
Blottiere Paul
d290df292f
Add a new parameter to retrieve underlying error when creating auxiliary layer
2021-06-07 11:10:36 +02:00
Nyall Dawson
a1fa68d3e5
Add method to auto create a callout property in auxilliary storage
2021-03-16 04:02:49 +10:00
Even Rouault
a76670e521
QStringLiteral -> QLatin1String changes generated by scripts/qstringfixup.sh --all
2020-10-11 12:30:58 +10:00
Nyall Dawson
561a8326c5
Modernize language
...
And avoid insensitive/trigger words (as far as possible -- some are
coming from Qt or other external APIs)
2020-06-13 16:48:38 +10:00
Blottiere Paul
04b53301d3
Hide BufferDraw property
2020-02-13 10:39:20 +01:00
Blottiere Paul
1b57bb57d8
Clean
2020-02-13 10:39:20 +01:00
Blottiere Paul
f5e0661def
Activate buffer drawing when setting a buffer property. Fixes #28544
2020-02-13 10:39:20 +01:00
Matthias Kuhn
148febdc46
No constexpr QLatin1String on Windows
2019-11-04 15:29:16 +01:00
Matthias Kuhn
e17f99c5c3
non-POD static ([class name goes here]) [-Wclazy-non-pod-global-static]
2019-11-03 10:38:05 +01:00
Nyall Dawson
5911f96fa9
[FEATURE][labelling] Expose "label all parts" option via label
...
properties tool
Makes it easier to set this option per-feature
2019-07-29 16:41:09 +10:00
nirvn
396eb92bfa
[FEATURE][labels] Add multiline alignment property to the change label tool
2019-07-20 14:41:35 +07:00
Nyall Dawson
781e70f37c
Fix lengthy delay when clicking change label tool on a label for the
...
first time
Previously this was firing off the styleChanged for every new auxiliary
field created, which is a very expensive call to process (as it involves
rebuilding GUI widgets). Instead, delay the call and only it fire it
once, if we actually changed something in the style.
2019-07-18 16:55:43 +10:00
Nyall Dawson
1e4114a634
Fix creating auxilary field fails if _ present in field name
2019-07-16 20:53:35 +10:00
Matthias Kuhn
4d6fbd3f18
Remove unrequired ;
...
and make clang-tidy a bit more smiley
2019-05-15 09:54:12 +02:00
Alessandro Pasotti
7b6f9c0dbc
Restore default ctor for options and layer
2019-04-17 10:06:41 +10:00
Alessandro Pasotti
e930bee9e2
Add mandatory options to QgsVectorLayer ctor
...
... and deprecate the rest.
In QGIS 4 we'll have to get rid of the deprecated default ctor and
create a new one which takes no arguments.
2019-04-17 10:06:41 +10:00
Blottiere Paul
1ecc57d2a2
Adds more explicit error message when auxiliary storage is saved
2018-10-08 07:24:53 +10:00
Nyall Dawson
0b4694fbee
More efficient case insensitive string comparison
2018-09-05 07:54:35 +10:00
Nyall Dawson
e0fa9eb9cf
Add QStringLiteral(), QStringLiteral( "" ) and QLatin1String( "" )
...
to banned keywords
And replace use with QString()
2018-08-31 12:31:27 +10:00
Martin Dobias
2bbdc34334
Deprecate QgsProject::fileInfo()
2018-04-07 12:58:02 +02:00
Blottiere Paul
c47a6457b8
Do not save .qgd file alongside .qgs when it's not used
2018-04-06 11:00:08 +01:00
Nyall Dawson
2dbda4f66b
Fix clazy container detach warnings
2018-02-02 19:52:01 +11:00
Nyall Dawson
252dbdcc48
Fix clazy unnecessary unnecessary container allocation warnings
2018-02-02 19:52:01 +11:00
Nyall Dawson
ef7e7c5432
Fix clazy QString multi-arg warnings
2018-02-02 19:52:01 +11:00
Matthias Kuhn
447cd18a27
Improve chances for copy elision
2017-11-15 08:51:17 +01:00
Matthias Kuhn
4df65aca37
Use std::unique_ptr with custom deleter for spatialite and sqlite
2017-11-15 08:51:17 +01:00
Juergen E. Fischer
cfba4c4d09
fix windows build
2017-10-29 18:59:21 +01:00
Blottiere Paul
12dfb19785
Emit signal to update the style dock
2017-10-09 05:39:22 +01:00
Blottiere Paul
67cff3ddd7
Auxiliary fields are linked to data defined for all subproviders
2017-10-09 05:39:22 +01:00
Blottiere Paul
3f8ae8b225
Some minor refactoring
2017-10-09 05:13:59 +01:00
Blottiere Paul
c3b1cb3f23
Remove Q_FOREACH
2017-10-09 05:13:59 +01:00
Blottiere Paul
7483c6e95f
Remove QgsAuxiliaryField class
2017-10-09 05:13:59 +01:00
Blottiere Paul
fc0ebb783d
Allow user to create its own auxiliary field
2017-10-09 05:13:59 +01:00
Blottiere Paul
4e10a11a47
Add a custom name for symbol layers in property definition
2017-10-09 05:13:59 +01:00
Blottiere Paul
4fa3400981
Properly update layer settings when an auxiliary field is deleted
2017-10-09 05:13:59 +01:00