detdialog.h 536 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef DETDIALOG_H
  2. #define DETDIALOG_H
  3. #include <QJsonObject>
  4. #include <QJsonDocument>
  5. #include <QDialog>
  6. #include <QMessageBox>
  7. namespace Ui {
  8. class DetDialog;
  9. }
  10. class DetDialog : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit DetDialog(QWidget *parent = nullptr);
  15. ~DetDialog();
  16. signals:
  17. void validateDetNum(const QJsonDocument &jsonDoc);
  18. private slots:
  19. void onComboTypeIndexChanged(int index);
  20. void validateInput();
  21. private:
  22. void clearFormData();
  23. private:
  24. Ui::DetDialog *ui;
  25. };
  26. #endif // DETDIALOG_H