use Core::Id for IMode::id and IMode::type

Change-Id: Ic7ce5b883e054c6eeba078327042e99e1c556345
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
hjk
2012-05-07 18:28:03 +02:00
committed by Eike Ziller
parent 2d612a252b
commit cad2966498
31 changed files with 88 additions and 83 deletions

View File

@@ -188,10 +188,10 @@ SharedTools::WidgetHost *FormEditorStack::formWindowEditorForXmlEditor(const Cor
void FormEditorStack::modeAboutToChange(Core::IMode *m)
{
if (Designer::Constants::Internal::debug && m)
qDebug() << "FormEditorStack::modeAboutToChange" << m->id();
qDebug() << "FormEditorStack::modeAboutToChange" << m->id().toString();
// Sync the editor when entering edit mode
if (m && m->id() == QLatin1String(Core::Constants::MODE_EDIT))
if (m && m->id() == Core::Constants::MODE_EDIT)
foreach(const EditorData &data, m_formEditors)
data.formWindowEditor->syncXmlEditor();
}