summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Arnaud-Cormos <nicolas.arnaud-cormos.qnx@kdab.com>2012-03-12 20:31:49 -0700
committerNicolas Arnaud-Cormos <nicolas@kdab.com>2012-03-13 04:33:15 +0100
commit74e093436dd158ba7f583824ce0331a344de7467 (patch)
treed4431003f52c4697edfba943dcf7cd017a909c3c
parent39e8274cc0b145b602aa3ab8592473fa71c40013 (diff)
Fix compilation with last master.
Change-Id: I5ad7c9746bb9096bd3e08702a417d98c07ec4ca9 Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
-rw-r--r--objects/editor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/objects/editor.cpp b/objects/editor.cpp
index e3e1714..ec19402 100644
--- a/objects/editor.cpp
+++ b/objects/editor.cpp
@@ -33,7 +33,7 @@
#include "editor.h"
#include <coreplugin/editormanager/ieditor.h>
-#include <coreplugin/ifile.h>
+#include <coreplugin/idocument.h>
using namespace Scripting;
using namespace Scripting::Internal;
@@ -58,7 +58,7 @@ bool Editor::exists()
bool Editor::save()
{
QString errorString;
- return m_editor->file()->save(&errorString);
+ return m_editor->document()->save(&errorString);
}
int Editor::currentLine()
@@ -78,8 +78,8 @@ void Editor::gotoLine(int line, int column)
QString Editor::fileName()
{
- if (m_editor->file())
- return m_editor->file()->fileName();
+ if (m_editor->document())
+ return m_editor->document()->fileName();
return QString();
}