summaryrefslogtreecommitdiff
path: root/src/modlistview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-07 20:33:01 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-10 10:27:30 +0100
commit80371ae2ccdb233f9aa92c8982bad6a136c54ae9 (patch)
tree4e602fe5c237cfa50db6e9b4ed9ac0517da74d3d /src/modlistview.h
parentf919e0917344d7396f03423ef4fcd4d41fe37b07 (diff)
Update markers and plugins highligths when separator is expanded/collapsed.
Diffstat (limited to 'src/modlistview.h')
-rw-r--r--src/modlistview.h10
1 files changed, 9 insertions, 1 deletions
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<ModListSortProxy::Criteria>& 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<QAbstractItemModel*, std::set<QString>> m_collapsed;