1234567891011121314151617181920212223242526272829303132333435363738 |
- #include "MainWindow.h"
- #include "ui_MainWindow.h"
- #include "EXProjectView.h"
- #include <dbService/ClassSet.h>
- #include <dbService/ProjectService.h>
- #include <dbService/UserConfigService.h>
- #include <dbService/UserService.h>
- #include <QDebug>
- MainWindow::MainWindow(int projectId, QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
- {
- ui->setupUi(this);
- setWindowTitle("");
- // int projId = 110;
- // QList<UserConfig *> cfgList;
- // bool ret = UserConfigService().QueryUserConfigListInfoByEngineerId(&cfgList, projId);
- // if (!ret) {
- // return;
- // }
- proj = new ProjectInfo;
- int ret = ProjectService().QueryProjectById(proj, projectId);
- if (!ret) {
- return;
- }
- EXProjectView *projView = new EXProjectView(proj, this);
- setCentralWidget(projView);
- }
- MainWindow::~MainWindow()
- {
- delete ui;
- }
|