Simple UserOperationLog table.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <QListWidgetItem>
|
||||
#include "ui_tabformwidget.h"
|
||||
#include <QLabel>
|
||||
#include "UserOperationLogForm.h"
|
||||
|
||||
AdminSettingForm::AdminSettingForm(QWidget *parent, Qt::WindowFlags f) : TabFormWidget(parent) {
|
||||
|
||||
@@ -19,7 +20,7 @@ AdminSettingForm::AdminSettingForm(QWidget *parent, Qt::WindowFlags f) : TabForm
|
||||
QListWidget* widget = new QListWidget(this);
|
||||
widget->setFixedWidth(250);
|
||||
QStringList menus;
|
||||
menus<<tr("Account Manage")<<tr("System Setting")<<"System Information"<<tr("About");
|
||||
menus<<tr("Account Manage")<<tr("System Setting")<<tr("System Information")<<tr("Operation Log")<<tr("About");
|
||||
widget->addItems(menus);
|
||||
widget->setSpacing(3);
|
||||
for (int i = 0; i < menus.count(); ++i) {
|
||||
@@ -46,6 +47,10 @@ AdminSettingForm::AdminSettingForm(QWidget *parent, Qt::WindowFlags f) : TabForm
|
||||
Info->setText("info");
|
||||
stackedWidget->addWidget(Info);
|
||||
|
||||
UserOperationLogForm* operationLogForm = new UserOperationLogForm(this);
|
||||
|
||||
stackedWidget->addWidget(operationLogForm);
|
||||
|
||||
QLabel* about = new QLabel(this);
|
||||
about->setText("About");
|
||||
stackedWidget->addWidget(about);
|
||||
|
||||
Reference in New Issue
Block a user