29 layout_(new QGridLayout(this)),
30 labelIcon_(new QLabel(this)),
31 timer_(new QTimer(this)),
36 layout_->setContentsMargins(0, 0, 0, 0);
41 frames_[
Busy] = QList<QPixmap>();
44 frameRates_[
Error] = 0.0;
45 frameRates_[
Busy] = 0.0;
71 numFrames,
double frameRate) {
72 QList<QPixmap> frameList;
73 size_t frameHeight = frames.height()/numFrames;
75 for (
size_t i = 0; i < numFrames; ++i) {
76 QPixmap frame = frames.copy(0, i*frameHeight, frames.width(),
78 frameList.append(frame);
86 bool wasStarted =
false;
101 QMap<Role, QList<QPixmap> >::const_iterator it =
frames_.find(role);
104 static QList<QPixmap> frames;
117 timer_->setInterval(1.0/frameRate*1e3);