void UpdateChecker::requestFinished(QByteArray data) { UpdateCheckerStreamReader reader; reader.read(data); m_needUpdate = reader.needUpdate(); m_remoteVersion = reader.remoteVersion(); if (m_needUpdate) emit newVersion(m_remoteVersion); }
void UpdateChecker::requestFinished(const QByteArray &data) { UpdateCheckerStreamReader reader; reader.read(data); m_needUpdate = reader.needUpdate(); m_remoteVersion = reader.remoteVersion(); if (m_needUpdate && !m_remoteVersion.isEmpty()) emit newVersion(m_remoteVersion); }