2024-08-27 17:30:48 +08:00
|
|
|
#ifndef UHISTORY_H
|
|
|
|
|
#define UHISTORY_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2024-09-14 00:02:48 +08:00
|
|
|
|
2024-08-27 17:30:48 +08:00
|
|
|
#include "history.h"
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class CUIHistory;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class CUIHistory : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2024-09-14 00:02:48 +08:00
|
|
|
explicit CUIHistory(QWidget* parent, CHistory* his);
|
2024-08-27 17:30:48 +08:00
|
|
|
~CUIHistory();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void showEvent(QShowEvent* event);
|
|
|
|
|
void select_ok();
|
2024-08-28 08:42:45 +08:00
|
|
|
void del_item();
|
2025-04-03 14:55:22 +08:00
|
|
|
void double_click(const QModelIndex& index);
|
2024-08-27 17:30:48 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
QString cur_{};
|
|
|
|
|
|
|
|
|
|
private:
|
2024-09-14 00:02:48 +08:00
|
|
|
Ui::CUIHistory* ui;
|
2024-08-27 17:30:48 +08:00
|
|
|
CHistory* his_{};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // UHISTORY_H
|