From 80371ae2ccdb233f9aa92c8982bad6a136c54ae9 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 7 Jan 2021 20:33:01 +0100 Subject: Update markers and plugins highligths when separator is expanded/collapsed. --- src/modlistview.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/modlistview.h') diff --git a/src/modlistview.h b/src/modlistview.h index 53be08c5..1a174568 100644 --- a/src/modlistview.h +++ b/src/modlistview.h @@ -169,7 +169,6 @@ protected slots: void onCustomContextMenuRequested(const QPoint& pos); void onDoubleClicked(const QModelIndex& index); - void onSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected); void onFiltersCriteria(const std::vector& filters); private: @@ -184,6 +183,11 @@ private: void onModInstalled(const QString& modName); void onModFilterActive(bool filterActive); + // refresh the overwrite markers and the highligthed plugins from + // the current selection + // + void refreshMarkersAndPlugins(); + // clear overwrite markers (without repainting) // void clearOverwriteMarkers(); @@ -267,6 +271,10 @@ private: QtGroupingProxy* m_byCategoryProxy; QtGroupingProxy* m_byNexusIdProxy; + // marker used to avoid calling refreshing markers to many + // time in a row + QTimer m_refreshMarkersTimer; + // maintain collapsed items for each proxy to avoid // losing them on model reset std::map> m_collapsed; -- cgit v1.3.1