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

Method axisLabelsFontChanged

src/frontend/dockwidgets/AxisDock.cpp:1787–1793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1785 cbLabelsTextColumn->setAspect(column, m_axis->labelsTextColumnPath());
1786}
1787void AxisDock::axisLabelsFontChanged(const QFont& font) {
1788 CONDITIONAL_LOCK_RETURN;
1789 // we need to set the font size in points for KFontRequester
1790 QFont newFont(font);
1791 newFont.setPointSizeF(std::round(Worksheet::convertFromSceneUnits(font.pointSizeF(), Worksheet::Unit::Point)));
1792 ui.kfrLabelsFont->setFont(newFont);
1793}
1794void AxisDock::axisLabelsFontColorChanged(const QColor& color) {
1795 CONDITIONAL_LOCK_RETURN;
1796 updateAxisColor();

Callers

nothing calls this directly

Calls 1

setFontMethod · 0.45

Tested by

no test coverage detected