32 lines
743 B
C++
32 lines
743 B
C++
#ifndef GUI_USEROPERATIONLOGFORM_H
|
|
#define GUI_USEROPERATIONLOGFORM_H
|
|
|
|
#include <QWidget>
|
|
class QTableView;
|
|
class QPushButton;
|
|
class LogFileTableModel;
|
|
class QVBoxLayout;
|
|
class SelectDialog;
|
|
class UserOperationLogForm :public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit UserOperationLogForm(QWidget* parent = nullptr);
|
|
~UserOperationLogForm();
|
|
void loadUserOperationLog();
|
|
void loadUserOperationLog(const QString& fileName, const QString& date);
|
|
|
|
protected:
|
|
void showEvent(QShowEvent *aEvent) override;
|
|
|
|
private:
|
|
QTableView* table = nullptr;
|
|
QPushButton* btn = nullptr;
|
|
LogFileTableModel* model = nullptr;
|
|
SelectDialog* dialog = nullptr;
|
|
QVBoxLayout* layout = nullptr;
|
|
QString selectedDateStr;
|
|
};
|
|
|
|
|
|
#endif //GUI_USEROPERATIONLOGFORM_H
|