MCPcopy Create free account
hub / github.com/KDE/labplot / createImage2

Function createImage2

tests/backend/Datapicker/DatapickerTest.cpp:52–66  ·  view source on GitHub ↗

Different image to the one created by createImage()

Source from the content-addressed store, hash-verified

50
51// Different image to the one created by createImage()
52QImage createImage2() {
53 QImage image(3, 3, QImage::Format_RGB32);
54 QRgb value;
55
56 value = qRgb(189, 149, 39); // 0xffbd9527
57 image.setPixel(0, 1, value);
58
59 value = qRgb(122, 163, 39); // 0xff7aa327
60 image.setPixel(1, 1, value);
61 image.setPixel(1, 0, value);
62
63 value = qRgb(237, 187, 51); // 0xffedba31
64 image.setPixel(2, 1, value);
65 return image;
66}
67} // anonymous namespace
68
69void DatapickerTest::mapCartesianToCartesian() {

Calls

no outgoing calls

Tested by

no test coverage detected