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

[FIX] Data Table: Fix freeze with large selections #5164

Merged
merged 2 commits into from
Jan 15, 2021

Conversation

ales-erjavec
Copy link
Contributor

@ales-erjavec ales-erjavec commented Jan 7, 2021

Issue

Fixes gh-5162

Description of changes

Add a HeaderView class reimplementing QHeaderView.paintSection to avoid expensive calls to
QItemSelectionModel.isRowSelected, which traversed the whole model row/column when all items are selected.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #5164 (82fbbe7) into master (1d2626e) will increase coverage by 0.02%.
The diff coverage is 99.46%.

@@            Coverage Diff             @@
##           master    #5164      +/-   ##
==========================================
+ Coverage   84.79%   84.82%   +0.02%     
==========================================
  Files         286      288       +2     
  Lines       60189    60349     +160     
==========================================
+ Hits        51036    51189     +153     
- Misses       9153     9160       +7     

@ales-erjavec ales-erjavec force-pushed the header-view-paint-section branch 2 times, most recently from e703c52 to 871a5e1 Compare January 8, 2021 11:31
@ales-erjavec ales-erjavec marked this pull request as ready for review January 8, 2021 11:39
Reimplement QHeaderView.paintSection to avoid expensive calls to
QItemSelectionModel.isRowSelected.
@ales-erjavec ales-erjavec changed the title [FIX] headerview: Add a HeaderView class [FIX] Data Table: Fix freeze with large selections Jan 12, 2021
Extracted from owtable, slightly generalized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OWTable: Data table freezes with Ctrl+A on a big data set
2 participants