mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
38 lines
688 B
C++
38 lines
688 B
C++
#include "renamedialog.h"
|
|
#include "ui_renamedialog.h"
|
|
|
|
RenameDialog::RenameDialog(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::RenameDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
|
}
|
|
|
|
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;
|
|
}
|