Fix text based Android manifest editor actions

All text editor actions were disabled. We want the actions to be enabled
when the focus is in the text editor widget in the Android manifest
editor.

For this the text editor action handler must differentiate between the
_editor_ and the _context_ that it handles. The one for the text based
manifest editor handles the manifest editor, but the context is specific
to the text editor part.

Change-Id: Ib91cc763cb27333a7d5b6e5b036dfead33961871
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2017-05-08 16:06:35 +02:00
parent 1f6764a54e
commit 2684254fad
7 changed files with 57 additions and 39 deletions

View File

@@ -7896,12 +7896,12 @@ void TextEditorFactory::setAutoCompleterCreator(const AutoCompleterCreator &crea
void TextEditorFactory::setEditorActionHandlers(Id contextId, uint optionalActions)
{
new TextEditorActionHandler(this, contextId, optionalActions);
new TextEditorActionHandler(this, id(), contextId, optionalActions);
}
void TextEditorFactory::setEditorActionHandlers(uint optionalActions)
{
new TextEditorActionHandler(this, id(), optionalActions);
new TextEditorActionHandler(this, id(), id(), optionalActions);
}
void TextEditorFactory::addHoverHandler(BaseHoverHandler *handler)