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 <>
Reviewed-by: default avatarTobias Hunger <>
Reviewed-by: default avatarDavid Kaspar <>
parent 2a3ef094
......@@ -95,6 +95,7 @@ bool BarDescriptorDocument::open(QString *errorString, const QString &fileName)
return false;
bool result = loadContent(contents);
......@@ -204,6 +204,13 @@ BarDescriptorEditorAssetsWidget *BarDescriptorEditorWidget::assetsWidget() const
return m_assetsWidget;
void BarDescriptorEditorWidget::setFilePath(const QString &filePath)
Core::IDocument *doc = m_xmlSourceWidget->editorDocument();
if (doc)
QString BarDescriptorEditorWidget::xmlSource() const
return m_xmlSourceWidget->toPlainText();
......@@ -79,6 +79,7 @@ public:
BarDescriptorEditorAssetsWidget *assetsWidget() const;
void setFilePath(const QString &filePath);
QString xmlSource() const;
void setXmlSource(const QString &xmlSource);
Markdown is supported
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