-
Notifications
You must be signed in to change notification settings - Fork 74
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
UrlList: allow removal of url from the list #3913
Conversation
Could you put an upper case to I also think the change of the selection mode is a bit weird. But maybe you can wait for Thomas feedback. Also optionally you could as a |
Thanks for the review. I rename I agree that changing the selection mode is weird. But being able to select several item in 'non-editable' mode is weird as well. |
I have updated the description to put the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments.
I would not modify the selection mode.
Is |
For me it should be public because it can have other usage. |
No, I mean remove calls to And if |
I move UrlList to |
Be careful UrlList is used by |
no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few last comments.
I would be good to add UrlList
to the API documentation and evenutally add missing docstrings for public members
@payno there's a conflict to merge this + an issue spotted by CI:
It sounds |
For this purpose we store `_removeAction` and add the action to the widget when necessary (if in 'editable' mode)
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
…'setEditable' function
…Removed` For now keep reset of the full list of urls.
Avoid resetting the full widget item Signed-off-by: payno <henri.payno@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
Co-authored-by: Thomas VINCENT <thomas.vincent@esrf.fr>
# Conflicts: # src/silx/gui/plot/ImageStack.py
…recate 'setUrls' (even if '_ToggleableUrlSelectionTable' is protected) # Conflicts: # src/silx/gui/plot/ImageStack.py
missing import has been added and a rebase from the main has been done for the PR. |
when the UrlList is set editable the selection mode is set to
qt.QAbstractItemView.ExtendedSelection
Here are two screenshots of the feature:
closes #3911
Changelog: