Skip to content

Fix parametertree name/title handling#1356

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
campagnola:fix-action-parameter-title
Oct 27, 2020
Merged

Fix parametertree name/title handling#1356
j9ac9k merged 1 commit intopyqtgraph:masterfrom
campagnola:fix-action-parameter-title

Conversation

@campagnola
Copy link
Copy Markdown
Member

- Parameters now respond to title change in setOpts
- Add Parameter.title()
- Action parameter uses default name/title handling in addition to setting button text (fixes pyqtgraph#1320)
@campagnola campagnola changed the title Fix name/title handling Fix parametertree name/title handling Sep 3, 2020
@campagnola
Copy link
Copy Markdown
Member Author

@2xB can you look this over? It's in response to a chain of items: #1175#1320#1350.

Copy link
Copy Markdown
Contributor

@2xB 2xB left a comment

Choose a reason for hiding this comment

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

To me, solving this by deleting

self.setText(0, '')

in ActionParameterItem.__init__ also looks like the proper solution. Further this looks like a good cleanup! Renaming ActionParameterItem.paramRenamed to .titleChanged slightly changes the API, but this is easy-to-spot and probably causes only niche issues.

@2xB
Copy link
Copy Markdown
Contributor

2xB commented Sep 4, 2020

@campagnola Reviewing this PR, I stumbled across the unused param argument in many ParameterItem functions. If we had a list of changes that should be done for an API breaking release in the future, we should add the task of removing these.

@lidstrom83
Copy link
Copy Markdown
Contributor

Reviewed and tested. Looks good to me.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Oct 27, 2020

LGTM, merging, sorry for the delay on this one.

@j9ac9k j9ac9k merged commit 7d2fbe7 into pyqtgraph:master Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: ActionParameter.hide() causes rename to empty string

4 participants