-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fixes for Qt6 #131
Fixes for Qt6 #131
Conversation
WalkthroughThe recent updates to the Tabulous library focus on refining color and geometry handling across various components. Changes include using centralized color roles for improved consistency and modifying coordinate handling for gradients and paths to enhance UI rendering. These adjustments ensure a smoother and more reliable interface experience in Qt-based applications. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- tabulous/_qt/_preference/_shared.py (2 hunks)
- tabulous/_qt/_preference/_theme.py (1 hunks)
- tabulous/_qt/_qt_const.py (2 hunks)
- tabulous/_qt/_table/_animation.py (2 hunks)
- tabulous/_qt/_table/_base/_enhanced_table.py (1 hunks)
Additional comments not posted (6)
tabulous/_qt/_preference/_shared.py (2)
4-4
: Import statement added forforeground_color_role
. This centralizes color management, enhancing maintainability.
17-17
: Usage offoreground_color_role
for color management inpaintEvent
. This change improves code consistency and maintainability.tabulous/_qt/_qt_const.py (1)
15-33
: Conditional functionsforeground_color_role
andbackground_color_role
added. These functions correctly abstract color fetching based on theQT6
flag, improving code maintainability and adaptability.tabulous/_qt/_preference/_theme.py (1)
74-91
: Refinement inpaintEvent
usingQtCore.QPointF
for more precise point definition in gradients and paths. This enhances the visual rendering and flexibility.tabulous/_qt/_table/_animation.py (1)
127-127
: Use ofbackground_color_role
inget_brush
method for fetching background color. This centralizes color management and enhances maintainability.tabulous/_qt/_table/_base/_enhanced_table.py (1)
363-364
: Added condition inmouseMoveEvent
to check for no buttons pressed, preventing unnecessary processing and enhancing responsiveness.
There were several bugs related to Qt6.
Summary by CodeRabbit