return *this;
}
+bool Remote::operator==(const Remote &other) const
+{
+ return (m_name == other.m_name &&
+ m_mfg == other.m_mfg &&
+ m_rating == other.m_rating &&
+ m_voteCount == other.m_voteCount);
+}
+
void Remote::saveToFile()
{
if (!m_name.isEmpty()) {
if (reply->error() == QNetworkReply::NoError) {
m_rating = QString(reply->readLine(20)).toInt();
m_voteCount = QString(reply->readLine(20)).toInt();
- m_mfg = QString(reply->readLine(20));
+ m_mfg = QString(reply->readLine(20)).trimmed();
}
reply->close();
reply->deleteLater();