ProjectView.cpp 903 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #include "ProjectView.h"
  2. #include "ProjectListWidget.h"
  3. #include "RenameWidget.h"
  4. #include "ConfigExpertWidget.h"
  5. #include <Widgets/Button.h>
  6. #include <Widgets/LineEdit.h>
  7. #include <QBoxLayout>
  8. #include <QLabel>
  9. #include <QDebug>
  10. ProjectView::ProjectView(ProjectInfo *proj, QWidget *parent) : QWidget(parent), m_proj(proj) { }
  11. void ProjectView::showEvent(QShowEvent *event)
  12. {
  13. if (m_initilized == false) {
  14. initWidgets();
  15. initLayout();
  16. connectSigalsAndSlots();
  17. m_initilized = true;
  18. }
  19. QWidget::showEvent(event);
  20. }
  21. void ProjectView::hideEvent(QHideEvent *event)
  22. {
  23. QWidget::hideEvent(event);
  24. }
  25. ProjectInfo *ProjectView::proj() const
  26. {
  27. return m_proj;
  28. }
  29. void ProjectView::setProject(ProjectInfo *proj)
  30. {
  31. m_proj = proj;
  32. }
  33. void ProjectView::initWidgets() { }
  34. void ProjectView::initLayout() { }
  35. void ProjectView::connectSigalsAndSlots() { }