Commit 0efb7ce1 authored by Peter Simonsson's avatar Peter Simonsson

Use QElapsedTimer instead of depricated QTime::elapsed

parent f1e6ec37
......@@ -110,7 +110,7 @@ int IRCQueue::currentWait()
int IRCQueue::elapsed()
if (m_startedAt.isNull())
if (!m_startedAt.isValid())
return 0;
return m_startedAt.elapsed(); //FIXME if its been more than a day since this queue was used, this breaks
......@@ -180,7 +180,8 @@ void IRCQueue::reset()
if (m_server)
m_blocked=!(m_server->isConnected()); //FIXME (maybe) "we can't do this anymore because blocked can't correspond to whether the server is online, instead must correspond to whether the socket has become writable (readyWrite)"
......@@ -132,7 +132,7 @@ private:
bool m_online;
Server *m_server;
QTime m_startedAt;
QElapsedTimer m_startedAt;
QTime m_lastSent, m_globalLastSent;
int m_linesSent, m_globalLinesSent;
int m_bytesSent, m_globalBytesSent;
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