-
Notifications
You must be signed in to change notification settings - Fork 0
/
movie18.cpp
123 lines (120 loc) · 4.38 KB
/
movie18.cpp
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#include "movie18.h"
#include "ui_movie18.h"
#include <QDebug>
#include "page3.h"
#include "global.h"
movie18::movie18(QWidget *parent) :
QDialog(parent),
ui(new Ui::movie18)
{
ui->setupUi(this);
ui->MovieName->setStyleSheet("font: bold 30px; color:blue;");
ui->Director->setStyleSheet("font: bold 14px;");
ui->Category->setStyleSheet("font: bold 15px; color:blue");
ui->stars->setStyleSheet("font: bold 14px;");
ui->Writer->setStyleSheet("font: bold 14px;");
for(int i = 0; i < det.size(); i++){
if(det[i].movie == MD[17]){
qDebug() << det[i].movie << endl;
ui->MovieName->setText(det[i].movie);
ui->Category->setText(det[i].type);
ui->textEdit->setText(det[i].detail);
ui->Writer->setText(det[i].writers);
ui->Director->setText(det[i].director);
ui->stars->setText(det[i].stars);
}
}
if(MD[17] == "Marvel's The Avengers"){
// qDebug() << "hena 1";
QPixmap pix("/home/asmaa/QT/CINAMIKA/Marvels-The-Avengers.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "The Last Exorcism"){
// qDebug() << "hena 2";
QPixmap pix("/home/asmaa/QT/CINAMIKA/The_Last_Exorcism_Poster.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Get the Gringo"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/Get-the-Gringo_dvd_cover.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "The Lucky One"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/the-lucky-one-movie-poster-nicholas-sparks-novels-and-movies-26608347-268-398.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Sammy's Adventures: The Secret Passage"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/25773.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Titanic (in 3D)"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/er.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "StreetDance 3D"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/SD.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Twilight Saga: Breaking Dawn Part 1"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/TW.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Gone"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/gone.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Mission: Impossible Ghost Protocol"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/GT.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "This Means War"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/mw.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Journey 2: The Mysterious Island"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/JI.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "The Lorax"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/lorax.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "21 Jump Street"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/JS.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "Omar and Salma 3"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/Omar.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
else if(MD[17] == "X Large"){
QPixmap pix("/home/asmaa/QT/CINAMIKA/large.jpg");
ui->pictureLabel->setPixmap(pix);
ui->pictureLabel->setScaledContents(true);
}
}
movie18::~movie18()
{
delete ui;
}
void movie18::on_pushButton_2_clicked()
{
Page3 p;
p.setModal(true);
this->hide();
p.exec();
}