summaryrefslogtreecommitdiffstats
path: root/src/gvcore/filethumbnailviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/filethumbnailviewitem.cpp')
-rw-r--r--src/gvcore/filethumbnailviewitem.cpp5
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 );
}