Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/theme.cpp
Show First 20 Lines • Show All 435 Lines • ▼ Show 20 Line(s) | |||||
436 | 436 | | |||
437 | void Theme::setCacheLimit(int kbytes) | 437 | void Theme::setCacheLimit(int kbytes) | ||
438 | { | 438 | { | ||
439 | d->cacheSize = kbytes; | 439 | d->cacheSize = kbytes; | ||
440 | delete d->pixmapCache; | 440 | delete d->pixmapCache; | ||
441 | d->pixmapCache = nullptr; | 441 | d->pixmapCache = nullptr; | ||
442 | } | 442 | } | ||
443 | 443 | | |||
444 | KPluginInfo Theme::pluginInfo() const | 444 | KPluginInfo Theme::pluginInfo() const | ||
broulik: Does this need a separate `metadata()` getter? | |||||
445 | { | 445 | { | ||
446 | return d->pluginInfo; | 446 | return KPluginInfo(d->pluginMetaData); | ||
447 | } | 447 | } | ||
448 | 448 | | |||
449 | QFont Theme::defaultFont() const | 449 | QFont Theme::defaultFont() const | ||
450 | { | 450 | { | ||
451 | return QGuiApplication::font(); | 451 | return QGuiApplication::font(); | ||
452 | } | 452 | } | ||
453 | 453 | | |||
454 | QFont Theme::smallestFont() const | 454 | QFont Theme::smallestFont() const | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
Does this need a separate metadata() getter?