Implement a default print layout when none available #5993
+615
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One item in my "be friendlier" to do list incoming: this PR insures that the print button is always going to print a PDF.
When users open a project file (or an individual dataset) where the project contains zero print layouts, QField will now add one from a very basic template and rely on that to provide users with a printed PDF of their current map canvas.
This is how the output looks like:
This lowers the knowledge needed to do basic printing to virtually nothing :) It's also a good time to introduce this now that the print button is shown in the dashboard top action bar.
Bonus: this can spread the good word about QField when people share these PDFs.