resfiledialog.h 544 B

1234567891011121314151617181920212223242526272829303132
  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. void setResName(QString resName);
  15. protected:
  16. void dragEnterEvent(QDragEnterEvent *event);
  17. void dropEvent(QDropEvent *event);
  18. private slots:
  19. void on_buttonBox_accepted();
  20. private:
  21. Ui::ResFileDialog *ui;
  22. QString res;
  23. };
  24. #endif // RESFILEDIALOG_H