2017-03-29 10:18:37 +00:00
|
|
|
#ifndef COMMENTSDIALOG_H
|
|
|
|
#define COMMENTSDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2017-10-02 09:41:28 +00:00
|
|
|
#include <memory>
|
2017-03-29 10:18:37 +00:00
|
|
|
|
2017-04-09 19:55:06 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class CommentsDialog;
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class CommentsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CommentsDialog(QWidget *parent = 0);
|
|
|
|
~CommentsDialog();
|
|
|
|
|
|
|
|
QString getComment();
|
2017-12-01 10:46:13 +00:00
|
|
|
void setComment(const QString &comment);
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
|
|
|
|
private:
|
2017-10-02 09:41:28 +00:00
|
|
|
std::unique_ptr<Ui::CommentsDialog> ui;
|
2017-12-10 18:13:37 +00:00
|
|
|
|
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
2017-03-29 10:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COMMENTSDIALOG_H
|