Some tuning of the fancy action bar

Done-with: jbache
This commit is contained in:
mae
2010-03-12 17:24:20 +01:00
parent a2fe486b30
commit d13dfe44f0
3 changed files with 22 additions and 6 deletions

View File

@@ -44,6 +44,8 @@
using namespace Core;
const int notificationTimeout = 8000;
void FadeWidgetHack::paintEvent(QPaintEvent *)
{
if (m_opacity == 0)
@@ -187,7 +189,7 @@ bool FutureProgress::eventFilter(QObject *, QEvent *e)
if (m_waitingForUserInteraction
&& (e->type() == QEvent::MouseMove || e->type() == QEvent::KeyPress)) {
qApp->removeEventFilter(this);
QTimer::singleShot(5000, this, SLOT(fadeAway()));
QTimer::singleShot(notificationTimeout, this, SLOT(fadeAway()));
}
return false;
}
@@ -205,7 +207,7 @@ void FutureProgress::setFinished()
m_waitingForUserInteraction = true;
qApp->installEventFilter(this);
} else {
QTimer::singleShot(5000, this, SLOT(fadeAway()));
QTimer::singleShot(notificationTimeout, this, SLOT(fadeAway()));
}
}