No Description

frog.h 758B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef FROG_H
  2. #define FROG_H
  3. #include <QWidget>
  4. #include <QPainter>
  5. #include <QtGui>
  6. #include <QtCore>
  7. #include <QTimer>
  8. #include <QLabel>
  9. class frog : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit frog(QWidget *parent = 0);
  14. float Ysapo, Xsapo, initialX;
  15. bool flag, xFlag, backFlag, moved, textBool;
  16. int A, B, C, buttonCounter,temp,temp2,xnenu,xnenu2,xnenu3;
  17. double QuadraticPlus(int a, int b, int c);
  18. double QuadraticMinus(int a, int b, int c);
  19. ~frog();
  20. private:
  21. QLabel *inter1Label;
  22. QLabel *inter2Label;
  23. signals:
  24. public slots:
  25. void mySlot();
  26. void run(int, int, int);
  27. void reset();
  28. void updatenenu();
  29. protected:
  30. void paintEvent(QPaintEvent *event);
  31. QTimer *myTimer;
  32. };
  33. #endif // FROG_H