Core::Context: Fix construction of Context(C_GLOBAL_ID)

This commit is contained in:
hjk
2010-06-28 10:30:45 +02:00
parent 6e4160f45b
commit 192a99908c
2 changed files with 10 additions and 0 deletions

View File

@@ -265,6 +265,15 @@ bool ActionManagerPrivate::hasContext(int context) const
return m_context.contains(context);
}
QDebug operator<<(QDebug in, const Context &context)
{
UniqueIDManager *uidm = UniqueIDManager::instance();
in << "CONTEXT: ";
foreach (int c, context)
in << " " << c << uidm->stringForUniqueIdentifier(c);
return in;
}
void ActionManagerPrivate::setContext(const Context &context)
{
// here are possibilities for speed optimization if necessary: