Commit 99e821a1 authored by Vlad Rakhmanin's avatar Vlad Rakhmanin
Browse files

Added default value to m_fontSize.

Moved default value of m_fontSize out of random() to ensure that the font size isn't always reset each time that function is called.
parent be6c8dcd
......@@ -225,7 +225,6 @@ qreal Kontrast::contrast() const
void Kontrast::random()
m_fontSize = 12;
do {
m_textColor = QColor::fromRgb(QRandomGenerator::global()->generate());
m_backgroundColor = QColor::fromRgb(QRandomGenerator::global()->generate());
......@@ -123,7 +123,7 @@ private:
QColor m_textColor;
QColor m_backgroundColor;
QColor m_grabbedColor;
int m_fontSize;
int m_fontSize = 12;
KAboutData m_about;
ContrastQualities getContrastQualities();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment