[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:19:12 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=c47e1b4
The following commit has been merged in the master branch:
commit c47e1b4346778a849c03967038262eb5f10bd920
Author: Vavelin Kevin <kusageek at gmail.com>
Date: Fri Apr 1 16:31:32 2011 +0100
Add spell checking to ChatTextEdit
Patch by Kevin, with slight ammendments by David Edmundson
BUG: 265150
Reviewed by David Edmundson
---
lib/chat-text-edit.cpp | 4 ++--
lib/chat-text-edit.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/chat-text-edit.cpp b/lib/chat-text-edit.cpp
index 54a2daa..391850f 100644
--- a/lib/chat-text-edit.cpp
+++ b/lib/chat-text-edit.cpp
@@ -31,12 +31,12 @@ class ChatTextEditPrivate
};
ChatTextEdit::ChatTextEdit(QWidget *parent) :
- QTextEdit(parent)
+ KTextEdit(parent)
{
setWordWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere); // no need for horizontal scrollbar with this
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
-
+ setCheckSpellingEnabled(true);
setMinimumHeight(0);
connect(this, SIGNAL(textChanged()), SLOT(recalculateSize()));
diff --git a/lib/chat-text-edit.h b/lib/chat-text-edit.h
index e1a32d3..4854bed 100644
--- a/lib/chat-text-edit.h
+++ b/lib/chat-text-edit.h
@@ -20,9 +20,9 @@
#ifndef CHATTEXTEDIT_H
#define CHATTEXTEDIT_H
-#include <QtGui/QTextEdit>
+#include <KTextEdit>
-class ChatTextEdit : public QTextEdit
+class ChatTextEdit : public KTextEdit
{
Q_OBJECT
public:
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list