Remove opaque logic preventing some layout grid annotations from showing#66404
Remove opaque logic preventing some layout grid annotations from showing#66404nyalldawson wants to merge 3 commits into
Conversation
|
possibly relates to #45876 |
eb4fc19 to
a8be641
Compare
Tests failed for Qt 6 (ALL_BUT_PROVIDERS - ubuntu)One or more tests failed using the build from commit a8be641 layoutexporter_exporthittestlegendupdate_1layoutexporter_exporthittestlegendupdate_1Test failed at testHitTestLegendUpdate at tests/src/python/test_qgslayoutexporter.py:1886 Rendered image did not match tests/testdata/control_images/layout_exporter/expected_layoutexporter_exporthittestlegendupdate_1/expected_layoutexporter_exporthittestlegendupdate_1.png (found 233856 pixels different) composer_legend_reference_pointcomposer_legend_reference_pointTest failed at testReferencePoint at tests/src/python/test_qgslayoutlegend.py:1252 Rendered image did not match tests/testdata/control_images/composer_legend/expected_composer_legend_reference_point/expected_composer_legend_reference_point.png (found 29010 pixels different) composer_legend_symbol_expressioncomposer_legend_symbol_expressionTest failed at testSymbolExpressionRender at tests/src/python/test_qgslayoutlegend.py:911 Rendered image did not match tests/testdata/control_images/composer_legend/expected_composer_legend_symbol_expression/expected_composer_legend_symbol_expression.png (found 409943 pixels different) legend_multiple_filter_mapslegend_multiple_filter_mapsTest failed at test_filter_by_map_content_rendering at tests/src/python/test_qgslayoutlegend.py:1503 Rendered image did not match tests/testdata/control_images/composer_legend/expected_legend_multiple_filter_maps/expected_legend_multiple_filter_maps.png (found 402 pixels different) legend_multiple_filter_maps_different_layerslegend_multiple_filter_maps_different_layersTest failed at test_filter_by_map_content_rendering_different_layers at tests/src/python/test_qgslayoutlegend.py:1609 Rendered image did not match tests/testdata/control_images/composer_legend/expected_legend_multiple_filter_maps_different_layers/expected_legend_multiple_filter_maps_different_layers.png (found 402 pixels different) legend_multiple_filter_maps_different_layers_atlaslegend_multiple_filter_maps_different_layers_atlasTest failed at test_filter_by_map_content_rendering_different_layers_in_atlas at tests/src/python/test_qgslayoutlegend.py:1769 Rendered image did not match tests/testdata/control_images/composer_legend/expected_legend_multiple_filter_maps_different_layers_atlas/expected_legend_multiple_filter_maps_different_layers_atlas.png (found 917 pixels different) composermap_annotation_emptycomposermap_annotation_emptyTest failed at testMainAnnotationLayer at tests/src/python/test_qgslayoutmap.py:1096 Rendered image did not match tests/testdata/control_images/composer_map/expected_composermap_annotation_empty/expected_composermap_annotation_empty.png (found 203919 pixels different) composermap_blend_modecomposermap_blend_modeTest failed at test_blend_mode_designer_preview at tests/src/python/test_qgslayoutmap.py:300 Rendered image did not match tests/testdata/control_images/composer_map/expected_composermap_blend_mode/expected_composermap_blend_mode.png (found 17437 pixels different) composermap_opacitycomposermap_opacityTest failed at test_opacity_rendering_designer_preview at tests/src/python/test_qgslayoutmap.py:192 Rendered image did not match tests/testdata/control_images/composer_map/expected_composermap_opacity/expected_composermap_opacity.png (found 19849 pixels different) The full test report (included comparison of rendered vs expected images) can be found here. Further documentation on the QGIS test infrastructure can be found in the Developer's Guide. |
Tests failed for Qt 6 (ALL_BUT_PROVIDERS - fedora)One or more tests failed using the build from commit a8be641 layoutexporter_exporthittestlegendupdate_1layoutexporter_exporthittestlegendupdate_1Test failed at testHitTestLegendUpdate at tests/src/python/test_qgslayoutexporter.py:1886 Rendered image did not match tests/testdata/control_images/layout_exporter/expected_layoutexporter_exporthittestlegendupdate_1/expected_layoutexporter_exporthittestlegendupdate_1.png (found 233856 pixels different) composer_legend_reference_pointcomposer_legend_reference_pointTest failed at testReferencePoint at tests/src/python/test_qgslayoutlegend.py:1252 Rendered image did not match tests/testdata/control_images/composer_legend/expected_composer_legend_reference_point/expected_composer_legend_reference_point.png (found 29010 pixels different) composer_legend_symbol_expressioncomposer_legend_symbol_expressionTest failed at testSymbolExpressionRender at tests/src/python/test_qgslayoutlegend.py:911 Rendered image did not match tests/testdata/control_images/composer_legend/expected_composer_legend_symbol_expression/expected_composer_legend_symbol_expression.png (found 409943 pixels different) legend_multiple_filter_mapslegend_multiple_filter_mapsTest failed at test_filter_by_map_content_rendering at tests/src/python/test_qgslayoutlegend.py:1503 Rendered image did not match tests/testdata/control_images/composer_legend/expected_legend_multiple_filter_maps/expected_legend_multiple_filter_maps.png (found 402 pixels different) legend_multiple_filter_maps_different_layerslegend_multiple_filter_maps_different_layersTest failed at test_filter_by_map_content_rendering_different_layers at tests/src/python/test_qgslayoutlegend.py:1609 Rendered image did not match tests/testdata/control_images/composer_legend/expected_legend_multiple_filter_maps_different_layers/expected_legend_multiple_filter_maps_different_layers.png (found 402 pixels different) legend_multiple_filter_maps_different_layers_atlaslegend_multiple_filter_maps_different_layers_atlasTest failed at test_filter_by_map_content_rendering_different_layers_in_atlas at tests/src/python/test_qgslayoutlegend.py:1769 Rendered image did not match tests/testdata/control_images/composer_legend/expected_legend_multiple_filter_maps_different_layers_atlas/expected_legend_multiple_filter_maps_different_layers_atlas.png (found 917 pixels different) composermap_annotation_emptycomposermap_annotation_emptyTest failed at testMainAnnotationLayer at tests/src/python/test_qgslayoutmap.py:1096 Rendered image did not match tests/testdata/control_images/composer_map/expected_composermap_annotation_empty/expected_composermap_annotation_empty.png (found 203919 pixels different) composermap_blend_modecomposermap_blend_modeTest failed at test_blend_mode_designer_preview at tests/src/python/test_qgslayoutmap.py:300 Rendered image did not match tests/testdata/control_images/composer_map/expected_composermap_blend_mode/expected_composermap_blend_mode.png (found 17437 pixels different) composermap_opacitycomposermap_opacityTest failed at test_opacity_rendering_designer_preview at tests/src/python/test_qgslayoutmap.py:192 Rendered image did not match tests/testdata/control_images/composer_map/expected_composermap_opacity/expected_composermap_opacity.png (found 19849 pixels different) The full test report (included comparison of rendered vs expected images) can be found here. Further documentation on the QGIS test infrastructure can be found in the Developer's Guide. |
This goes WAYYYY back, and there's no clues as to why it's here. It prevents the first grid label from showing in some circumstances, giving users NO way to force this label to show. I suspect it was added as a quick workaround to fix one user's particular map situation. If a user wants to explicitly hide a particular annotation, there's better ways to do that now -- eg using expression based annotation visibility.
close to map edges
a8be641 to
66d04ac
Compare
This goes WAYYYY back, and there's no clues as to why it's here. It prevents the first grid label from showing in some circumstances, giving users NO way to force this label to show.
I suspect it was added as a quick workaround to fix one user's particular map situation.
If a user wants to explicitly hide a particular annotation, there's better ways to do that now -- eg using expression based annotation visibility.
AI tool usage