Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
412:498c2ca0b367 | 422:2af4b5b0bf83 |
---|---|
15 COPYING included with this distribution for more information. | 15 COPYING included with this distribution for more information. |
16 */ | 16 */ |
17 | 17 |
18 #include "confirmcommentdialog.h" | 18 #include "confirmcommentdialog.h" |
19 #include "common.h" | 19 #include "common.h" |
20 #include "debug.h" | |
20 | 21 |
21 #include <QMessageBox> | 22 #include <QMessageBox> |
22 #include <QInputDialog> | 23 #include <QInputDialog> |
23 #include <QGridLayout> | 24 #include <QGridLayout> |
24 #include <QLabel> | 25 #include <QLabel> |
65 m_ok->setEnabled(getComment() != ""); | 66 m_ok->setEnabled(getComment() != ""); |
66 } | 67 } |
67 | 68 |
68 QString ConfirmCommentDialog::getComment() const | 69 QString ConfirmCommentDialog::getComment() const |
69 { | 70 { |
70 return m_textEdit->document()->toPlainText(); | 71 /* |
72 DEBUG << "ConfirmCommentDialog: as html is:" << endl; | |
73 DEBUG << m_textEdit->document()->toHtml() << endl; | |
74 DEBUG << "ConfirmCommentDialog: as plain text is:" << endl; | |
75 */ | |
76 QString t = m_textEdit->document()->toPlainText(); | |
77 /* | |
78 DEBUG << t << endl; | |
79 DEBUG << "Characters: " << endl; | |
80 for (int i = 0; i < t.length(); ++i) DEBUG << t[i].unicode(); | |
81 DEBUG << endl; | |
82 */ | |
83 return t; | |
71 } | 84 } |
72 | 85 |
73 QString ConfirmCommentDialog::buildFilesText(QString intro, QStringList files) | 86 QString ConfirmCommentDialog::buildFilesText(QString intro, QStringList files) |
74 { | 87 { |
75 QString text; | 88 QString text; |