Commit 589ba0abb3017a06868261026873701807a1e703
- Diff rendering mode:
- inline
- side by side
src/lyricsdialog.cpp
(3 / 5)
|   | |||
| 28 | 28 | LyricsDialog::LyricsDialog(QWidget *parent) : QDialog(parent) { | |
| 29 | 29 | setupUi(this); | |
| 30 | 30 | lyricsBrowser->setOpenLinks(false); | |
| 31 | m_http = new QHttp("dump.bitcheese.net", 80, this); | ||
| 31 | m_http = new QHttp("www.lyricsplugin.com", 80, this); | ||
| 32 | 32 | connect(m_http, SIGNAL(requestFinished(int,bool)), this, SLOT(gotResponse(int,bool))); | |
| 33 | 33 | } | |
| 34 | 34 | ||
| … | … | ||
| 42 | 42 | artistEdit->setText(m_artist); | |
| 43 | 43 | titleEdit->setText(m_title); | |
| 44 | 44 | lyricsBrowser->setPlainText(tr("Getting lyrics from server...")); | |
| 45 | QUrl req("http://dump.bitcheese.net/lwiki.php"); | ||
| 46 | req.addQueryItem("func", "getSong"); | ||
| 45 | QUrl req("http://www.lyricsplugin.com/winamp03/plugin/"); | ||
| 47 | 46 | req.addQueryItem("artist", m_artist); | |
| 48 | req.addQueryItem("song", m_title); | ||
| 49 | req.addQueryItem("fmt","html"); | ||
| 47 | req.addQueryItem("title", m_title); | ||
| 50 | 48 | m_http->get(req.toEncoded()); | |
| 51 | 49 | } | |
| 52 | 50 |

