comparison include/gui/widgets/drop_list_widget.h @ 317:b1f4d1867ab1

services: VERY initial Kitsu support it only supports user authentication for now, but it's definitely a start.
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 04:07:10 -0400
parents
children
comparison
equal deleted inserted replaced
316:180714442770 317:b1f4d1867ab1
1 #ifndef MINORI_GUI_WIDGETS_DROP_LIST_WIDGET_H_
2 #define MINORI_GUI_WIDGETS_DROP_LIST_WIDGET_H_
3
4 #include <QListWidget>
5 #include <QString>
6 #include <QWidget>
7
8 class QDragEnterEvent;
9 class QDragMoveEvent;
10 class QDropEvent;
11
12 class DroppableListWidget : public QListWidget {
13 Q_OBJECT
14
15 public:
16 explicit DroppableListWidget(QWidget* parent);
17
18 signals:
19 void FilesDropped(QStringList list);
20
21 protected:
22 void dragEnterEvent(QDragEnterEvent* event) override;
23 void dragMoveEvent(QDragMoveEvent* event) override;
24 void dropEvent(QDropEvent* event) override;
25 };
26
27 #endif // MINORI_GUI_WIDGETS_DROP_LIST_WIDGET_H_