diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-02-20 20:33:48 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2024-02-20 20:33:48 +0300 |
commit | 53ce37eeca12badf89ebde563a8ec335e0236a02 (patch) | |
tree | 1e28df1ba0a3d9cdaef27d9796f4391856a281b6 /src/gvcore/fileviewcontroller.h | |
parent | 79826b760ff5c65840794d3d2dc4c4a60916996c (diff) | |
download | gwenview-53ce37eeca12badf89ebde563a8ec335e0236a02.tar.gz gwenview-53ce37eeca12badf89ebde563a8ec335e0236a02.zip |
Avoid sorting items and creating thumbnails when loading metadata
Otherwice it has a big performance impact: it causes lots of
thumbnail reloads and resorts of FileThumbnailView.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src/gvcore/fileviewcontroller.h')
-rw-r--r-- | src/gvcore/fileviewcontroller.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gvcore/fileviewcontroller.h b/src/gvcore/fileviewcontroller.h index b863614..55c2ebd 100644 --- a/src/gvcore/fileviewcontroller.h +++ b/src/gvcore/fileviewcontroller.h @@ -174,7 +174,6 @@ private slots: void toggleShowDotFiles(); void setSorting(); void updateSortMenu(TQDir::SortSpec); - void updateViewItem(const KFileItem *item); // Dir lister slots void dirListerDeleteItem(KFileItem* item); @@ -185,10 +184,11 @@ private slots: void dirListerCanceled(); void dirListerCompleted(); - // Metadata info loader jobs - void loadMetaInfo(const KFileItemList& items); + // Metadata info loader job's slots + void loadMetaInfo(const KFileItemList& items, bool forceReload=false); void nextMetaInfoJob(); void stopMetaInfoUpdate(); + void updateItemMetaInfo(const KFileItem *item); void openDropURLMenu(TQDropEvent*, KFileItem*); @@ -246,6 +246,7 @@ private: void emitURLChanged(); void updateActions(); void prefetch( KFileItem* item ); + void updateViewItem(const KFileItem *item, bool metaInfoOnly=false); KFileItem* findFirstImage() const; KFileItem* findLastImage() const; |