| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef SELECTVALUEFORM_H
- #define SELECTVALUEFORM_H
- #include <QWidget>
- #include "configinfo.h"
- #include "handle/httprequest.h"
- namespace Ui {
- class SelectValueForm;
- }
- class SelectValueForm : public QWidget
- {
- Q_OBJECT
- public:
- explicit SelectValueForm(QWidget *parent = nullptr);
- ~SelectValueForm();
- void getInfo(int page, int pageListNum = 20);
- inline void setStatus(int staus){status = staus;}
- signals:
- void back();
- void selectProject(const ProjectInfo & info, int status);
- private slots:
- void result(int code, const QJsonObject & body);
- void refPage();
- void parseObject(const QJsonObject & obj);
- void on_pushPrev_clicked();
- void on_pushNext_clicked();
- void on_pushButton_2_clicked();
- void on_pushButton_3_clicked();
- private:
- Ui::SelectValueForm *ui;
- int nowPage;
- int pageListNum;
- int totlePage;
- int totleNum;
- QList<ProjectInfo> currtInfo;
- HttpRequest _request;
- int status;
- };
- #endif // SELECTVALUEFORM_H
|