Core: Introduce ICore::{add,remove}AdditionalContext

Simplify single operation

Change-Id: I172b9dfe8f97324d931d4f332ac1609d230e3400
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2014-11-16 11:47:18 +02:00
committed by Orgad Shaneh
parent e6020b7067
commit aee3c2f531
5 changed files with 24 additions and 17 deletions

View File

@@ -514,6 +514,16 @@ void ICore::updateAdditionalContexts(const Context &remove, const Context &add)
m_mainwindow->updateAdditionalContexts(remove, add);
}
void ICore::addAdditionalContext(const Context &context)
{
m_mainwindow->updateAdditionalContexts(Context(), context);
}
void ICore::removeAdditionalContext(const Context &context)
{
m_mainwindow->updateAdditionalContexts(context, Context());
}
void ICore::addContextObject(IContext *context)
{
m_mainwindow->addContextObject(context);