fixed upper/lower case fiesta

This commit is contained in:
fourtf 2018-06-26 17:42:35 +02:00
parent 8cbf575e3c
commit 604e5ed682
10 changed files with 34 additions and 33 deletions

View file

@ -198,13 +198,13 @@ SOURCES += \
src/widgets/settingspages/AccountsPage.cpp \
src/widgets/settingspages/AppearancePage.cpp \
src/widgets/settingspages/BehaviourPage.cpp \
src/widgets/settingspages/BrowserextensionPage.cpp \
src/widgets/settingspages/BrowserExtensionPage.cpp \
src/widgets/settingspages/CommandPage.cpp \
src/widgets/settingspages/EmotesPage.cpp \
src/widgets/settingspages/ExternaltoolsPage.cpp \
src/widgets/settingspages/ExternalToolsPage.cpp \
src/widgets/settingspages/HighlightingPage.cpp \
src/widgets/settingspages/IgnoreusersPage.cpp \
src/widgets/settingspages/KeyboardsettingsPage.cpp \
src/widgets/settingspages/KeyboardSettingsPage.cpp \
src/widgets/settingspages/LogsPage.cpp \
src/widgets/settingspages/ModerationPage.cpp \
src/widgets/settingspages/SettingsPage.cpp \
@ -364,13 +364,13 @@ HEADERS += \
src/widgets/settingspages/AccountsPage.hpp \
src/widgets/settingspages/AppearancePage.hpp \
src/widgets/settingspages/BehaviourPage.hpp \
src/widgets/settingspages/BrowserextensionPage.hpp \
src/widgets/settingspages/BrowserExtensionPage.hpp \
src/widgets/settingspages/CommandPage.hpp \
src/widgets/settingspages/EmotesPage.hpp \
src/widgets/settingspages/ExternaltoolsPage.hpp \
src/widgets/settingspages/ExternalToolsPage.hpp \
src/widgets/settingspages/HighlightingPage.hpp \
src/widgets/settingspages/IgnoreusersPage.hpp \
src/widgets/settingspages/KeyboardsettingsPage.hpp \
src/widgets/settingspages/KeyboardSettingsPage.hpp \
src/widgets/settingspages/LogsPage.hpp \
src/widgets/settingspages/ModerationPage.hpp \
src/widgets/settingspages/SettingsPage.hpp \

View file

@ -118,15 +118,15 @@ void Application::initialize()
#endif
#endif
this->twitch.pubsub->sig.whisper.sent.connect([](const auto &msg) {
this->twitch.pubsub->signals_.whisper.sent.connect([](const auto &msg) {
Log("WHISPER SENT LOL"); //
});
this->twitch.pubsub->sig.whisper.received.connect([](const auto &msg) {
this->twitch.pubsub->signals_.whisper.received.connect([](const auto &msg) {
Log("WHISPER RECEIVED LOL"); //
});
this->twitch.pubsub->sig.moderation.chatCleared.connect([this](const auto &action) {
this->twitch.pubsub->signals_.moderation.chatCleared.connect([this](const auto &action) {
auto chan = this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty()) {
return;
@ -138,7 +138,7 @@ void Application::initialize()
postToThread([chan, msg] { chan->addMessage(msg); });
});
this->twitch.pubsub->sig.moderation.modeChanged.connect([this](const auto &action) {
this->twitch.pubsub->signals_.moderation.modeChanged.connect([this](const auto &action) {
auto chan = this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty()) {
return;
@ -157,25 +157,26 @@ void Application::initialize()
postToThread([chan, msg] { chan->addMessage(msg); });
});
this->twitch.pubsub->sig.moderation.moderationStateChanged.connect([this](const auto &action) {
auto chan = this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty()) {
return;
}
this->twitch.pubsub->signals_.moderation.moderationStateChanged.connect(
[this](const auto &action) {
auto chan = this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty()) {
return;
}
QString text;
QString text;
if (action.modded) {
text = QString("%1 modded %2").arg(action.source.name, action.target.name);
} else {
text = QString("%1 unmodded %2").arg(action.source.name, action.target.name);
}
if (action.modded) {
text = QString("%1 modded %2").arg(action.source.name, action.target.name);
} else {
text = QString("%1 unmodded %2").arg(action.source.name, action.target.name);
}
auto msg = chatterino::Message::createSystemMessage(text);
postToThread([chan, msg] { chan->addMessage(msg); });
});
auto msg = chatterino::Message::createSystemMessage(text);
postToThread([chan, msg] { chan->addMessage(msg); });
});
this->twitch.pubsub->sig.moderation.userBanned.connect([&](const auto &action) {
this->twitch.pubsub->signals_.moderation.userBanned.connect([&](const auto &action) {
auto chan = this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty()) {
@ -188,7 +189,7 @@ void Application::initialize()
postToThread([chan, msg] { chan->addOrReplaceTimeout(msg); });
});
this->twitch.pubsub->sig.moderation.userUnbanned.connect([&](const auto &action) {
this->twitch.pubsub->signals_.moderation.userUnbanned.connect([&](const auto &action) {
auto chan = this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty()) {

View file

@ -115,7 +115,7 @@ public:
Signal<const rapidjson::Value &> received;
Signal<const rapidjson::Value &> sent;
} whisper;
} sig;
} signals_;
void listenToWhispers(std::shared_ptr<TwitchAccount> account);

View file

@ -7,13 +7,13 @@
#include "widgets/settingspages/AccountsPage.hpp"
#include "widgets/settingspages/AppearancePage.hpp"
#include "widgets/settingspages/BehaviourPage.hpp"
#include "widgets/settingspages/BrowserextensionPage.hpp"
#include "widgets/settingspages/BrowserExtensionPage.hpp"
#include "widgets/settingspages/CommandPage.hpp"
#include "widgets/settingspages/EmotesPage.hpp"
#include "widgets/settingspages/ExternaltoolsPage.hpp"
#include "widgets/settingspages/ExternalToolsPage.hpp"
#include "widgets/settingspages/HighlightingPage.hpp"
#include "widgets/settingspages/IgnoreusersPage.hpp"
#include "widgets/settingspages/KeyboardsettingsPage.hpp"
#include "widgets/settingspages/KeyboardSettingsPage.hpp"
#include "widgets/settingspages/LogsPage.hpp"
#include "widgets/settingspages/ModerationPage.hpp"
#include "widgets/settingspages/SpecialChannelsPage.hpp"

View file

@ -1,4 +1,4 @@
#include "BrowserextensionPage.hpp"
#include "BrowserExtensionPage.hpp"
#include "util/LayoutCreator.hpp"

View file

@ -1,4 +1,4 @@
#include "ExternaltoolsPage.hpp"
#include "ExternalToolsPage.hpp"
#include "Application.hpp"
#include "util/LayoutCreator.hpp"

View file

@ -1,4 +1,4 @@
#include "KeyboardsettingsPage.hpp"
#include "KeyboardSettingsPage.hpp"
#include "util/LayoutCreator.hpp"