4 #include <unordered_map> 36 const std::shared_ptr<QColor> color(
ColorType type)
const;
38 void updateColor(
ColorType type, QColor color);
43 QSet<QColor> recentColors()
const;
49 const std::vector<QColor> &defaultColors()
const;
54 void initTypeColorMap();
55 void initDefaultColors();
57 std::unordered_map<ColorType, std::shared_ptr<QColor>> typeColorMap_;
58 std::vector<QColor> defaultColors_;
63 inline uint
qHash(
const QColor &key)
65 return qHash(key.name(QColor::HexArgb));
uint qHash(const QColor &key)
Definition: ColorProvider.hpp:63
Definition: Application.cpp:48
ColorType
Definition: ColorProvider.hpp:10
Definition: ColorProvider.hpp:20