Commit d9df7d0f authored by Andrea Scarpino's avatar Andrea Scarpino

Use Qt5 syntax for slots

parent a5ce4b17
......@@ -100,7 +100,7 @@ void ChartLyricsAPI::onGetLyricResult()
}
}
emit lyricFetched(lyric, found);
Q_EMIT lyricFetched(lyric, found);
reply->deleteLater();
}
......@@ -127,7 +127,7 @@ void GeniusAPI::onGetLyricResult()
}
if (err) {
emit lyricFetched(0, !err);
Q_EMIT lyricFetched(0, !err);
}
reply->deleteLater();
......@@ -166,7 +166,7 @@ void GeniusAPI::onGetLyricPageResult()
}
qDebug() << "Lyric found:" << found;
emit lyricFetched(lyric, found);
Q_EMIT lyricFetched(lyric, found);
reply->deleteLater();
}
......
......@@ -98,5 +98,5 @@ void LyricsManager::search(const QString &artist, const QString &song)
qDebug() << "Querying" << api->metaObject()->className();
api->getLyric(artist, song);
connect(api, SIGNAL(lyricFetched(Lyric*,bool)), this, SIGNAL(searchResult(Lyric*,bool)));
connect(api, &Provider::lyricFetched, this, &LyricsManager::searchResult);
}
......@@ -108,7 +108,7 @@ void LyricsManiaAPI::onGetLyricPageResult()
}
qDebug() << "Lyric found:" << found;
emit lyricFetched(lyric, found);
Q_EMIT lyricFetched(lyric, found);
reply->deleteLater();
}
......@@ -132,7 +132,7 @@ void LyricsWikiAPI::onGetLyricResult()
}
if (err) {
emit lyricFetched(0, !err);
Q_EMIT lyricFetched(0, !err);
}
reply->deleteLater();
......@@ -175,7 +175,7 @@ void LyricsWikiAPI::onGetLyricPageResult()
}
qDebug() << "Lyric found:" << found;
emit lyricFetched(lyric, found);
Q_EMIT lyricFetched(lyric, found);
reply->deleteLater();
}
......
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