diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-06-30 15:09:14 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-06-30 15:09:14 +0000 |
| commit | 17cadbfb95e9211e8685aed3466d4c22df732e92 (patch) | |
| tree | f56ac4adf0c10469b5e089458eda98520222d3fa /src | |
| parent | 8ac2665118162e9130f8be4c6b4ce5a430d4f81e (diff) | |
| download | qmmp-17cadbfb95e9211e8685aed3466d4c22df732e92.tar.gz qmmp-17cadbfb95e9211e8685aed3466d4c22df732e92.tar.bz2 qmmp-17cadbfb95e9211e8685aed3466d4c22df732e92.zip | |
replaced deprecated code
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8976 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/General/history/history.h | 4 | ||||
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.cpp | 4 | ||||
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.h | 4 | ||||
| -rw-r--r-- | src/qmmp/visualbuffer_p.h | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/General/history/history.h b/src/plugins/General/history/history.h index 1b0ff2163..74b46bb43 100644 --- a/src/plugins/General/history/history.h +++ b/src/plugins/General/history/history.h @@ -22,7 +22,7 @@ #define HISTORY_H #include <QObject> -#include <QTime> +#include <QElapsedTimer> #include <QPointer> #include <qmmp/trackinfo.h> #include <qmmp/qmmp.h> @@ -50,7 +50,7 @@ private: SoundCore *m_core; TrackInfo m_trackInfo; - QTime m_time; + QElapsedTimer m_time; Qmmp::State m_previousState; quint64 m_elapsed; QPointer<HistoryWindow> m_historyWindow; 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 <QXmlStreamReader> #include <QUrl> #include <QUrlQuery> -#include <QTime> +#include <QElapsedTimer> #include <QTimer> #include <QDateTime> #include <QDir> @@ -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; diff --git a/src/qmmp/visualbuffer_p.h b/src/qmmp/visualbuffer_p.h index 97e57221f..6033beb54 100644 --- a/src/qmmp/visualbuffer_p.h +++ b/src/qmmp/visualbuffer_p.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2017 by Ilya Kotov * + * Copyright (C) 2017-2019 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -22,7 +22,7 @@ #define VISUALBUFFER_P_H #include <QtGlobal> -#include <QTime> +#include <QElapsedTimer> #include <QMutex> #define VISUAL_BUFFER_SIZE 128 //number of nodes @@ -56,7 +56,7 @@ private: qint64 m_elapsed; int m_take_index; int m_add_index; - QTime m_time; + QElapsedTimer m_time; QMutex m_mutex; }; |
