MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / TEST

Function TEST

pj_widgets/tests/toast_test.cpp:19–22  ·  view source on GitHub ↗

QSS type selectors match on metaObject()->className(). The toast styling in stylesheet_{dark,light}.qss targets `PJ--ToastNotification`, so pin the class name: a namespace/rename regression would silently drop the styling instead of failing loudly.

Source from the content-addressed store, hash-verified

17// name: a namespace/rename regression would silently drop the styling instead
18// of failing loudly.
19TEST(ToastTest, ClassNameDrivesQssSelector) {
20 PJ::ToastNotification toast("hello");
21 EXPECT_STREQ(toast.metaObject()->className(), "PJ::ToastNotification");
22}
23
24// showToast() must create a ToastNotification under the manager's transparent
25// container (objectName preserved from PJ3 for stylesheet selectors).

Callers

nothing calls this directly

Calls 6

messageMethod · 0.80
QPixmapClass · 0.50
resizeMethod · 0.45
showToastMethod · 0.45
containsMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected