QmlOutlineModel: Use document instead of widget

Change-Id: I56c4a1da84d00064334a235aec8f2710efdba365
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Eike Ziller
2014-01-30 16:10:23 +01:00
parent 9fcd43ed05
commit 1e6bc2758d
3 changed files with 7 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ void QmlJSTextEditorWidget::ctor()
{
m_qmlJsEditorDocument = static_cast<QmlJSEditorDocument *>(baseTextDocument());
m_outlineCombo = 0;
m_outlineModel = new QmlOutlineModel(this);
m_outlineModel = new QmlOutlineModel(m_qmlJsEditorDocument);
m_contextPane = 0;
m_findReferences = new FindReferences(this);