Port stringToColor to C++.

Fixes #50.
This commit is contained in:
Black Hat
2018-09-16 16:09:36 +08:00
parent 03a8eae491
commit 1e04013e3d
11 changed files with 20 additions and 27 deletions

View File

@@ -41,8 +41,10 @@ class ImageItem : public QQuickPaintedItem {
private:
QImage m_image;
QString m_hint = "H";
QString m_color = "#000000";
QString m_color;
bool m_round = true;
QString stringtoColor(QString string);
};
#endif // IMAGEITEM_H