summaryrefslogtreecommitdiff
path: root/src/pluginlistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pluginlistview.h')
-rw-r--r--src/pluginlistview.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pluginlistview.h b/src/pluginlistview.h
index 95450ffd..92f03588 100644
--- a/src/pluginlistview.h
+++ b/src/pluginlistview.h
@@ -43,6 +43,21 @@ protected slots:
void onFilterChanged(const QString& filter);
+protected:
+
+ // method to react to various key events
+ //
+ bool moveSelection(int key);
+ bool toggleSelectionState();
+
+ // get/set the selected items on the view, this method return/take indices
+ // from the mod list model, not the view, so it's safe to restore
+ //
+ std::pair<QModelIndex, QModelIndexList> selected() const;
+ void setSelected(const QModelIndex& current, const QModelIndexList& selected);
+
+ bool event(QEvent* event) override;
+
private:
struct PluginListViewUi