mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Update gifFrameLength name as suggested by clang-tidy (#3947)
This commit is contained in:
parent
7a4eda0e30
commit
92301e7d72
|
@ -100,7 +100,7 @@ namespace detail {
|
||||||
|
|
||||||
void Frames::advance()
|
void Frames::advance()
|
||||||
{
|
{
|
||||||
this->durationOffset_ += gifFrameLength;
|
this->durationOffset_ += GIF_FRAME_LENGTH;
|
||||||
this->processOffset();
|
this->processOffset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace chatterino {
|
||||||
|
|
||||||
void GIFTimer::initialize()
|
void GIFTimer::initialize()
|
||||||
{
|
{
|
||||||
this->timer.setInterval(gifFrameLength);
|
this->timer.setInterval(GIF_FRAME_LENGTH);
|
||||||
this->timer.setTimerType(Qt::PreciseTimer);
|
this->timer.setTimerType(Qt::PreciseTimer);
|
||||||
|
|
||||||
getSettings()->animateEmotes.connect([this](bool enabled, auto) {
|
getSettings()->animateEmotes.connect([this](bool enabled, auto) {
|
||||||
|
@ -23,7 +23,7 @@ void GIFTimer::initialize()
|
||||||
qApp->activeWindow() == nullptr)
|
qApp->activeWindow() == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this->position_ += gifFrameLength;
|
this->position_ += GIF_FRAME_LENGTH;
|
||||||
this->signal.invoke();
|
this->signal.invoke();
|
||||||
getApp()->windows->repaintGifEmotes();
|
getApp()->windows->repaintGifEmotes();
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
constexpr long unsigned gifFrameLength = 20;
|
constexpr long unsigned GIF_FRAME_LENGTH = 20;
|
||||||
|
|
||||||
class GIFTimer
|
class GIFTimer
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue