mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Style
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user