aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-12-22 23:09:45 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-12-22 23:09:45 +0000
commit449253a027607444e56bd7cd2fed8b598064d6d9 (patch)
tree1415c9901b9f78a9d4d1c377da16fc7aee8de413 /textedit.cpp
parentadded comment action (to insert > at every line) in edit menu, added drag and... (diff)
downloadgpg4usb-449253a027607444e56bd7cd2fed8b598064d6d9.tar.gz
gpg4usb-449253a027607444e56bd7cd2fed8b598064d6d9.zip
removed qdebugs and text in textedit-field is really replaced
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@408 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 9615d20..ead8f2c 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -25,11 +25,8 @@ void TextEdit::dropEvent(QDropEvent* event)
void TextEdit::comment()
{
- QString test=this->toPlainText();
- qDebug() << "-------------";
- qDebug() << test;
- test.replace("\n","\n>",Qt::CaseSensitive);
- test.insert(0,QString(">"));
- qDebug() << "-------------";
- qDebug() << test;
+ QString text=this->toPlainText();
+ text.replace("\n","\n> ",Qt::CaseSensitive);
+ text.insert(0,QString("> "));
+ this->setPlainText(text);
}