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