You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
491 B

  1. #ifndef QUERY_H
  2. #define QUERY_H
  3. #include <QDialog>
  4. #include <QListWidgetItem>
  5. #include "crunchyrollapi.h"
  6. #include "delegates.h"
  7. namespace Ui {
  8. class query;
  9. }
  10. class query : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit query(CrunchyrollAPI* _api, QWidget *parent = nullptr);
  15. ~query();
  16. query_t getSelectedQuery();
  17. private:
  18. Ui::query *ui;
  19. CrunchyrollAPI* api;
  20. query_t selection;
  21. private slots:
  22. void selected(int);
  23. void doSearch();
  24. };
  25. #endif // QUERY_H