mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
29 lines
597 B
C++
29 lines
597 B
C++
#ifndef FILEDROPWIDGET_H
|
|
#define FILEDROPWIDGET_H
|
|
|
|
#include <QStackedWidget>
|
|
|
|
class QDragEnterEvent;
|
|
class QDropEvent;
|
|
class QKeyEvent;
|
|
class QPaintEvent;
|
|
|
|
class FileDropWidget : public QStackedWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
FileDropWidget(QWidget *parent = 0);
|
|
signals:
|
|
void filesDropped(QStringList files);
|
|
void enterPressed();
|
|
void deletePressed();
|
|
protected:
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
void dragMoveEvent(QDragMoveEvent *event);
|
|
void dropEvent(QDropEvent *event);
|
|
void keyPressEvent(QKeyEvent *event);
|
|
void paintEvent(QPaintEvent *event);
|
|
};
|
|
|
|
#endif
|