resfiledialog.h 506 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef RESFILEDIALOG_H
  2. #define RESFILEDIALOG_H
  3. #include <QDialog>
  4. namespace Ui {
  5. class ResFileDialog;
  6. }
  7. class ResFileDialog : public QDialog
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit ResFileDialog(QWidget *parent = nullptr);
  12. ~ResFileDialog();
  13. QString getResName();
  14. protected:
  15. void dragEnterEvent(QDragEnterEvent *event);
  16. void dropEvent(QDropEvent *event);
  17. private slots:
  18. void on_buttonBox_accepted();
  19. private:
  20. Ui::ResFileDialog *ui;
  21. QString res;
  22. };
  23. #endif // RESFILEDIALOG_H