summaryrefslogtreecommitdiffstats
path: root/objects/basetexteditor.cpp
diff options
context:
space:
mode:
authorJesper K. Pedersen <[email protected]>2013-04-17 12:09:57 +0200
committerJesper K. Pedersen <[email protected]>2013-04-17 20:50:24 +0200
commit487770e422e4c55e128c210bb82b30ed99f3f401 (patch)
tree2827f7ec704ea06cc4de858eaf56f4ce68a8b35c /objects/basetexteditor.cpp
parente793225595a8010d35506011ac2a915df8e21119 (diff)
Introduced the class TextEditor
This is to make it similar in heirarchy as the IEditor subclasses. This commit also wraps QPoint and QRect so they are usable from the scripts Change-Id: I214a7323cf6cc20cb9df509d0ea0515358248714 Reviewed-by: Nicolas Arnaud-Cormos <[email protected]>
Diffstat (limited to 'objects/basetexteditor.cpp')
-rw-r--r--objects/basetexteditor.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/objects/basetexteditor.cpp b/objects/basetexteditor.cpp
index 3df3638..8bc0ded 100644
--- a/objects/basetexteditor.cpp
+++ b/objects/basetexteditor.cpp
@@ -38,12 +38,10 @@
#include <QTextCursor>
-using namespace Scripting;
using namespace Scripting::Internal;
-
BaseTextEditor::BaseTextEditor(QObject *parent) :
- Editor(parent)
+ TextEditor(parent)
{
}
@@ -406,10 +404,10 @@ QString BaseTextEditor::text()
return QString();
}
-TextEditor::BaseTextEditorWidget *BaseTextEditor::textEditorWidget()
+::TextEditor::BaseTextEditorWidget * BaseTextEditor::textEditorWidget()
{
- TextEditor::BaseTextEditor *textEditor =
- qobject_cast<TextEditor::BaseTextEditor*>(editor());
+ ::TextEditor::BaseTextEditor *textEditor =
+ qobject_cast< ::TextEditor::BaseTextEditor* >(editor());
if (textEditor)
return textEditor->editorWidget();
return 0;