-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_songinfo.cpp
executable file
·57 lines (52 loc) · 1.56 KB
/
ui_songinfo.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
#include "ui_songinfo.h"
#include "ui_ui_songinfo.h"
ui_SongInfo::ui_SongInfo(QWidget *parent) :
QWidget(parent),
ui(new Ui::ui_SongInfo)
{
ui->setupUi(this);
}
ui_SongInfo::ui_SongInfo(QWidget *parent, QString title, QString album, QString artist, QString uri, QString info,QString length) : QWidget(parent),
ui(new Ui::ui_SongInfo)
{
ui->setupUi(this);
ui->lbl_title->setText(title);
ui->lbl_album->setText(album);
ui->lbl_artist->setText(artist);
ui->lbl_uri->setText(uri);
ui->lbl_length->setText(length);
connect(ui->btn_addtoplaylist,SIGNAL(clicked()),this,SLOT(addButtonDispatcher()));
connect(ui->btn_play,SIGNAL(clicked()),this,SLOT(playButtonDispatcher()));
connect(ui->btn_back,SIGNAL(clicked()),this,SIGNAL(request_back()));
#ifdef Q_OS_SYMBIAN
QFont font;
QFont font2;
font.setPointSize(8);
font2.setPointSize(8);
font2.setBold(true);
font2.setUnderline(true);
ui->label->setFont(font);
ui->label_2->setFont(font);
ui->label_3->setFont(font);
ui->label_4->setFont(font);
ui->label_5->setFont(font);
ui->lbl_album->setFont(font2);
ui->lbl_artist->setFont(font2);
ui->lbl_length->setFont(font2);
ui->lbl_uri->setFont(font2);
ui->lbl_title->setFont(font2);
#endif
this->show();
}
ui_SongInfo::~ui_SongInfo()
{
delete ui;
}
void ui_SongInfo::addButtonDispatcher()
{
emit request_add(ui->lbl_uri->text());
}
void ui_SongInfo::playButtonDispatcher()
{
emit request_playback(ui->lbl_uri->text());
}