Geen omschrijving

mainwindow.h 761B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QGraphicsScene>
  5. #include <QTimer>
  6. #include "play.h"
  7. namespace Ui {
  8. class MainWindow;
  9. }
  10. class MainWindow : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit MainWindow(QWidget *parent = 0);
  15. ~MainWindow();
  16. protected:
  17. void keyPressEvent(QKeyEvent *event);
  18. private slots:
  19. void on_playButton_clicked();
  20. void on_retryButton_clicked();
  21. void on_comboBox_activated(const QString &arg1);
  22. void on_trackBox_activated(const QString &arg1);
  23. void on_difficultyBox_activated(const QString &arg1);
  24. public slots:
  25. void score();
  26. private:
  27. play *game;
  28. Ui::MainWindow *ui;
  29. QTimer *globalTimer;
  30. QGraphicsScene*scene;
  31. };
  32. #endif // MAINWINDOW_H