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

Method openPopup

pj_widgets/src/ColorPickerWidget.cpp:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void ColorPickerWidget::openPopup() {
57 auto* popup = new ColorPickerPopup(this);
58 popup->setAttribute(Qt::WA_DeleteOnClose);
59 popup->setColor(color_);
60 connect(popup, &ColorPickerPopup::colorChanged, this, [this](QColor picked) {
61 if (picked.isValid()) {
62 setColor(picked);
63 emit colorChanged(picked);
64 }
65 });
66 popup->move(mapToGlobal(QPoint(0, height() + 2)));
67 popup->show();
68}
69
70} // namespace PJ

Callers

nothing calls this directly

Calls 6

QPointClass · 0.50
setAttributeMethod · 0.45
setColorMethod · 0.45
isValidMethod · 0.45
moveMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected