No need to reload a codec that just has not been found. And no reason to
warn the user because in the end we will return the system codec
obtained by a different method in any case.
In my custom tool in python, the generated fake event received in cadCanvasMoveEvent()
was actually QMouseEvent instance instead of QgsMapMouseEvent, suggesting something
dodgy going on behind the scenes. The actual reason was that first argument was
QMouseEvent::Move instead of QEvent::MouseMove (not sure why the cast did not work though)
The new approach seems safer as the event goes through the ordinary event processing
A new checkbox has been added to the legend settings to control
whether or not a legend should be automatically resized to fit
its contents.
If unchecked, then the legend will never resize and instead just
stick to whatever size the user has set. Any content which
doesn't fit the size is cropped out.
Refs #10556
On behalf of Faunalia, sponsored by ENEL
When a legend was set to filter content by map, it wasn't
consistently being resized to fit the legend contents. This caused
issues for atlas exports where legends could grow but never
shrink.
Fix#14707
On behalf of Faunalia, sponsored by ENEL
No idea what exactly the reason is, and it was only discovered by
countless hours of printf-debugging. So I'm just pushing the fix
for everyone else who might be affected.
A race condition triggered that sometimes the file
output/python/qgis/__init__.py was not created before a python uic
compiler started and therefore the required module could not be
imported.
This leads to errors like
[ 82%] Generating ui_dialogAbout.py
Traceback (most recent call last):
File "../../../../../scripts/pyuic-wrapper.py", line 26, in <module>
import qgis.PyQt.uic.pyuic
ImportError: No module named qgis.PyQt.uic.pyuic
python/plugins/GdalTools/tools/CMakeFiles/zzz-GdalTools-2-depend.dir/build.make:117:
recipe for target 'python/plugins/GdalTools/tools/ui_dialogAbout.py'
failed
make[2]: *** [python/plugins/GdalTools/tools/ui_dialogAbout.py] Error 1
CMakeFiles/Makefile2:5074: recipe for target
'python/plugins/GdalTools/tools/CMakeFiles/zzz-GdalTools-2-depend.dir/all'
failed
make[1]: ***
[python/plugins/GdalTools/tools/CMakeFiles/zzz-GdalTools-2-depend.dir/all]
Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2