mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Rename everything.
This commit is contained in:
parent
539d8c20d2
commit
f4828b7d09
4 changed files with 8 additions and 8 deletions
|
@ -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 \
|
||||
|
|
|
@ -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/" +
|
|
@ -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:
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue