mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
27 lines
513 B
C++
27 lines
513 B
C++
#ifndef FILEDROPWIDGET_H
|
|
#define FILEDROPWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QDragEnterEvent;
|
|
class QDropEvent;
|
|
class QKeyEvent;
|
|
class QPaintEvent;
|
|
|
|
class FileDropWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
FileDropWidget(QWidget *parent = 0);
|
|
signals:
|
|
void filesDropped(QStringList files);
|
|
void deletePressed();
|
|
protected:
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
void dropEvent(QDropEvent *event);
|
|
void keyPressEvent(QKeyEvent *event);
|
|
void paintEvent(QPaintEvent *event);
|
|
};
|
|
|
|
#endif
|