mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
bebc2ec36d
* Replace 0 and Q_NULLPTR with nullptr * Use c++11 foreach
34 lines
564 B
C++
34 lines
564 B
C++
#ifndef COMMENTSDIALOG_H
|
|
#define COMMENTSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <memory>
|
|
|
|
namespace Ui {
|
|
class CommentsDialog;
|
|
}
|
|
|
|
class CommentsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CommentsDialog(QWidget *parent = nullptr);
|
|
~CommentsDialog();
|
|
|
|
QString getComment();
|
|
void setComment(const QString &comment);
|
|
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
|
|
|
private:
|
|
std::unique_ptr<Ui::CommentsDialog> ui;
|
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
};
|
|
|
|
#endif // COMMENTSDIALOG_H
|