#ifndef COLORHANDLER_H #define COLORHANDLER_H #include #include #include class ColorHandler { public: static ColorHandler& instance() { static ColorHandler _instance; return _instance; } void updateColors(GitRepository* repo); QString color(const GitOid& oid); private: ColorHandler(); Q_DISABLE_COPY(ColorHandler) QMap m_colors; }; #endif // COLORHANDLER_H