mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 22:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			581 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			581 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #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;
 | |
| }
 |