diff --git a/containments/homescreen/colouraverage.cpp b/containments/homescreen/colouraverage.cpp index b8e1a3f1..81b43ad4 100644 --- a/containments/homescreen/colouraverage.cpp +++ b/containments/homescreen/colouraverage.cpp @@ -54,4 +54,4 @@ QColor ColourAverage::averageColour(QImage img) { color.setHsv(color.hue(), color.saturation() / 4, color.value()); return color; -} \ No newline at end of file +} diff --git a/containments/homescreen/colouraverage.h b/containments/homescreen/colouraverage.h index a5bd4a72..609f138e 100644 --- a/containments/homescreen/colouraverage.h +++ b/containments/homescreen/colouraverage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2019 Carson Black * + * Copyright (C) 2019 Carson Black * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -16,6 +16,7 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#pragma once #include #include @@ -27,4 +28,4 @@ class ColourAverage : public QObject public: explicit ColourAverage(QObject* parent = nullptr); Q_INVOKABLE QColor averageColour(QImage img); -}; \ No newline at end of file +};