-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfuckwindow.cpp
More file actions
42 lines (39 loc) · 1.4 KB
/
fuckwindow.cpp
File metadata and controls
42 lines (39 loc) · 1.4 KB
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
33
34
35
36
37
38
39
40
41
42
#include "fuckwindow.h"
#include "ui_fuckwindow.h"
#include "mainwindowinteractor.h"
#include "mainwindow.h"
#include <iostream>
using namespace std;
FuckWindow::FuckWindow(QWidget *parent, QString name1) :
QMainWindow(parent),
ui(new Ui::FuckWindow)
{
<<<<<<< HEAD
ui->lineEdit->setText(name1);
connect(parent, SIGNAL(sendFlourName(QString)), this, SLOT(fillData(QString)));
=======
>>>>>>> refs/remotes/origin/master
this->interactor = &(MainWindowInteractor::getInstance());
ui->setupUi(this);
QWidget::setFixedSize(700, 360);
}
FuckWindow::~FuckWindow()
{
delete ui;
}
void FuckWindow::on_anotherFlourButton_clicked(){
emit this->endClicked();
this->close();
}
void FuckWindow::on_addButton_clicked(){
int x = ui->spinBox->value();
QString color = ui->comboBox->currentText();
interactor->addToTemporaryBouquet(name,color,x);
//Тут надо вывести в listWidget, у меня ругается почти на все
// По дизайну хуйня, я хз, что можно вставить справа от listWidget, где есть промежуток между кнопками и боксами
}
void FuckWindow::fillData(QString flourName){
this->name = flourName;
QStringList tmp = QStringList(this->interactor->getFlourColors(this->name));
ui->comboBox->addItems(QStringList(this->interactor->getFlourColors(this->name)));
}