summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-27 13:16:23 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-27 13:16:23 (GMT)
commited3bd2e8ca8daceef54106ec8bcac3531f443011 (patch)
tree5f179d7fde2405366658c56383ac63b32c400bee
parentfef888c25f32002dc0c463b2d7fe1b3d78ef7452 (diff)
Port KWMapEditor to QTextEdit
-rw-r--r--src/manager/kwmapeditor.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/manager/kwmapeditor.cpp b/src/manager/kwmapeditor.cpp
index 287c7b8..9fb3a8a 100644
--- a/src/manager/kwmapeditor.cpp
+++ b/src/manager/kwmapeditor.cpp
@@ -26,7 +26,7 @@
#include <QMenu>
#include <kstandardaction.h>
#include <kwindowsystem.h>
-#include <ktextedit.h>
+#include <qtextedit.h>
#include <QApplication>
#include <QClipboard>
@@ -37,14 +37,13 @@
#include <QPointer>
#include <QToolButton>
-class InlineEditor : public KTextEdit
+class InlineEditor : public QTextEdit
{
public:
- InlineEditor(KWMapEditor *p) : KTextEdit(), _p(p)
+ InlineEditor(KWMapEditor *p) : QTextEdit(), _p(p)
{
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(Qt::Widget | Qt::FramelessWindowHint);
- setCheckSpellingEnabled(false);
connect(p, SIGNAL(destroyed()), SLOT(close()));
}
@@ -66,7 +65,7 @@ protected:
close();
} else {
e->ignore();
- KTextEdit::keyPressEvent(e);
+ QTextEdit::keyPressEvent(e);
}
}
virtual void contextMenuEvent(QContextMenuEvent *event)