Mercurial > minori
view include/gui/widgets/drop_list_widget.h @ 406:31ce85df55a8 default tip
filesystem: add mac os x directory watcher
this code is incredibly stinky
tbh we should probably be using C++ threads everywhere else just
because they are SO much easier to code for than the shitty Qt
threads API
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 19 Jan 2026 22:48:56 -0500 |
| 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_
