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

[GUI] Enable zooming with a mouse wheel in Python console #15891

Closed
wants to merge 1 commit into from

Conversation

xtemp09
Copy link
Contributor

@xtemp09 xtemp09 commented Aug 15, 2024

Closes #13861.

When QPlainTextEdit object is not set to be read-only, zooming with a mouse wheel is disabled.1 Fortunately, one can implement zoom using the same snippet.2

I have tested this commit on KUbuntu 22.04.4.

Footnotes

  1. https://doc.qt.io/qt-6/qplaintextedit.html#read-only-key-bindings

  2. https://github.com/qt/qtbase/blob/987c6d2d75429444f866bd17ccc24227198b090f/src/widgets/widgets/qplaintextedit.cpp#L2326-L2338

@github-actions github-actions bot added the Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD label Aug 15, 2024
@maxwxyz maxwxyz added this to the Post 1.0 milestone Aug 15, 2024
@kkremitzki
Copy link
Member

We were just talking about how this would be useful during presentations at our North American meeting, so thanks in advance for when this feature will be integrated!

@maxwxyz
Copy link
Collaborator

maxwxyz commented Oct 7, 2024

Please discuss whether #15891 and #17053 should be merged

@chennes
Copy link
Member

chennes commented Oct 7, 2024

We like the #17053 solution, so are closing this in favor of that path.

@chennes chennes closed this Oct 7, 2024
@xtemp09 xtemp09 deleted the iss-13861 branch October 7, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GUI: Cannot change the font size of the Python console by CTRL mouse scrolling, like the Report view
4 participants