cutter/src/dialogs/RenameDialog.cpp

34 lines
655 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();
}
void RenameDialog::setFunctionName(QString fcnName)
{
ui->nameEdit->setText(fcnName);
}
2017-10-01 18:08:12 +00:00
QString RenameDialog::getFunctionName() const
{
2017-10-01 18:08:12 +00:00
return ui->nameEdit->text();
}