-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Some problems with the Find plugin in master #13378
Comments
See #13398
See #13398
That is how Qt works and is meant to be used. See https://doc.qt.io/qt-5/qaction.html
I would not recommend it. Doing the way it is now, reduces work everywhere for users and developers and core developers. See #13398 which already adds a fix for the issue. |
Ok, no problem. Thanks for the detailed explanation! |
After merging PR #13376 I found the following problems with the Find plugin in master:
The
Find in Files
action in theSearch
menu does nothing when Spyder is started with clean settings. That's because now it's associated to theSearch
button in its toolbar:So it's clear why it does nothing: because there's no text to search by default. But in Spyder 4 that action was associated to the toggle action of the plugin, so it showed the plugin in case it was hidden (which is the default with clean settings).
All buttons in the Find toolbar are now QAction's, whereas in Spyder 4 they were QToolButton's. That doesn't allow us to remove their tooltips because QActions always have an associated tooltip. For instance, in PR PR: Fix some issues with the Find and Code Analysis panes #13376 I removed the tooltip of the
Search
button because it was really unnecessary.The last problem points to a really significant change (switching QToolButton's for QAction's). I don't understand its purpose because it makes things less flexible for us in master (like the above issue clearly shows).
@goanpeca, could you explain your rationale for this? Also, is it possible for us to revert to QToolButton's everywhere where they were used in Spyder 4?
The text was updated successfully, but these errors were encountered: