2017-03-29 10:18:37 +00:00
|
|
|
#include "renamedialog.h"
|
|
|
|
#include "ui_renamedialog.h"
|
|
|
|
|
|
|
|
RenameDialog::RenameDialog(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::RenameDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2017-03-31 00:51:14 +00:00
|
|
|
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
2017-03-29 10:18:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RenameDialog::~RenameDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString RenameDialog::getFunctionName()
|
|
|
|
{
|
|
|
|
QString ret = ui->nameEdit->text();
|
|
|
|
return ret;
|
|
|
|
}
|