From 4f927e4c87f07c4d50efcef5b61478df61cc9d3f Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 2 Jun 2015 17:14:48 +0200 Subject: Move "open" from IEditor to IDocument For non-editor documents it currently is not used, but for editors it makes more sense to have that on the document instead of the editor. Most actual implementations of "open" were done in the documents already anyhow, because it is needed for reloading. Change-Id: I29d4df2078995cbe80172b51a9bebeecb3afad3c Reviewed-by: David Schulz --- src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp') diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp index 3f948bb580..691787473f 100644 --- a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp +++ b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp @@ -111,7 +111,7 @@ public: QScopedPointer editor( TextEditor::PlainTextEditorFactory::createPlainTextEditor()); QString error; - editor->open(&error, document->fileName(), document->fileName()); + editor->document()->open(&error, document->fileName(), document->fileName()); QVERIFY(error.isEmpty()); // Set cursor position -- cgit v1.2.1