selectdatedialog.h 569 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef SELECTDATEDIALOG_H
  2. #define SELECTDATEDIALOG_H
  3. #include <QDialog>
  4. #include <QLineEdit>
  5. #include <QDebug>
  6. namespace Ui
  7. {
  8. class SelectDateDialog;
  9. }
  10. class SelectDateDialog : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit SelectDateDialog(QWidget* parent = nullptr);
  15. ~SelectDateDialog();
  16. QString date();
  17. bool eventFilter(QObject* watched, QEvent* event);
  18. private slots:
  19. void on_btnCancel_clicked();
  20. void on_btnOk_clicked();
  21. private:
  22. Ui::SelectDateDialog* ui;
  23. };
  24. bool selectDateDialog(QLineEdit* edit);
  25. #endif // SELECTDATEDIALOG_H