From the sip documentation:
If state is not NULL then the location it points to is set to
describe the state of the returned C/C++ instance and is the
value returned by any %ConvertToTypeCode. The calling code
must then release the value at some point to prevent a memory
leak by calling sipReleaseType().
These methods were only calling sipReleaseType in the case that
an error occurred, which is incorrect -- it should always be
called.
Move back to upstream version instead of forked version, as the
upstream is maintained and contains fixes and optimisations not
present in the for
The fork was originally used as it contained modernisation
cleanups, but those where all just cleanups and not actual
bug fixes
* fix: add exhautive clang format options
In order to be compliant with QtCreator, the .clang-format needs to have all the options set.
* chore: remove .github/workflows/pr-run-pre-commit.yml.disabled
Now the combobox is populated with all classes from the Classification renderer, which may have a modified name, and
all available classes in the dataset, based on layer statistics. The combobox is editable so that the rest classes
can be typed-in.
Previously the average could be computed on every mouse move event. This
is a problem, since the loop can be slow, especially on debug builds
where nothing gets inlined.
Previously the entire camera change was handled on every input event,
which led to slowdown and stutters, since we can get ~1000/s such events
with common mice. We don't care about intermediate camera states and
can only process the last state before rendering.
QgsImageCache::originalSize required a re-open and parse of the
image with every call, which could result in many file opens
to the same image file.
Use a cache to store these instead, so that we only have
to determine the size once.
Note that this isn't as simple as storing the size in a hash,
as we need to handle file modifications like QgsImageCache does.
Accordingly, we subclass QgsAbstractContentCache and specialise
it for handling just the image size here.
Fixes#51273