cutter/src/dialogs/RenameDialog.cpp

34 lines
639 B
C++
Raw Normal View History

2017-10-01 19:09:42 +00:00
#include "RenameDialog.h"
#include "ui_RenameDialog.h"
RenameDialog::RenameDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::RenameDialog)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
}
2017-10-02 09:41:28 +00:00
RenameDialog::~RenameDialog() {}
void RenameDialog::on_buttonBox_accepted()
{
// Rename function and refresh widgets
QString name = ui->nameEdit->text();
}
void RenameDialog::on_buttonBox_rejected()
{
close();
}
2017-11-26 16:53:05 +00:00
void RenameDialog::setName(QString fcnName)
{
ui->nameEdit->setText(fcnName);
}
2017-11-26 16:53:05 +00:00
QString RenameDialog::getName() const
{
2017-10-01 18:08:12 +00:00
return ui->nameEdit->text();
}