src/colors.h

changeset 1114
ffd49a28f49e
parent 1072
9ce9496427f2
child 1174
91696a2e022c
--- a/src/colors.h	Thu Feb 09 20:44:36 2017 +0200
+++ b/src/colors.h	Thu Feb 09 20:54:21 2017 +0200
@@ -36,7 +36,6 @@
 	};
 
 	ColorData();
-	~ColorData();
 	void loadFromLdconfig();
 	bool contains(int code) const;
 	const Entry& get(int code) const;
@@ -68,7 +67,8 @@
 	bool isDirect() const;
 	QString indexString() const;
 
-	static LDColor nullColor();
+	static const LDColor nullColor;
+	static void initColors();
 
 	LDColor& operator=(qint32 index) { m_index = index; return *this; }
 	LDColor& operator=(const LDColor &other) = default;
@@ -84,6 +84,7 @@
 	bool operator>=(LDColor other) const { return index() >= other.index(); }
 
 private:
+	static ColorData* colorData;
 	const ColorData::Entry& data() const;
 
 	qint32 m_index;
@@ -110,7 +111,6 @@
 	QStringList m_tokens;
 };
 
-void initColors();
 int luma(const QColor& col);
 
 enum

mercurial