Fix Colors.cpp compile warnings

.. they hide real issues.
This commit is contained in:
Mark Liversedge
2021-05-15 14:07:08 +01:00
parent a4e9b52eeb
commit aaa6bac5ed
2 changed files with 3 additions and 1 deletions

View File

@@ -381,7 +381,7 @@ GCColor::themes()
return allThemes;
}
ColorEngine::ColorEngine(GlobalContext *gc) : gc(gc), defaultColor(QColor(Qt::white))
ColorEngine::ColorEngine(GlobalContext *gc) : defaultColor(QColor(Qt::white)), gc(gc)
{
configChanged(CONFIG_NOTECOLOR);
connect(gc, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32)));

View File

@@ -24,6 +24,8 @@
#include <QObject>
#include <QColor>
#include <QLabel>
#include <QGradient>
#include <QLinearGradient>
// A selection of distinct colours, user can adjust also