QNX: Use correct signal for XML editor in Bar descriptor editor

Change-Id: I37cf0f1f5399cd7a4e9900b2cf31b62648bc5370
Reviewed-by: Mehdi Fekari <mfekari@rim.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Tobias Nätterlund
2013-01-29 15:27:37 +01:00
committed by Erik Verbruggen
parent 5721847a57
commit 880944254b

View File

@@ -226,15 +226,15 @@ void BarDescriptorEditorWidget::clearAssetsPage()
void BarDescriptorEditorWidget::initSourcePage()
{
connect(m_ui->xmlSourceView, SIGNAL(changed()), this, SLOT(setDirty()));
m_ui->xmlSourceView->configure(QLatin1String(Constants::QNX_BAR_DESCRIPTOR_MIME_TYPE));
connect(m_ui->xmlSourceView, SIGNAL(textChanged()), this, SLOT(setDirty()));
}
void BarDescriptorEditorWidget::clearSourcePage()
{
disconnect(m_ui->xmlSourceView, SIGNAL(changed()), this, SLOT(setDirty()));
disconnect(m_ui->xmlSourceView, SIGNAL(textChanged()), this, SLOT(setDirty()));
m_ui->xmlSourceView->clear();
connect(m_ui->xmlSourceView, SIGNAL(changed()), this, SLOT(setDirty()));
connect(m_ui->xmlSourceView, SIGNAL(textChanged()), this, SLOT(setDirty()));
}
Core::IEditor *BarDescriptorEditorWidget::editor() const
@@ -591,9 +591,9 @@ QString BarDescriptorEditorWidget::xmlSource() const
void BarDescriptorEditorWidget::setXmlSource(const QString &xmlSource)
{
disconnect(m_ui->xmlSourceView, SIGNAL(changed()), this, SLOT(setDirty()));
disconnect(m_ui->xmlSourceView, SIGNAL(textChanged()), this, SLOT(setDirty()));
m_ui->xmlSourceView->setPlainText(xmlSource);
connect(m_ui->xmlSourceView, SIGNAL(changed()), this, SLOT(setDirty()));
connect(m_ui->xmlSourceView, SIGNAL(textChanged()), this, SLOT(setDirty()));
}
bool BarDescriptorEditorWidget::isDirty() const