Commit d0e54d8e authored by Daniel Teske's avatar Daniel Teske

ModeManager: Simplify ::objectAdded/objectRemoved

No-one is using the aggregated IMode, everyone is deriving from IMode

Change-Id: Ic4f21ce983924afe80cc2180101aae838b9f590d
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 240bc8fe
......@@ -160,7 +160,7 @@ void ModeManager::activateMode(Id id)
void ModeManager::objectAdded(QObject *obj)
{
IMode *mode = Aggregation::query<IMode>(obj);
IMode *mode = qobject_cast<IMode *>(obj);
if (!mode)
return;
......@@ -235,7 +235,7 @@ void ModeManager::enabledStateChanged()
void ModeManager::aboutToRemoveObject(QObject *obj)
{
IMode *mode = Aggregation::query<IMode>(obj);
IMode *mode = qobject_cast<IMode *>(obj);
if (!mode)
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment