mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 05:16:11 +00:00
34 lines
655 B
C++
34 lines
655 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() {}
|
|
|
|
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() const
|
|
{
|
|
return ui->nameEdit->text();
|
|
}
|