summaryrefslogtreecommitdiff
path: root/src/pluginlistview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 23:33:42 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 23:33:42 +0100
commite713e49934a134da611dcfb51e27719bbe26f205 (patch)
tree46c16c50ccba98df2359785104b04cfa76644425 /src/pluginlistview.h
parent94b3674d086f81479e71e265102b48c7607c3ef2 (diff)
Move plugin list index-view conversion to private.
Diffstat (limited to 'src/pluginlistview.h')
-rw-r--r--src/pluginlistview.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pluginlistview.h b/src/pluginlistview.h
index 6470ced9..ed6458da 100644
--- a/src/pluginlistview.h
+++ b/src/pluginlistview.h
@@ -30,15 +30,6 @@ public:
//
void updatePluginCount();
- // TODO: Move these to private when possible.
- // map from/to the view indexes to the model
- //
- QModelIndex indexModelToView(const QModelIndex& index) const;
- QModelIndexList indexModelToView(const QModelIndexList& index) const;
- QModelIndex indexViewToModel(const QModelIndex& index) const;
- QModelIndexList indexViewToModel(const QModelIndexList& index) const;
-
-
protected slots:
void onCustomContextMenuRequested(const QPoint& pos);
@@ -49,6 +40,15 @@ protected slots:
protected:
+ friend class PluginListContextMenu;
+
+ // map from/to the view indexes to the model
+ //
+ QModelIndex indexModelToView(const QModelIndex& index) const;
+ QModelIndexList indexModelToView(const QModelIndexList& index) const;
+ QModelIndex indexViewToModel(const QModelIndex& index) const;
+ QModelIndexList indexViewToModel(const QModelIndexList& index) const;
+
// method to react to various key events
//
bool moveSelection(int key);