| 606 | |
| 607 | |
| 608 | QColor WizStringToColor2(const CString& str) |
| 609 | { |
| 610 | CString s = str; |
| 611 | s.trim('#'); |
| 612 | int n = WizHexToInt(s); |
| 613 | // |
| 614 | int r = (LOBYTE((n)>>16)); |
| 615 | int g = (LOBYTE(((WORD)(n)) >> 8)); |
| 616 | int b = LOBYTE(n); |
| 617 | // |
| 618 | return QColor(r, g, b); |
| 619 | } |
| 620 | |
| 621 | std::string WizBSTR2UTF8(const CString& str) |
| 622 | { |
no test coverage detected