Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Allow renaming of the current map theme #33950

Merged
merged 11 commits into from
Apr 23, 2020

Conversation

DelazJ
Copy link
Contributor

@DelazJ DelazJ commented Jan 21, 2020

This is an early PR to add ability to rename map theme from the map theme drop-down menu (fixes #26563).
I can't say that the code is the cleanest you could have since there are some coding basis I do not have (and I expect it gets improved before merge) but from a user point of view the feature works.

renametheme

src/core/layout/qgslayoutitemmap.cpp Outdated Show resolved Hide resolved
src/core/qgsmapthemecollection.cpp Outdated Show resolved Hide resolved
src/core/qgsmapthemecollection.cpp Outdated Show resolved Hide resolved
src/core/qgsmapthemecollection.h Show resolved Hide resolved
src/core/qgsmapthemecollection.h Show resolved Hide resolved
@nyalldawson
Copy link
Collaborator

Looking good so far!

@nyalldawson
Copy link
Collaborator

Personally I'd classify this as a bug fix, and merge for 3.12.

@stale
Copy link

stale bot commented Feb 4, 2020

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@stale stale bot added stale Uh oh! Seems this work is abandoned, and the PR is about to close. and removed stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Feb 4, 2020
@DelazJ
Copy link
Contributor Author

DelazJ commented Feb 6, 2020

Thanks for the inputs @nyalldawson

@stale
Copy link

stale bot commented Feb 20, 2020

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@stale stale bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 20, 2020
@DelazJ
Copy link
Contributor Author

DelazJ commented Feb 26, 2020

Any help here, please? I don't want it to get stale.
That said, I think I can do the 3d part if #34369 is merged (but not sure of the "backportability" at that moment)

@stale stale bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 26, 2020
@github-actions github-actions bot added this to the 3.14.0 milestone Mar 4, 2020
@stale
Copy link

stale bot commented Mar 18, 2020

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@stale stale bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 18, 2020
@stale stale bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 24, 2020
@DelazJ
Copy link
Contributor Author

DelazJ commented Apr 2, 2020

May I?

@stale
Copy link

stale bot commented Apr 17, 2020

The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@stale stale bot added stale Uh oh! Seems this work is abandoned, and the PR is about to close. and removed stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Apr 17, 2020
@alexbruy
Copy link
Contributor

@DelazJ would you mind to address remaining comments?

@DelazJ
Copy link
Contributor Author

DelazJ commented Apr 23, 2020

They should already be addressed. Anything left?

@alexbruy
Copy link
Contributor

There is one missed I think, adding docstring to void mapThemeRenamed()

@DelazJ
Copy link
Contributor Author

DelazJ commented Apr 23, 2020

No, GitHub artefact. It's in the latest commit

@alexbruy
Copy link
Contributor

Ah, sorry.

@DelazJ
Copy link
Contributor Author

DelazJ commented Apr 23, 2020

np

Copy link
Member

@m-kuhn m-kuhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, let's go?

@DelazJ
Copy link
Contributor Author

DelazJ commented Apr 23, 2020

I'd say "yes!"

@m-kuhn m-kuhn merged commit 5d45b71 into qgis:master Apr 23, 2020
@DelazJ DelazJ added the Feature label May 4, 2020
@timlinux timlinux added Changelog Items that are queued to appear in the visual changelog - remove after harvesting and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels May 22, 2020
@DelazJ DelazJ deleted the renameMapTheme branch February 3, 2021 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Map Themes directly in Map Theme Dropdown Menu
5 participants