cutter/src/dialogs/CommentsDialog.cpp

29 lines
522 B
C++
Raw Normal View History

2017-10-01 19:09:42 +00:00
#include "CommentsDialog.h"
#include "ui_CommentsDialog.h"
CommentsDialog::CommentsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CommentsDialog)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
}
2017-10-02 09:41:28 +00:00
CommentsDialog::~CommentsDialog() {}
void CommentsDialog::on_buttonBox_accepted()
{
// Meow
}
void CommentsDialog::on_buttonBox_rejected()
{
close();
}
2017-04-09 19:55:06 +00:00
QString CommentsDialog::getComment()
{
QString ret = ui->lineEdit->text();
return ret;
}