detdialog.h 553 B

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