mirror-chatterino2/scrollbarhighlight.cpp

14 lines
390 B
C++
Raw Normal View History

2017-01-03 21:19:33 +01:00
#include "scrollbarhighlight.h"
#include "colorscheme.h"
2017-01-11 18:52:09 +01:00
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex,
Style style, QString tag)
: m_position(position)
, m_colorIndex(std::max(
0, std::min(ColorScheme::instance().HighlightColorCount, colorIndex)))
, m_style(style)
, m_tag(tag)
, next(NULL)
2017-01-03 21:19:33 +01:00
{
}