summaryrefslogtreecommitdiff
path: root/src/modlistview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-28 15:20:37 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:15 +0100
commit9d8c64dccbdb5144c6496cbd9ef4eb636f6b4ace (patch)
tree695c1bcbc442e648b844ff04655e655b786e2148 /src/modlistview.h
parent9db6a9d7931edbb08e74cd1e110794f47d46df3e (diff)
Do not set Qt::ItemIsDropEnabled all the time.
Diffstat (limited to 'src/modlistview.h')
-rw-r--r--src/modlistview.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modlistview.h b/src/modlistview.h
index bc5654ce..9546321e 100644
--- a/src/modlistview.h
+++ b/src/modlistview.h
@@ -12,6 +12,10 @@ public:
explicit ModListView(QWidget *parent = 0);
void setModel(QAbstractItemModel *model) override;
+signals:
+
+ void dragEntered(const QMimeData* mimeData);
+
protected:
// replace the auto-expand timer from QTreeView to avoid
@@ -19,6 +23,7 @@ protected:
QBasicTimer openTimer;
void timerEvent(QTimerEvent* event) override;
+ void dragEnterEvent(QDragEnterEvent* event) override;
void dragMoveEvent(QDragMoveEvent* event) override;
private: