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

Method legendLabelFontChanged

src/frontend/dockwidgets/CartesianPlotLegendDock.cpp:564–570  ·  view source on GitHub ↗

SLOTs for changes triggered in CartesianPlotLegend General

Source from the content-addressed store, hash-verified

562//*************************************************************
563// General
564void CartesianPlotLegendDock::legendLabelFontChanged(QFont& font) {
565 CONDITIONAL_LOCK_RETURN;
566 // we need to set the font size in points for KFontRequester
567 QFont f(font);
568 f.setPointSizeF(round(Worksheet::convertFromSceneUnits(f.pointSizeF(), Worksheet::Unit::Point)));
569 ui.kfrLabelFont->setFont(f);
570}
571
572void CartesianPlotLegendDock::legendUsePlotColorChanged(bool usePlotColor) {
573 CONDITIONAL_LOCK_RETURN;

Callers

nothing calls this directly

Calls 1

setFontMethod · 0.45

Tested by

no test coverage detected