This commit is contained in:
Klaus Basan
2018-08-20 18:11:52 +02:00
parent a06fb10adb
commit f1312bbb50
11 changed files with 22 additions and 25 deletions

View File

@@ -126,12 +126,13 @@ namespace BlackGui
void CInfoBarWebReadersStatusBase::setLedReadState(CLedWidget *led, CEntityFlags::ReadState readState)
{
Q_ASSERT_X(led, Q_FUNC_INFO, "no LED");
const int resetTimeMs = 2.5 * 1000;
const int resetTimeMs = qRound(2.5 * 1000);
switch (readState)
{
case CEntityFlags::ReadSkipped:
case CEntityFlags::ReadFinished:
case CEntityFlags::ReadFinishedRestricted:
led->setOn(false);
led->blink(resetTimeMs); // blink here (temp. "on"), since read from cache results in immediate ReadFinished
break;
case CEntityFlags::StartRead: