mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
33 lines
540 B
C++
33 lines
540 B
C++
#include "lc_global.h"
|
|
#include "lc_qgroupdialog.h"
|
|
#include "ui_lc_qgroupdialog.h"
|
|
#include "group.h"
|
|
|
|
lcQGroupDialog::lcQGroupDialog(QWidget *parent, const QString& Name) :
|
|
QDialog(parent),
|
|
ui(new Ui::lcQGroupDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
ui->name->setText(Name);
|
|
}
|
|
|
|
lcQGroupDialog::~lcQGroupDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void lcQGroupDialog::accept()
|
|
{
|
|
QString Name = ui->name->text();
|
|
|
|
if (Name.isEmpty())
|
|
{
|
|
QMessageBox::information(this, "LeoCAD", tr("Name cannot be empty."));
|
|
return;
|
|
}
|
|
|
|
mName = Name;
|
|
|
|
QDialog::accept();
|
|
}
|