diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/gui/widgets/drop_list_widget.h	Wed Jun 12 04:07:10 2024 -0400
@@ -0,0 +1,27 @@
+#ifndef MINORI_GUI_WIDGETS_DROP_LIST_WIDGET_H_
+#define MINORI_GUI_WIDGETS_DROP_LIST_WIDGET_H_
+
+#include <QListWidget>
+#include <QString>
+#include <QWidget>
+
+class QDragEnterEvent;
+class QDragMoveEvent;
+class QDropEvent;
+
+class DroppableListWidget : public QListWidget {
+	Q_OBJECT
+
+public:
+	explicit DroppableListWidget(QWidget* parent);
+
+signals:
+	void FilesDropped(QStringList list);
+
+protected:
+	void dragEnterEvent(QDragEnterEvent* event) override;
+	void dragMoveEvent(QDragMoveEvent* event) override;
+	void dropEvent(QDropEvent* event) override;
+};
+
+#endif // MINORI_GUI_WIDGETS_DROP_LIST_WIDGET_H_
\ No newline at end of file