Mercurial > hg > easyhg
diff confirmcommentdialog.h @ 105:1928f9b408e6
* Better-behaved comment dialog; avoid empty comments. Also ignore signals from closing ptys
author | Chris Cannam |
---|---|
date | Thu, 25 Nov 2010 17:21:32 +0000 |
parents | af314dd436d5 |
children | 1721c580c10e |
line wrap: on
line diff
--- a/confirmcommentdialog.h Thu Nov 25 14:30:40 2010 +0000 +++ b/confirmcommentdialog.h Thu Nov 25 17:21:32 2010 +0000 @@ -18,12 +18,17 @@ #ifndef CONFIRMCOMMENTDIALOG_H #define CONFIRMCOMMENTDIALOG_H +#include <QDialog> #include <QWidget> #include <QString> #include <QStringList> +#include <QTextEdit> +#include <QPushButton> -class ConfirmCommentDialog +class ConfirmCommentDialog : public QDialog { + Q_OBJECT + public: static bool confirmFilesAction(QWidget *parent, QString title, @@ -45,6 +50,19 @@ QString &comment, bool longComment); +private slots: + void commentChanged(); + +private: + ConfirmCommentDialog(QWidget *parent, + QString title, + QString introText, + QString initialComment); + + QString getComment() const; + + QTextEdit *m_textEdit; + QPushButton *m_ok; }; #endif // CONFIRMCOMMENTDIALOG_H