Fix BasicTableView compatibility issue with Qt 6.10.3#98
Conversation
BasicTableView compativility issue with Qt 6.10.3BasicTableView compatibility issue with Qt 6.10.3
|
Warning Review limit reached
More reviews will be available in 48 minutes and 31 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo files in the 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
framework/uicomponents/qml/Muse/UiComponents/LegacyTreeView/BasicTableView.qml (1)
356-366:⚠️ Potential issue | 🔴 CriticalFix
resizeColumnsToContents()to use correct ListView reference.Line 359 references
__listView.headerItembut no such property exists in BasicTableView. The ListView component is defined asid: listView(line 425). This causes a runtime error whenresizeColumnsToContents()is called. Change__listViewtolistViewon line 359.Current code (line 356-366)
function resizeColumnsToContents () { for (var i = 0; i < __columns.length; ++i) { var col = getColumn(i) var header = __listView.headerItem.headerRepeater.itemAt(i) if (col) { col.resizeToContents() if (col.width < header.implicitWidth) col.width = header.implicitWidth } } }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@framework/uicomponents/qml/Muse/UiComponents/LegacyTreeView/BasicTableView.qml` around lines 356 - 366, In the resizeColumnsToContents() function, the reference to __listView.headerItem is incorrect because the ListView component is defined as listView, not __listView. Change the __listView reference to listView in the line where headerItem is being accessed within the function body to resolve the runtime error.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In
`@framework/uicomponents/qml/Muse/UiComponents/LegacyTreeView/BasicTableView.qml`:
- Around line 356-366: In the resizeColumnsToContents() function, the reference
to __listView.headerItem is incorrect because the ListView component is defined
as listView, not __listView. Change the __listView reference to listView in the
line where headerItem is being accessed within the function body to resolve the
runtime error.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: e613a118-39f4-40c9-a7fd-b2b63516e55a
📒 Files selected for processing (2)
framework/uicomponents/qml/Muse/UiComponents/LegacyTreeView/BasicTableView.qmlframework/uicomponents/qml/Muse/UiComponents/LegacyTreeView/LegacyTreeView.qml
b4c61e9 to
15d12f4
Compare
15d12f4 to
5ce5947
Compare
Resolves: audacity/audacity#11211
This might also resolve #59 since it mentions crashing around accessibility, but I only tested Audacity and not MuseScore.
Remove aliases to read-only
StyledListViewproperties inBasicTableView, replace them with direct access toStyledListView's properties.Aliases to read-only properties caused the error:
Invalid property assignment: "__currentRowItem" is a read-only propertywhen adding any Qt object to aLegacyTreeViewobject (e.g.: Audacity preferences and accessibility diagnostic panel).Build configuration
audacity: audacity/audacity/master
audacity platforms: linux_x64
musescore: musescore/MuseScore/main
musescore platforms: linux_x64