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

Method loadThemeConfig

src/backend/worksheet/plots/cartesian/CartesianPlotLegend.cpp:970–993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970void CartesianPlotLegend::loadThemeConfig(const KConfig& config) {
971 KConfigGroup group;
972
973 // for the font color use the value defined in the theme config for Label
974 if (config.hasGroup(QStringLiteral("Theme")))
975 group = config.group(QStringLiteral("Label"));
976 else
977 group = config.group(QStringLiteral("CartesianPlotLegend"));
978
979 this->setLabelColor(group.readEntry(QStringLiteral("FontColor"), QColor(Qt::black)));
980
981 // for other theme dependent settings use the values defined in the theme config for CartesianPlot
982 if (config.hasGroup(QStringLiteral("Theme")))
983 group = config.group(QStringLiteral("CartesianPlot"));
984
985 // background
986 background()->loadThemeConfig(group);
987
988 // border
989 borderLine()->loadThemeConfig(group);
990 this->setBorderCornerRadius(group.readEntry(QStringLiteral("BorderCornerRadius"), 0.0));
991
992 title()->loadThemeConfig(config);
993}

Callers

nothing calls this directly

Calls 4

setLabelColorMethod · 0.95
setBorderCornerRadiusMethod · 0.95
QColorClass · 0.50
groupMethod · 0.45

Tested by

no test coverage detected