| 968 | } |
| 969 | |
| 970 | void 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 | } |
nothing calls this directly
no test coverage detected