aboutus.cpp 586 B

123456789101112131415161718192021222324252627282930
  1. #include "aboutus.h"
  2. #include "ui_aboutus.h"
  3. #include "gui/guiscenemanager.h"
  4. #include <QMovie>
  5. AboutUs::AboutUs(QWidget *parent) :
  6. Scene(parent),
  7. ui(new Ui::AboutUs)
  8. {
  9. ui->setupUi(this);
  10. watcher = new ButtonEventListener(this);
  11. ui->back_button->installEventFilter(watcher);
  12. movie = new QMovie(":/assets/common/logo.gif");
  13. ui->logo->setMovie(movie);
  14. movie->start();
  15. }
  16. AboutUs::~AboutUs()
  17. {
  18. delete watcher;
  19. delete movie;
  20. delete ui;
  21. }
  22. void AboutUs::on_back_button_clicked()
  23. {
  24. GuiSceneManager::getInstance().changeScene("main_menu");
  25. }