Rename everything.

This commit is contained in:
23rd 2018-08-25 21:38:14 +03:00
parent 539d8c20d2
commit f4828b7d09
4 changed files with 8 additions and 8 deletions

View file

@ -237,7 +237,7 @@ SOURCES += \
src/messages/Emote.cpp \
src/messages/ImageSet.cpp \
src/providers/bttv/BttvEmotes.cpp \
src/providers/bttv/BttvTooltip.cpp \
src/providers/LinkResolver.cpp \
src/providers/ffz/FfzEmotes.cpp \
src/autogenerated/ResourcesAutogen.cpp \
src/singletons/Badges.cpp \
@ -434,7 +434,7 @@ HEADERS += \
src/messages/ImageSet.hpp \
src/common/Outcome.hpp \
src/providers/bttv/BttvEmotes.hpp \
src/providers/bttv/BttvTooltip.hpp \
src/providers/LinkResolver.hpp \
src/providers/ffz/FfzEmotes.hpp \
src/autogenerated/ResourcesAutogen.hpp \
src/singletons/Badges.hpp \

View file

@ -1,4 +1,4 @@
#include "providers/bttv/BttvTooltip.hpp"
#include "providers/LinkResolver.hpp"
#include "common/Common.hpp"
#include "common/NetworkRequest.hpp"
@ -7,7 +7,7 @@
namespace chatterino {
void BttvTooltip::getUrlTooltip(const QString url,
void LinkResolver::getLinkInfo(const QString url,
std::function<void(QString)> successCallback)
{
QString requestUrl("https://api.betterttv.net/2/link_resolver/" +

View file

@ -5,10 +5,10 @@
namespace chatterino {
class BttvTooltip
class LinkResolver
{
public:
static void getUrlTooltip(const QString url,
static void getLinkInfo(const QString url,
std::function<void(QString)> callback);
private:

View file

@ -8,7 +8,7 @@
#include "messages/Message.hpp"
#include "providers/twitch/TwitchBadges.hpp"
#include "providers/twitch/TwitchChannel.hpp"
#include "providers/bttv/BttvTooltip.hpp"
#include "providers/LinkResolver.hpp"
#include "singletons/Emotes.hpp"
#include "singletons/Resources.hpp"
#include "singletons/Settings.hpp"
@ -276,7 +276,7 @@ void TwitchMessageBuilder::addTextOrEmoji(const QString &string_)
textColor)
->setLink(link);
BttvTooltip::getUrlTooltip(
LinkResolver::getLinkInfo(
linkString, [linkMessageElement](QString tooltipText) {
if (!tooltipText.isEmpty()) {
linkMessageElement->setTooltip(tooltipText);