-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecommend.cpp
More file actions
88 lines (71 loc) · 1.89 KB
/
Copy pathrecommend.cpp
File metadata and controls
88 lines (71 loc) · 1.89 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#include "recommend.h"
#include "ui_recommend.h"
#include "Cloth.h"
#include <QString>
#include <QSettings>
#include "recommend_algorithm.h"
#include "QVector"
#include "QColor"
#include "QColorDialog"
#include "mainwindow.h"
#include "showrecommend.h"
recommend::recommend(int id,QWidget *parent)
: userID(id),QDialog(parent)
, ui(new Ui::recommend)
{
ui->setupUi(this);
ui->style->addItem("休闲");
ui->style->addItem("正式");
ui->style->addItem("运动");
ui->style->addItem("商务");
ui->style->addItem("美观");
ui->season->addItem("春");
ui->season->addItem("夏");
ui->season->addItem("秋");
ui->season->addItem("冬");
ui->weather->addItem("下雨");
ui->weather->addItem("下雪");
ui->weather->addItem("大风");
ui->weather->addItem("多云");
ui->weather->addItem("晴天");
ui->weather->addItem("暴晒");
setWindowTitle("码上穿衣-穿搭推荐");
QIcon* icon=new QIcon(":/images/icon.png");
setWindowIcon(*icon);
}
recommend::~recommend()
{
delete ui;
}
void recommend::on_color_clicked()
{
QColor color = QColorDialog::getColor(QColor(0,255,0),this,"窗口标题");
}
void recommend::on_next_clicked()
{
this->close();
showRecommend * myShow = new showRecommend(userID,style,season,weather,temperature,color);
myShow->show();
}
void recommend::on_style_currentTextChanged(const QString &arg1)
{
style=arg1;
}
void recommend::on_temperature_valueChanged(int arg1)
{
temperature = arg1;
}
void recommend::on_season_currentTextChanged(const QString &arg1)
{
season=arg1;
}
void recommend::on_weather_currentTextChanged(const QString &arg1)
{
weather=arg1;
}
void recommend::on_return_2_clicked()
{
this->close();
MainWindow *window = new MainWindow(userID);
window->show();
}