Mercurial > minori
view include/gui/widgets/drop_list_widget.h @ 342:adb79bdde329
dep/animone: fix tons of issues
for example, the window ID stuff was just... completely wrong. since we're
supporting multiple different window systems, it *has* to be a union rather
than just a single integer type. HWND is also not a DWORD, it's a pointer(!),
so now it's stored as a std::uintptr_t.
(this probably breaks things)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 20 Jun 2024 03:03:05 -0400 |
parents | b1f4d1867ab1 |
children |
line wrap: on
line source
#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_