Advertisement
osipyonok

4m lab3 header

Apr 15th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5. #include <vector>
  6. #include <QPainter>
  7. #include <QTimer>
  8.  
  9. using namespace std;
  10.  
  11. namespace Ui {
  12. class MainWindow;
  13. }
  14.  
  15. class MainWindow : public QMainWindow
  16. {
  17.     Q_OBJECT
  18.  
  19. public:
  20.     explicit MainWindow(QWidget *parent = 0);
  21.     ~MainWindow();
  22.  
  23. protected:
  24.     void paintEvent(QPaintEvent *event);
  25. private slots:
  26.     void update();
  27.     void on_pushButton_2_clicked();
  28.  
  29. private:
  30.     Ui::MainWindow *ui;
  31.     QTimer *trm = NULL;
  32. };
  33.  
  34.  
  35. #endif // MAINWINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement