void QmlModelView::setCurrentState(const QmlModelState &state) { if (!state.isValid()) return; emitCustomNotification("__state changed__", QList<ModelNode>() << state.modelNode()); }
void NodeInstanceView::handleChrash() { int elaspsedTimeSinceLastCrash = m_lastCrashTime.restart(); if (elaspsedTimeSinceLastCrash > 2000) restartProcess(); else emit qmlPuppetCrashed(); emitCustomNotification(QStringLiteral("puppet crashed")); }
void AbstractView::emitCustomNotification(const QString &identifier, const QList<ModelNode> &nodeList) { emitCustomNotification(identifier, nodeList, QList<QVariant>()); }
void AbstractView::emitCustomNotification(const QString &identifier) { emitCustomNotification(identifier, QList<ModelNode>()); }