Commit 88094425 authored by Tobias Nätterlund's avatar Tobias Nätterlund Committed by Erik Verbruggen
Browse files

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



Change-Id: I37cf0f1f5399cd7a4e9900b2cf31b62648bc5370
Reviewed-by: default avatarMehdi Fekari <mfekari@rim.com>
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 5721847a
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment