-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBankTrade.cpp
More file actions
32 lines (27 loc) · 769 Bytes
/
BankTrade.cpp
File metadata and controls
32 lines (27 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "banktrade.h"
#include "ui_banktrade.h"
BankTrade::BankTrade(QWidget *parent) :
QDialog(parent),
ui(new Ui::BankTrade)
{
ui->setupUi(this);
ui->comboBox->addItem("Brick");
ui->comboBox->addItem("Sheep");
ui->comboBox->addItem("Stone");
ui->comboBox->addItem("Wheat");
ui->comboBox->addItem("Wood");
ui->comboBox_2->addItem("Brick");
ui->comboBox_2->addItem("Sheep");
ui->comboBox_2->addItem("Stone");
ui->comboBox_2->addItem("Wheat");
ui->comboBox_2->addItem("Wood");
connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(DONE()));
}
BankTrade::~BankTrade()
{
delete ui;
}
void BankTrade::DONE(){
this->close();
emit selected(ui->comboBox->currentIndex(),ui->comboBox_2->currentIndex());
}