comparison src/confirmcommentdialog.cpp @ 419:69b2338c06e1 ignore

Add "Ignore this directory"; some fixes to ignore logic (though not yet enough)
author Chris Cannam
date Thu, 16 Jun 2011 20:35:05 +0100
parents b9c153e00e84
children 50920723dd16
comparison
equal deleted inserted replaced
418:93cb9005bb6f 419:69b2338c06e1
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 QString t = m_textEdit->document()->toPlainText();
76 DEBUG << t << endl;
77 DEBUG << "Characters: " << endl;
78 for (int i = 0; i < t.length(); ++i) DEBUG << t[i].unicode();
79 DEBUG << endl;
80 return t;
81 */
71 } 82 }
72 83
73 QString ConfirmCommentDialog::buildFilesText(QString intro, QStringList files) 84 QString ConfirmCommentDialog::buildFilesText(QString intro, QStringList files)
74 { 85 {
75 QString text; 86 QString text;