-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProjectIssuesWidget: optimize row printing
It seems the model was dog slow. Why? 1) I queried the filename using IO on every draw 2) I created a new icon for every draw. On Linux, those things worked fine. On Windows - it was a little bit more problematic. Solutions: 1) The short filename is part of the item. Computed only once. 2) Cache the icons. Using a global state. Now scrolling is as fast as possible.
- Loading branch information
Showing
3 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
struct CompileStatus { | ||
QString fileName; | ||
QString displayName; | ||
int row; | ||
int col; | ||
QString type; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters