diff src/confirmcommentdialog.cpp @ 422:2af4b5b0bf83

Merge from branch "ignore"
author Chris Cannam <chris.cannam@eecs.qmul.ac.uk>
date Wed, 22 Jun 2011 13:01:50 +0100
parents 50920723dd16
children 1c05e7576ea5
line wrap: on
line diff
--- a/src/confirmcommentdialog.cpp	Mon Jun 13 16:56:01 2011 +0100
+++ b/src/confirmcommentdialog.cpp	Wed Jun 22 13:01:50 2011 +0100
@@ -17,6 +17,7 @@
 
 #include "confirmcommentdialog.h"
 #include "common.h"
+#include "debug.h"
 
 #include <QMessageBox>
 #include <QInputDialog>
@@ -67,7 +68,19 @@
 
 QString ConfirmCommentDialog::getComment() const
 {
-    return m_textEdit->document()->toPlainText();
+/*
+    DEBUG << "ConfirmCommentDialog: as html is:" << endl;
+    DEBUG << m_textEdit->document()->toHtml() << endl;
+    DEBUG << "ConfirmCommentDialog: as plain text is:" << endl;
+*/
+    QString t = m_textEdit->document()->toPlainText();
+/*
+    DEBUG << t << endl;
+    DEBUG << "Characters: " << endl;
+    for (int i = 0; i < t.length(); ++i) DEBUG << t[i].unicode();
+    DEBUG << endl;
+*/
+    return t;
 }
 
 QString ConfirmCommentDialog::buildFilesText(QString intro, QStringList files)