Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/fonts.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | 305 | #endif | |||
---|---|---|---|---|---|
311 | m_originalState.subPixel = m_state.subPixel; | 311 | m_originalState.subPixel = m_state.subPixel; | ||
312 | m_originalState.hinting = m_state.hinting; | 312 | m_originalState.hinting = m_state.hinting; | ||
313 | 313 | | |||
314 | return mod; | 314 | return mod; | ||
315 | } | 315 | } | ||
316 | 316 | | |||
317 | void FontAASettings::defaults() | 317 | void FontAASettings::defaults() | ||
318 | { | 318 | { | ||
319 | setExclude(false); | ||||
319 | setExcludeTo(15); | 320 | setExcludeTo(15); | ||
320 | setExcludeFrom(8); | 321 | setExcludeFrom(8); | ||
321 | setAntiAliasing(true); | 322 | setAntiAliasing(true); | ||
322 | m_originalState.antiAliasing = m_state.antiAliasing; | 323 | m_originalState.antiAliasing = m_state.antiAliasing; | ||
323 | m_state.antiAliasingHasLocalConfig = false; | 324 | m_state.antiAliasingHasLocalConfig = false; | ||
324 | setDpi(0); | 325 | setDpi(0); | ||
325 | setSubPixel(KXftConfig::SubPixel::Rgb); | 326 | setSubPixel(KXftConfig::SubPixel::Rgb); | ||
326 | m_state.subPixelHasLocalConfig = false; | 327 | m_state.subPixelHasLocalConfig = false; | ||
Show All 13 Lines | 335 | { | |||
340 | emit excludeChanged(); | 341 | emit excludeChanged(); | ||
341 | } | 342 | } | ||
342 | 343 | | |||
343 | bool FontAASettings::exclude() const | 344 | bool FontAASettings::exclude() const | ||
344 | { | 345 | { | ||
345 | return m_state.exclude; | 346 | return m_state.exclude; | ||
346 | } | 347 | } | ||
347 | 348 | | |||
348 | void FontAASettings::setExcludeTo(const int &excludeTo) | 349 | void FontAASettings::setExcludeTo(int excludeTo) | ||
349 | { | 350 | { | ||
350 | if (m_state.excludeTo == excludeTo) { | 351 | if (m_state.excludeTo == excludeTo) { | ||
351 | return; | 352 | return; | ||
352 | } | 353 | } | ||
353 | 354 | | |||
354 | m_state.excludeTo = excludeTo; | 355 | m_state.excludeTo = excludeTo; | ||
355 | emit excludeToChanged(); | 356 | emit excludeToChanged(); | ||
356 | } | 357 | } | ||
357 | 358 | | |||
358 | int FontAASettings::excludeTo() const | 359 | int FontAASettings::excludeTo() const | ||
359 | { | 360 | { | ||
360 | return m_state.excludeTo; | 361 | return m_state.excludeTo; | ||
361 | } | 362 | } | ||
362 | 363 | | |||
363 | void FontAASettings::setExcludeFrom(const int &excludeTo) | 364 | void FontAASettings::setExcludeFrom(int excludeFrom) | ||
364 | { | 365 | { | ||
365 | if (m_state.excludeFrom == excludeTo) { | 366 | if (m_state.excludeFrom == excludeFrom) { | ||
366 | return; | 367 | return; | ||
367 | } | 368 | } | ||
368 | 369 | | |||
369 | m_state.excludeFrom = excludeTo; | 370 | m_state.excludeFrom = excludeFrom; | ||
370 | emit excludeToChanged(); | 371 | emit excludeFromChanged(); | ||
371 | } | 372 | } | ||
372 | 373 | | |||
373 | int FontAASettings::excludeFrom() const | 374 | int FontAASettings::excludeFrom() const | ||
374 | { | 375 | { | ||
375 | return m_state.excludeFrom; | 376 | return m_state.excludeFrom; | ||
376 | } | 377 | } | ||
377 | 378 | | |||
378 | void FontAASettings::setAntiAliasing(bool antiAliasing) | 379 | void FontAASettings::setAntiAliasing(bool antiAliasing) | ||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |