Clean up twitch emote tooltips

This commit is contained in:
Rasmus Karlsson 2018-06-30 10:10:53 +02:00
parent ec4c243455
commit 978931bcfc

View file

@ -123,16 +123,16 @@ EmoteData TwitchEmotes::getEmoteById(const QString &id, const QString &emoteName
return _twitchEmoteFromCache.getOrAdd(id, [&emoteName, &_emoteName, &id] {
EmoteData newEmoteData;
auto cleanCode = cleanUpCode(emoteName);
newEmoteData.image1x = new Image(getEmoteLink(id, "1.0"), 1, emoteName,
_emoteName + "<br/>Twitch Emote 1x");
newEmoteData.image1x =
new Image(getEmoteLink(id, "1.0"), 1, emoteName, _emoteName + "<br/>Twitch Emote");
newEmoteData.image1x->setCopyString(cleanCode);
newEmoteData.image2x = new Image(getEmoteLink(id, "2.0"), .5, emoteName,
_emoteName + "<br/>Twitch Emote 2x");
newEmoteData.image2x =
new Image(getEmoteLink(id, "2.0"), .5, emoteName, _emoteName + "<br/>Twitch Emote");
newEmoteData.image2x->setCopyString(cleanCode);
newEmoteData.image3x = new Image(getEmoteLink(id, "3.0"), .25, emoteName,
_emoteName + "<br/>Twitch Emote 3x");
newEmoteData.image3x =
new Image(getEmoteLink(id, "3.0"), .25, emoteName, _emoteName + "<br/>Twitch Emote");
newEmoteData.image3x->setCopyString(cleanCode);