123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef PROFESSION_H
- #define PROFESSION_H
- #include <QDialog>
- #include <QDateTime>
- class QFUser;
- namespace Ui {
- class ProfessionalInfo;
- }
- class ProfessionalInfo : public QDialog
- {
- Q_OBJECT
- public:
- explicit ProfessionalInfo(QWidget *parent = nullptr);
- ~ProfessionalInfo();
- bool completeIt();
- void setCompleteIt(bool complete);
- void setPerson(const QFUser &person);
- void setSureButtonVisible();
- void setDetailButtonVisible();
- signals:
- void addNewPro(QString name);
- void saveNewUser();
- private slots:
- void on_saveBtn_clicked();
- void on_clearBtn_clicked();
- void textChanged(const QString &text);
- void on_sureButton_clicked();
- private:
- Ui::ProfessionalInfo *ui;
- bool m_completeIt; // 是否需要完善信息
- int m_userId = -1;
- bool m_done;
- // QWidget interface
- protected:
- void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
- };
- #endif // PROFESSION_H
|