refactor: make Application::emotes private (#5109)

This commit is contained in:
pajlada
2024-01-20 11:49:32 +01:00
committed by GitHub
parent 36931fac62
commit 97702e0a1f
9 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ namespace detail {
DebugCount::increase("animated images");
this->gifTimerConnection_ =
getApp()->emotes->gifTimer.signal.connect([this] {
getIApp()->getEmotes()->getGIFTimer().signal.connect([this] {
this->advance();
});
}
+1 -1
View File
@@ -814,7 +814,7 @@ void MessageBuilder::addIrcWord(const QString &text, const QColor &color,
bool addSpace)
{
this->textColor_ = color;
for (auto &variant : getApp()->emotes->emojis.parse(text))
for (auto &variant : getIApp()->getEmotes()->getEmojis()->parse(text))
{
boost::apply_visitor(
[&](auto &&arg) {
+2 -1
View File
@@ -685,7 +685,8 @@ void SingleLineTextElement::addToContainer(MessageLayoutContainer &container,
currentText += ' ';
}
for (const auto &parsedWord : app->emotes->emojis.parse(word.text))
for (const auto &parsedWord :
app->getEmotes()->getEmojis()->parse(word.text))
{
if (parsedWord.type() == typeid(QString))
{