aboutus.cpp 446 B

123456789101112131415161718192021222324
  1. #include "aboutus.h"
  2. #include "ui_aboutus.h"
  3. #include "gui/guiscenemanager.h"
  4. AboutUs::AboutUs(QWidget *parent) :
  5. Scene(parent),
  6. ui(new Ui::AboutUs)
  7. {
  8. ui->setupUi(this);
  9. watcher = new ButtonEventListener(this);
  10. ui->back_button->installEventFilter(watcher);
  11. }
  12. AboutUs::~AboutUs()
  13. {
  14. delete watcher;
  15. delete ui;
  16. }
  17. void AboutUs::on_back_button_clicked()
  18. {
  19. GuiSceneManager::getInstance().changeScene("main_menu");
  20. }