-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlyricbox.h
37 lines (29 loc) · 841 Bytes
/
lyricbox.h
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
#ifndef LYRICBOX_H
#define LYRICBOX_H
#include <QWidget>
#include <QTextEdit>
#include <QLabel>
#include <QNetworkAccessManager>
class lyricBox : public QWidget
{
Q_OBJECT
public:
explicit lyricBox(QWidget *parent = 0);
void setFont(const QFont &);
signals:
void lyricsChanged(const QString & artist, const QString & title, const QString & newLyrics);
public slots:
void retrieveLyrics(QString, QString);
void lyricsRetrieved(QNetworkReply *);
private slots:
void copyLyricsToClipboard();
void copySelectedToClipboard();
private:
QTextEdit * _lyricsTextBox;
QLabel * _retrievedFromSiteLabel;
QNetworkAccessManager * _networkManager;
QString _artist, _title;
const QString removePrecedingThe(const QString &);
void formatLyricsUrlStringMetro(QString &);
};
#endif // LYRICBOX_H