File indexing completed on 2024-05-05 05:53:45

0001 /*
0002     This source file is part of Konsole, a terminal emulator.
0003 
0004     SPDX-FileCopyrightText: 2007-2008 Robert Knight <robertknight@gmail.com>
0005     SPDX-FileCopyrightText: 2020-2020 Gustavo Carneiro <gcarneiroa@hotmail.com>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 // Own
0011 #include "RandomizationRange.h"
0012 
0013 // Qt
0014 #include <QtGlobal>
0015 
0016 namespace Konsole
0017 {
0018 RandomizationRange::RandomizationRange()
0019     : hue(0.0)
0020     , saturation(0.0)
0021     , lightness(0.0)
0022 {
0023 }
0024 
0025 bool RandomizationRange::isNull() const
0026 {
0027     return qFuzzyIsNull(hue) && qFuzzyIsNull(saturation) && qFuzzyIsNull(lightness);
0028 }
0029 
0030 }