Skip to content
Snippets Groups Projects
Commit 59859d03 authored by David Kaspar's avatar David Kaspar
Browse files

Qnx: Fixing BarDescriptorEditor to prevent loosing syntax highlighting


Task-Number: QTCREATORBUG-10039

Change-Id: I8a6b80d18da1be0697bd8aaceb5d8670105a8f49
Reviewed-by: default avatarMehdi Fekari <mfekari@blackberry.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
Reviewed-by: default avatarDavid Kaspar <dkaspar@blackberry.com>
parent 2a3ef094
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ bool BarDescriptorDocument::open(QString *errorString, const QString &fileName) ...@@ -95,6 +95,7 @@ bool BarDescriptorDocument::open(QString *errorString, const QString &fileName)
return false; return false;
setFilePath(fileName); setFilePath(fileName);
m_editorWidget->setFilePath(fileName);
bool result = loadContent(contents); bool result = loadContent(contents);
......
...@@ -204,6 +204,13 @@ BarDescriptorEditorAssetsWidget *BarDescriptorEditorWidget::assetsWidget() const ...@@ -204,6 +204,13 @@ BarDescriptorEditorAssetsWidget *BarDescriptorEditorWidget::assetsWidget() const
return m_assetsWidget; return m_assetsWidget;
} }
void BarDescriptorEditorWidget::setFilePath(const QString &filePath)
{
Core::IDocument *doc = m_xmlSourceWidget->editorDocument();
if (doc)
doc->setFilePath(filePath);
}
QString BarDescriptorEditorWidget::xmlSource() const QString BarDescriptorEditorWidget::xmlSource() const
{ {
return m_xmlSourceWidget->toPlainText(); return m_xmlSourceWidget->toPlainText();
......
...@@ -79,6 +79,7 @@ public: ...@@ -79,6 +79,7 @@ public:
BarDescriptorEditorAssetsWidget *assetsWidget() const; BarDescriptorEditorAssetsWidget *assetsWidget() const;
void setFilePath(const QString &filePath);
QString xmlSource() const; QString xmlSource() const;
void setXmlSource(const QString &xmlSource); void setXmlSource(const QString &xmlSource);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment