Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/fonts.cpp
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 114 | { | |||
---|---|---|---|---|---|
116 | ManagedConfigModule::load(); | 116 | ManagedConfigModule::load(); | ||
117 | 117 | | |||
118 | // Load preview | 118 | // Load preview | ||
119 | // NOTE: This needs to be done AFTER AA settings is loaded | 119 | // NOTE: This needs to be done AFTER AA settings is loaded | ||
120 | // otherwise AA settings will be reset in process of loading | 120 | // otherwise AA settings will be reset in process of loading | ||
121 | // previews | 121 | // previews | ||
122 | engine()->addImageProvider("preview", new PreviewImageProvider(m_settings->font())); | 122 | engine()->addImageProvider("preview", new PreviewImageProvider(m_settings->font())); | ||
123 | 123 | | |||
124 | // KCM expect save state to be false at this point (can be true because of setNearestExistingFonts | 124 | // KCM expect save state to be false at this point (can be true because if a font setting loaded | ||
125 | // from the config isn't available on the system, font substitution may take place) | ||||
125 | setNeedsSave(false); | 126 | setNeedsSave(false); | ||
126 | } | 127 | } | ||
127 | 128 | | |||
128 | void KFonts::save() | 129 | void KFonts::save() | ||
129 | { | 130 | { | ||
130 | auto dpiItem = m_settingsAA->findItem("forceFontDPI"); | 131 | auto dpiItem = m_settingsAA->findItem("forceFontDPI"); | ||
131 | auto dpiWaylandItem = m_settingsAA->findItem("forceFontDPIWayland"); | 132 | auto dpiWaylandItem = m_settingsAA->findItem("forceFontDPIWayland"); | ||
132 | auto antiAliasingItem = m_settingsAA->findItem("antiAliasing"); | 133 | auto antiAliasingItem = m_settingsAA->findItem("antiAliasing"); | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |