From 17cadbfb95e9211e8685aed3466d4c22df732e92 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 30 Jun 2019 15:09:14 +0000 Subject: replaced deprecated code git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8976 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/scrobbler/scrobbler.cpp | 4 ++-- src/plugins/General/scrobbler/scrobbler.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/General/scrobbler') diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index 9c8a9a0ea..635561d92 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include @@ -89,7 +89,7 @@ Scrobbler::Scrobbler(const QString &scrobblerUrl, const QString &name, QObject * m_elapsed = 0; m_scrobblerUrl = scrobblerUrl; m_name = name; - m_time = new QTime(); + m_time = new QElapsedTimer(); m_cache = new ScrobblerCache(Qmmp::configDir() +"/scrobbler_"+name+".cache"); m_ua = QString("qmmp-plugins/%1").arg(Qmmp::strVersion().toLower()).toLatin1(); m_http = new QNetworkAccessManager(this); diff --git a/src/plugins/General/scrobbler/scrobbler.h b/src/plugins/General/scrobbler/scrobbler.h index 8efb39098..caab70bf6 100644 --- a/src/plugins/General/scrobbler/scrobbler.h +++ b/src/plugins/General/scrobbler/scrobbler.h @@ -28,7 +28,7 @@ class QNetworkAccessManager; class QNetworkReply; class QIODevice; -class QTime; +class QElapsedTimer; class SoundCore; @@ -78,7 +78,7 @@ private: QNetworkAccessManager *m_http; SoundCore *m_core; QNetworkReply *m_submitReply, *m_notificationReply; - QTime *m_time; + QElapsedTimer *m_time; ScrobblerCache *m_cache; QString m_scrobblerUrl, m_name; Qmmp::State m_previousState; -- cgit v1.2.3-13-gbd6f