aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
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);
}