Allow nested IContexts and use it to give extra editor windows a context

The extra editor windows need to have editor manager context, otherwise
shortcuts (like ctrl+tab) do not work in them if e.g. projects mode is
active. Doing this via add/removeAdditionalContexts would be non-trivial
and error prone, so adding a context to the extra window is more
convenient. Since editors themselves already define a context, we need
to allow nesting of contexts.

Change-Id: I244eca53ebd665fd4d8fe7531e8ff701ed0b40b2
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Eike Ziller
2013-05-07 19:03:22 +02:00
parent bde0627e59
commit deff0eb3c7
11 changed files with 72 additions and 74 deletions

View File

@@ -332,9 +332,9 @@
*/
/*!
\fn void ICore::contextAboutToChange(Core::IContext *context)
\fn void ICore::contextAboutToChange(const QList<Core::IContext *> &context)
\brief Sent just before a new \a context becomes the current context
(meaning that its widget got focus).
(meaning that itself or one of its child widgets got focus).
*/
/*!