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

Method labelFontChanged

src/frontend/dockwidgets/CartesianPlotLegendDock.cpp:300–307  ·  view source on GitHub ↗

General

Source from the content-addressed store, hash-verified

298
299// General
300void CartesianPlotLegendDock::labelFontChanged(const QFont& font) {
301 CONDITIONAL_LOCK_RETURN;
302
303 QFont labelsFont = font;
304 labelsFont.setPointSizeF(Worksheet::convertToSceneUnits(font.pointSizeF(), Worksheet::Unit::Point));
305 for (auto* legend : m_legendList)
306 legend->setLabelFont(labelsFont);
307}
308
309void CartesianPlotLegendDock::usePlotColorChanged(bool checked) {
310 ui.lFontColor->setVisible(!checked);

Callers

nothing calls this directly

Calls 1

setLabelFontMethod · 0.80

Tested by

no test coverage detected