mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
remove underscore-prefix from some class members
This commit is contained in:
parent
bb608c83d1
commit
fe352b5da9
2 changed files with 12 additions and 14 deletions
|
@ -522,27 +522,27 @@ EmoteData EmoteManager::getCheerImage(long long amount, bool animated)
|
||||||
|
|
||||||
boost::signals2::signal<void()> &EmoteManager::getGifUpdateSignal()
|
boost::signals2::signal<void()> &EmoteManager::getGifUpdateSignal()
|
||||||
{
|
{
|
||||||
if (!_gifUpdateTimerInitiated) {
|
if (!this->gifUpdateTimerInitiated) {
|
||||||
_gifUpdateTimerInitiated = true;
|
this->gifUpdateTimerInitiated = true;
|
||||||
|
|
||||||
_gifUpdateTimer.setInterval(30);
|
this->gifUpdateTimer.setInterval(30);
|
||||||
_gifUpdateTimer.start();
|
this->gifUpdateTimer.start();
|
||||||
|
|
||||||
SettingsManager::getInstance().enableGifAnimations.connect([this](bool enabled, auto) {
|
SettingsManager::getInstance().enableGifAnimations.connect([this](bool enabled, auto) {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
_gifUpdateTimer.start();
|
this->gifUpdateTimer.start();
|
||||||
} else {
|
} else {
|
||||||
_gifUpdateTimer.stop();
|
this->gifUpdateTimer.stop();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] {
|
QObject::connect(&this->gifUpdateTimer, &QTimer::timeout, [this] {
|
||||||
_gifUpdateTimerSignal();
|
this->gifUpdateTimerSignal();
|
||||||
WindowManager::instance->repaintGifEmotes();
|
WindowManager::instance->repaintGifEmotes();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return _gifUpdateTimerSignal;
|
return this->gifUpdateTimerSignal;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace chatterino
|
} // namespace chatterino
|
||||||
|
|
|
@ -157,11 +157,9 @@ private:
|
||||||
/// Chatterino emotes
|
/// Chatterino emotes
|
||||||
EmoteMap _chatterinoEmotes;
|
EmoteMap _chatterinoEmotes;
|
||||||
|
|
||||||
boost::signals2::signal<void()> _gifUpdateTimerSignal;
|
boost::signals2::signal<void()> gifUpdateTimerSignal;
|
||||||
QTimer _gifUpdateTimer;
|
QTimer gifUpdateTimer;
|
||||||
bool _gifUpdateTimerInitiated = false;
|
bool gifUpdateTimerInitiated = false;
|
||||||
|
|
||||||
int _generation = 0;
|
|
||||||
|
|
||||||
// methods
|
// methods
|
||||||
static QString getTwitchEmoteLink(long id, qreal &scale);
|
static QString getTwitchEmoteLink(long id, qreal &scale);
|
||||||
|
|
Loading…
Reference in a new issue