My Project
mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include "bird.h"
6 #include <QGraphicsScene>
7 
8 namespace Ui {
9  class MainWindow;
10 }
11 
12 class MainWindow : public QMainWindow
13 {
14  Q_OBJECT
15 
16 public:
22  explicit MainWindow(QWidget *parent = 0);
23 
29  ~MainWindow();
30 
42  void addBird(int x, int y, Bird &b) ;
43 
44 
52  void addBird(Bird &b) ;
53 
54 private:
55  Ui::MainWindow *ui;
56  QGraphicsScene *scene ;
57 };
58 
59 #endif // MAINWINDOW_H
Definition: mainwindow.h:8
~MainWindow()
Destructor.
Definition: mainwindow.cpp:40
void addBird(int x, int y, Bird &b)
Paints a bird into the MainWindow.
Definition: mainwindow.cpp:57
MainWindow(QWidget *parent=0)
Constructor.
Definition: mainwindow.cpp:17
Definition: mainwindow.h:12
Definition: bird.h:16