mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 00:18:43 +00:00
Changed: #1303 Fix typos in comments/code
--HG-- branch : gsoc2011-worldeditorqt
This commit is contained in:
parent
bbae1b9180
commit
7e4d8a53a5
1 changed files with 18 additions and 18 deletions
|
@ -49,9 +49,9 @@ ContextManager::ContextManager(ExtensionSystem::IPluginManager *pluginManager, Q
|
||||||
: d(new ContextManagerPrivate(pluginManager, tabWidget))
|
: d(new ContextManagerPrivate(pluginManager, tabWidget))
|
||||||
{
|
{
|
||||||
QObject::connect(d->m_pluginManager, SIGNAL(objectAdded(QObject *)),
|
QObject::connect(d->m_pluginManager, SIGNAL(objectAdded(QObject *)),
|
||||||
this, SLOT(objectAdded(QObject *)));
|
this, SLOT(objectAdded(QObject *)));
|
||||||
QObject::connect(d->m_pluginManager, SIGNAL(aboutToRemoveObject(QObject *)),
|
QObject::connect(d->m_pluginManager, SIGNAL(aboutToRemoveObject(QObject *)),
|
||||||
this, SLOT(aboutToRemoveObject(QObject *)));
|
this, SLOT(aboutToRemoveObject(QObject *)));
|
||||||
|
|
||||||
QObject::connect(d->m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT(currentTabChanged(int)));
|
QObject::connect(d->m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT(currentTabChanged(int)));
|
||||||
}
|
}
|
||||||
|
@ -124,12 +124,12 @@ void ContextManager::currentTabChanged(int index)
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
{
|
{
|
||||||
IContext *context = d->m_contexts.at(index);
|
IContext *context = d->m_contexts.at(index);
|
||||||
IContext *oldContext = 0;
|
IContext *oldContext = 0;
|
||||||
if (d->m_oldCurrent >= 0)
|
if (d->m_oldCurrent >= 0)
|
||||||
oldContext = d->m_contexts.at(d->m_oldCurrent);
|
oldContext = d->m_contexts.at(d->m_oldCurrent);
|
||||||
d->m_oldCurrent = index;
|
d->m_oldCurrent = index;
|
||||||
Q_EMIT currentContextChanged(context, oldContext);
|
Q_EMIT currentContextChanged(context, oldContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ContextManager::indexOf(const QString &id) const
|
int ContextManager::indexOf(const QString &id) const
|
||||||
|
|
Loading…
Reference in a new issue