Files
GUI/src/UserOperationLogForm.h

32 lines
743 B
C
Raw Normal View History

2021-11-23 13:22:00 +08:00
#ifndef GUI_USEROPERATIONLOGFORM_H
#define GUI_USEROPERATIONLOGFORM_H
#include <QWidget>
2021-11-23 16:53:36 +08:00
class QTableView;
class QPushButton;
2021-11-26 10:49:09 +08:00
class LogFileTableModel;
class QVBoxLayout;
class SelectDialog;
class UserOperationLogForm :public QWidget {
Q_OBJECT
2021-11-23 13:22:00 +08:00
public:
explicit UserOperationLogForm(QWidget* parent = nullptr);
~UserOperationLogForm();
void loadUserOperationLog();
void loadUserOperationLog(const QString& fileName, const QString& date);
2021-11-23 13:22:00 +08:00
2023-09-05 16:32:38 +08:00
protected:
void showEvent(QShowEvent *aEvent) override;
2021-11-23 13:22:00 +08:00
private:
QTableView* table = nullptr;
QPushButton* btn = nullptr;
LogFileTableModel* model = nullptr;
SelectDialog* dialog = nullptr;
QVBoxLayout* layout = nullptr;
QString selectedDateStr;
2021-11-23 13:22:00 +08:00
};
#endif //GUI_USEROPERATIONLOGFORM_H