diff options
author | Alexander Golubev <[email protected]> | 2024-02-17 22:29:31 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-22 18:29:31 +0900 |
commit | ad01a7f1f9dee617e1c41434000788e93e4a82bd (patch) | |
tree | a4a3913b1e930c6683b0da587a2c19c770c4f2e1 /src/gvcore/filethumbnailviewitem.cpp | |
parent | 801c90b6c2cb7b3632aa9d20da59b80b104d2c85 (diff) | |
download | gwenview-ad01a7f1f9dee617e1c41434000788e93e4a82bd.tar.gz gwenview-ad01a7f1f9dee617e1c41434000788e93e4a82bd.zip |
Various small improvements
- fix some warnings about struct/class deslaration/definition mismatch
- fix incorrect assert in jpegcontent.cpp
- add a note
- null a pointer after deleting a job
Signed-off-by: Alexander Golubev <[email protected]>
(cherry picked from commit d4548234b93404404e8807ac6fe5c671faad68f2)
Diffstat (limited to 'src/gvcore/filethumbnailviewitem.cpp')
-rw-r--r-- | src/gvcore/filethumbnailviewitem.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gvcore/filethumbnailviewitem.cpp b/src/gvcore/filethumbnailviewitem.cpp index dae4172..d017140 100644 --- a/src/gvcore/filethumbnailviewitem.cpp +++ b/src/gvcore/filethumbnailviewitem.cpp @@ -283,8 +283,11 @@ void FileThumbnailViewItem::calcRect(const TQString&) { itemTextRect.moveLeft(PADDING); itemTextRect.moveTop(thumbnailSize + PADDING * 2); } - + // Update rects + // NOTE: this results in 3 calls to TQIconViewContainer(), which is costly if + // there are a lot (tens of thousands) of items, unfortunately there + // is no way to workaround this in current (14.1.1, 2024) TQt API if ( itemPixmapRect != pixmapRect() ) { setPixmapRect( itemPixmapRect ); } |