hint deviceId completion
This commit is contained in:
parent
70b0d42e91
commit
820f0002fd
@ -135,6 +135,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*deviceId: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -159,6 +160,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*stateTypeId: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -185,6 +187,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*stateName: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -209,6 +212,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*actionTypeId: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -233,6 +237,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*actionName: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -256,6 +261,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*eventTypeId: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -279,6 +285,7 @@ void CodeCompletion::update()
|
||||
blockText.remove(QRegExp(".*eventName: \""));
|
||||
m_model->update(entries);
|
||||
m_proxy->setFilter(blockText);
|
||||
emit hint();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -61,6 +61,7 @@ signals:
|
||||
void documentChanged();
|
||||
void cursorPositionChanged();
|
||||
void currentWordChanged();
|
||||
void hint();
|
||||
|
||||
private:
|
||||
class BlockInfo {
|
||||
|
||||
@ -406,6 +406,7 @@ Page {
|
||||
document: scriptEdit.textDocument
|
||||
cursorPosition: scriptEdit.cursorPosition
|
||||
onCursorPositionChanged: scriptEdit.cursorPosition = cursorPosition
|
||||
onHint: completionBox.show()
|
||||
}
|
||||
|
||||
BusyOverlay {
|
||||
|
||||
Reference in New Issue
Block a user