| 70 | } |
| 71 | |
| 72 | void UBIdleTimer::timerEvent(QTimerEvent *event) |
| 73 | { |
| 74 | Q_UNUSED(event); |
| 75 | |
| 76 | bool hasWaitCuror = (UBApplication::overrideCursor() && |
| 77 | (UBApplication::overrideCursor()->shape() == Qt::WaitCursor)); |
| 78 | |
| 79 | if (!mCursorIsHidden |
| 80 | && (mLastInputEventTime.secsTo(QDateTime::currentDateTime()) >= 2) |
| 81 | && UBApplication::boardController |
| 82 | && UBApplication::boardController->controlView() |
| 83 | && UBApplication::boardController->controlView()->hasFocus() |
| 84 | && !hasWaitCuror) |
| 85 | { |
| 86 | QApplication::setOverrideCursor(QCursor(Qt::BlankCursor)); |
| 87 | mCursorIsHidden = true; |
| 88 | } |
| 89 | } |
nothing calls this directly
no test coverage detected