Core: Use Id in Context instead of plain int.

Change-Id: Iaa8e48459fb19b7d3b8821d0374925d0c6a7e0cc
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
hjk
2013-01-11 13:34:31 +01:00
parent fd1302995c
commit 3475d55fd9
8 changed files with 42 additions and 57 deletions

View File

@@ -466,12 +466,12 @@ ActionManagerPrivate::~ActionManagerPrivate()
qDeleteAll(m_idCmdMap.values());
}
QDebug operator<<(QDebug in, const Context &context)
QDebug operator<<(QDebug d, const Context &context)
{
in << "CONTEXT: ";
foreach (int c, context)
in << " " << c << Id::fromUniqueIdentifier(c).toString();
return in;
d << "CONTEXT: ";
foreach (Id id, context)
d << " " << id.uniqueIdentifier() << " " << id.toString();
return d;
}
void ActionManagerPrivate::setContext(const Context &context)