mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 14:57:59 +03:00
Forgot to add directory
This commit is contained in:
parent
062ff189a2
commit
d6e9cb114e
20 changed files with 2931 additions and 0 deletions
31
extern/shiny/Editor/AddPropertyDialog.cpp
vendored
Normal file
31
extern/shiny/Editor/AddPropertyDialog.cpp
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
#include "AddPropertyDialog.hpp"
|
||||
#include "ui_addpropertydialog.h"
|
||||
|
||||
AddPropertyDialog::AddPropertyDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::AddPropertyDialog)
|
||||
, mType(0)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
connect(ui->buttonBox, SIGNAL(accepted()),
|
||||
this, SLOT(accepted()));
|
||||
connect(ui->buttonBox, SIGNAL(rejected()),
|
||||
this, SLOT(rejected()));
|
||||
}
|
||||
|
||||
void AddPropertyDialog::accepted()
|
||||
{
|
||||
mName = ui->lineEdit->text();
|
||||
mType = ui->comboBox->currentIndex();
|
||||
}
|
||||
|
||||
void AddPropertyDialog::rejected()
|
||||
{
|
||||
mName = "";
|
||||
}
|
||||
|
||||
AddPropertyDialog::~AddPropertyDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue