Commit 665a4c32 authored by Thomas Eschenbacher's avatar Thomas Eschenbacher
Browse files

use QElapsedTimer instead of QTime for progress calculations...

use QElapsedTimer instead of QTime for progress calculations (QTime::start/restart/elapsed has been deprecated)
parent b78d6800
......@@ -22,8 +22,8 @@
#include <QtGlobal>
#include <QDialog>
#include <QElapsedTimer>
#include <QLabel>
#include <QTime>
#include <QUrl>
#include "libkwave/Sample.h"
......@@ -168,7 +168,7 @@ namespace Kwave
QLabel *m_stat_bytes;
/** start time, set on initialization of this dialog */
QTime m_time;
QElapsedTimer m_time;
/** true if the dialog is unusable or canceled by the user */
bool m_canceled;
......
......@@ -24,9 +24,9 @@
#include <new>
#include <QApplication>
#include <QElapsedTimer>
#include <QProgressDialog>
#include <QThread>
#include <QTime>
#include <QVariantList>
#include <QWidget>
......@@ -377,7 +377,7 @@ void Kwave::Plugin::run_wrapper(const QVariant &params)
emit sigRunning(this);
// start time measurement
QTime t;
QElapsedTimer t;
t.start();
// call the plugin's run function in this worker thread context
......
......@@ -22,9 +22,9 @@
#include "config.h"
#include <QtGlobal>
#include <QElapsedTimer>
#include <QList>
#include <QObject>
#include <QTime>
#include "libkwave/InsertMode.h"
#include "libkwave/ReaderMode.h"
......@@ -196,7 +196,7 @@ namespace Kwave
unsigned int m_buffer_position;
/** timer for limiting the number of progress signals per second */
QTime m_progress_time;
QElapsedTimer m_progress_time;
/** last seek position, needed in SinglePassReverse mode */
sample_index_t m_last_seek_pos;
......
......@@ -25,6 +25,7 @@
#include <QApplication>
#include <QByteArray>
#include <QCursor>
#include <QDate>
#include <QFile>
#include <QFileInfo>
#include <QMutableListIterator>
......
......@@ -21,8 +21,8 @@
#include "config.h"
#include <QtGlobal>
#include <QElapsedTimer>
#include <QObject>
#include <QTime>
#include "libkwave/Writer.h"
......@@ -81,7 +81,7 @@ namespace Kwave
Kwave::Track &m_track;
/** timer for limiting the number of progress signals per second */
QTime m_progress_time;
QElapsedTimer m_progress_time;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment