bool QAquaAnimate::addWidget(QWidget *w) { if(focusable(w)) { if(w->hasFocus()) setFocusWidget(w); w->installEventFilter(this); } if(w == d->defaultButton || d->progressBars.contains((QProgressBar*)w)) //already knew of it return FALSE; if(w->inherits("QPushButton")){ QPushButton * btn = (QPushButton *) w; if(btn->isDefault() || (btn->autoDefault() && btn->hasFocus())){ d->defaultButton = btn; btn->installEventFilter(this); if(btn->isVisible() && d->buttonTimerId == -1) d->buttonTimerId = startTimer(50); } return TRUE; } else if(w->inherits("QProgressBar")){ w->installEventFilter(this); QObject::connect(w, SIGNAL(destroyed(QObject*)), this, SLOT(objDestroyed(QObject*))); if(w->isVisible() && d->progressTimerId == -1) { d->progressBars.append((QProgressBar*)w); d->progressTimerId = startTimer(50); } return TRUE; } else if(w->inherits("QListView")) {