2022-01-04 18:11:48 +08:00
|
|
|
#ifndef WPLANLIST_H
|
|
|
|
#define WPLANLIST_H
|
|
|
|
|
|
|
|
#include <QListWidget>
|
|
|
|
#include <QListWidgetItem>
|
|
|
|
|
2023-04-25 16:30:58 +08:00
|
|
|
class wPlanList : public QListWidget {
|
2022-01-04 18:11:48 +08:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit wPlanList(QWidget *parent = nullptr);
|
|
|
|
QJsonArray plansJson();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void adjustItemNum();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void onAddPlan();
|
|
|
|
void onRestorePlan(const QJsonArray &jRoot);
|
|
|
|
void onDeletePlan(QListWidgetItem *item);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WPLANLIST_H
|