cutter/src/dialogs/CommentsDialog.cpp
2017-10-02 11:41:28 +02:00

29 lines
522 B
C++

#include "CommentsDialog.h"
#include "ui_CommentsDialog.h"
CommentsDialog::CommentsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CommentsDialog)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
}
CommentsDialog::~CommentsDialog() {}
void CommentsDialog::on_buttonBox_accepted()
{
// Meow
}
void CommentsDialog::on_buttonBox_rejected()
{
close();
}
QString CommentsDialog::getComment()
{
QString ret = ui->lineEdit->text();
return ret;
}