void MetadataManager::_pushListToClean(WithLock, std::list<Deletion> ranges) { auto when = _rangesToClean.add(std::move(ranges)); if (when) { scheduleCleanup( _executor, _nss, _metadata.back()->metadata.getCollVersion().epoch(), *when); } }
void VisualEventOverlay::indicateKeyboardInputBlocked(Terminal* terminal) { if (Settings::keyboardInputBlockIndicatorDuration() == 0) return; terminalEvent(terminal, EventRect::KeyboardInputBlocked); scheduleCleanup(Settings::keyboardInputBlockIndicatorDuration()); }
void BaseSettingsManager::RegisterObject (const QByteArray& propName, QObject *object, const QByteArray& funcName, EventFlags flags) { if (flags & EventFlag::Apply) ApplyProps_.insertMulti (propName, qMakePair (QPointer<QObject> (object), funcName)); if (flags & EventFlag::Select) SelectProps_.insertMulti (propName, qMakePair (QPointer<QObject> (object), funcName)); connect (object, SIGNAL (destroyed (QObject*)), this, SLOT (scheduleCleanup ()), Qt::UniqueConnection); }
void VisualEventOverlay::highlightTerminal(Terminal* terminal, bool persistent) { if (!persistent && Settings::terminalHighlightDuration() == 0) return; if (isHidden()) show(); EventRect::EventFlags flags = EventRect::Singleton | EventRect::Exclusive; if (persistent) flags |= EventRect::Persistent; terminalEvent(terminal, EventRect::TerminalHighlight, flags); if (!persistent) scheduleCleanup(Settings::terminalHighlightDuration()); }