16 class Bird :
public QWidget
43 explicit Bird(QWidget *parent = 0);
132 Qt::GlobalColor
getColor(QString)
const;
154 int randInt(
int min,
int max) ;
Bird(QWidget *parent=0)
Default constructor. The properties of the bird are set as follows: size: set to random value of eith...
Definition: bird.cpp:24
QString getEyeColor() const
Getter for the eyeColor.
Definition: bird.cpp:66
QString color
Definition: bird.h:151
void setFaceColor(QString)
Setter for the face color.
Definition: bird.cpp:97
void setEyeColor(QString)
Setter for the eyeColor.
Definition: bird.cpp:86
int getSize() const
Getter for the bird size.
Definition: bird.cpp:106
void paintEvent(QPaintEvent *)
This function is automatically invoked each time the widget or its parent receives a repaint signal...
Definition: bird.cpp:191
QString eColor
Definition: bird.h:152
QString getFaceColor() const
Getter for the faceColor.
Definition: bird.cpp:75
void setEyebrow(EyeBrowType)
Setter for the eyebrow type.
Definition: bird.cpp:140
int size
Definition: bird.h:149
EyeBrowType
Definition: bird.h:23
int randInt(int min, int max)
Generates a random integer in the range [min, max].
Definition: bird.cpp:178
void setSize(int)
Setter for the bird size.
Definition: bird.cpp:126
Qt::GlobalColor getColor(QString) const
Converts a color specified as string to a Qt::GlobalColor.
Definition: bird.cpp:153
EyeBrowType eyeBrow
Definition: bird.h:150