forked from qt-creator/qt-creator
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:
committed by
Erik Verbruggen
parent
5721847a57
commit
880944254b
@@ -226,15 +226,15 @@ void BarDescriptorEditorWidget::clearAssetsPage()
|
|||||||
|
|
||||||
void BarDescriptorEditorWidget::initSourcePage()
|
void BarDescriptorEditorWidget::initSourcePage()
|
||||||
{
|
{
|
||||||
connect(m_ui->xmlSourceView, SIGNAL(changed()), this, SLOT(setDirty()));
|
|
||||||
m_ui->xmlSourceView->configure(QLatin1String(Constants::QNX_BAR_DESCRIPTOR_MIME_TYPE));
|
m_ui->xmlSourceView->configure(QLatin1String(Constants::QNX_BAR_DESCRIPTOR_MIME_TYPE));
|
||||||
|
connect(m_ui->xmlSourceView, SIGNAL(textChanged()), this, SLOT(setDirty()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BarDescriptorEditorWidget::clearSourcePage()
|
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();
|
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
|
Core::IEditor *BarDescriptorEditorWidget::editor() const
|
||||||
@@ -591,9 +591,9 @@ QString BarDescriptorEditorWidget::xmlSource() const
|
|||||||
|
|
||||||
void BarDescriptorEditorWidget::setXmlSource(const QString &xmlSource)
|
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);
|
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
|
bool BarDescriptorEditorWidget::isDirty() const
|
||||||
|
|||||||
Reference in New Issue
Block a user