16 class Bird :
public QWidget
43 explicit Bird(QWidget *parent = 0);
132 Qt::GlobalColor
getColor(QString)
const;
153 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:25
QString getEyeColor() const
Getter for the eyeColor.
Definition: bird.cpp:67
QString color
Definition: bird.h:150
void setFaceColor(QString)
Setter for the face color.
Definition: bird.cpp:98
void setEyeColor(QString)
Setter for the eyeColor.
Definition: bird.cpp:87
int getSize() const
Getter for the bird size.
Definition: bird.cpp:107
QString eColor
Definition: bird.h:151
QString getFaceColor() const
Getter for the faceColor.
Definition: bird.cpp:76
void setEyebrow(EyeBrowType)
Setter for the eyebrow type.
Definition: bird.cpp:143
int size
Definition: bird.h:148
void paintEvent(QPaintEvent *event)
This function is automatically invoked each time the widget or its parent receives a repaint signal...
Definition: bird.cpp:193
EyeBrowType
Definition: bird.h:23
int randInt(int min, int max)
Generates a random integer in the range [min, max].
Definition: bird.cpp:180
void setSize(int)
Setter for the bird size.
Definition: bird.cpp:127
Qt::GlobalColor getColor(QString) const
Converts a color specified as string to a Qt::GlobalColor.
Definition: bird.cpp:156
EyeBrowType eyeBrow
Definition: bird.h:149