mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 05:55:33 +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:
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#include <QScopedPointer>
|
||||
#include <QTimer>
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CInfoBarWebReadersStatusComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user