From 0ffa05b536ad907e63d34a1ab7244ce159354269 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 17 Feb 2009 11:17:47 +0000 Subject: fixed proxy support, fixed xspf version git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@790 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/lyrics/lyricswindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/lyrics') diff --git a/src/plugins/General/lyrics/lyricswindow.cpp b/src/plugins/General/lyrics/lyricswindow.cpp index 744ad07f0..dc781bcc4 100644 --- a/src/plugins/General/lyrics/lyricswindow.cpp +++ b/src/plugins/General/lyrics/lyricswindow.cpp @@ -20,6 +20,7 @@ #include #include +#include #include "lyricswindow.h" @@ -30,8 +31,13 @@ LyricsWindow::LyricsWindow(const QString &artist, const QString &title, QWidget setWindowFlags(Qt::Dialog); setAttribute(Qt::WA_DeleteOnClose); setWindowTitle(QString(tr("Lyrics: %1 - %2")).arg(artist).arg(title)); - //TODO proxy support m_http = new QHttp(this); + //load global proxy settings + if (Qmmp::useProxy()) + m_http->setProxy(Qmmp::proxy().host(), + Qmmp::proxy().port(), + Qmmp::useProxyAuth() ? Qmmp::proxy().userName() : QString(), + Qmmp::useProxyAuth() ? Qmmp::proxy().password() : QString()); connect(m_http, SIGNAL(done(bool)), SLOT(showText(bool))); connect(m_http, SIGNAL(stateChanged(int)), SLOT(showState (int))); m_http->setHost("lyricwiki.org"); -- cgit v1.2.3-13-gbd6f