MainWindow.cpp 590 B

1234567891011121314151617181920212223242526272829
  1. #include "MainWindow.h"
  2. #include "ui_MainWindow.h"
  3. #include "EXProjectView.h"
  4. #include <dbService/ClassSet.h>
  5. #include <dbService/ProjectService.h>
  6. #include <QDebug>
  7. MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
  8. {
  9. ui->setupUi(this);
  10. setWindowTitle("");
  11. ProjectInfo *proj = new ProjectInfo();
  12. ProjectService().QueryProjectById(proj, 110);
  13. if (proj->id < 0) {
  14. return;
  15. }
  16. EXProjectView *projView = new EXProjectView(proj, this);
  17. setCentralWidget(projView);
  18. }
  19. MainWindow::~MainWindow()
  20. {
  21. delete ui;
  22. }