forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
e6020b7067
commit
aee3c2f531
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user