Changeset View
Changeset View
Standalone View
Standalone View
kcms/krdb/krdb.cpp
Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Line(s) | 406 | { | |||
---|---|---|---|---|---|
494 | if (!theme.isNull()) | 494 | if (!theme.isNull()) | ||
495 | contents = "Xcursor.theme: " + theme + '\n'; | 495 | contents = "Xcursor.theme: " + theme + '\n'; | ||
496 | 496 | | |||
497 | if (!size.isNull()) | 497 | if (!size.isNull()) | ||
498 | contents += "Xcursor.size: " + size + '\n'; | 498 | contents += "Xcursor.size: " + size + '\n'; | ||
499 | 499 | | |||
500 | if (exportXftSettings) | 500 | if (exportXftSettings) | ||
501 | { | 501 | { | ||
502 | if (generalCfgGroup.hasKey("XftAntialias")) | | |||
503 | { | | |||
504 | contents += QLatin1String("Xft.antialias: "); | 502 | contents += QLatin1String("Xft.antialias: "); | ||
505 | if(generalCfgGroup.readEntry("XftAntialias", true)) | 503 | if(generalCfgGroup.readEntry("XftAntialias", true)) | ||
506 | contents += QLatin1String("1\n"); | 504 | contents += QLatin1String("1\n"); | ||
507 | else | 505 | else | ||
508 | contents += QLatin1String("0\n"); | 506 | contents += QLatin1String("0\n"); | ||
509 | } | | |||
510 | 507 | | |||
511 | if (generalCfgGroup.hasKey("XftHintStyle")) | 508 | QString hintStyle = generalCfgGroup.readEntry("XftHintStyle", "hintslight"); | ||
512 | { | | |||
513 | QString hintStyle = generalCfgGroup.readEntry("XftHintStyle", "hintmedium"); | | |||
514 | contents += QLatin1String("Xft.hinting: "); | 509 | contents += QLatin1String("Xft.hinting: "); | ||
515 | if(hintStyle.isEmpty()) | 510 | if(hintStyle.isEmpty()) | ||
516 | contents += QLatin1String("-1\n"); | 511 | contents += QLatin1String("-1\n"); | ||
517 | else | 512 | else | ||
518 | { | 513 | { | ||
519 | if(hintStyle!=QLatin1String("hintnone")) | 514 | if(hintStyle!=QLatin1String("hintnone")) | ||
520 | contents += QLatin1String("1\n"); | 515 | contents += QLatin1String("1\n"); | ||
521 | else | 516 | else | ||
522 | contents += QLatin1String("0\n"); | 517 | contents += QLatin1String("0\n"); | ||
523 | contents += "Xft.hintstyle: " + hintStyle + '\n'; | 518 | contents += "Xft.hintstyle: " + hintStyle + '\n'; | ||
524 | } | 519 | } | ||
525 | } | | |||
526 | 520 | | |||
527 | if (generalCfgGroup.hasKey("XftSubPixel")) | 521 | QString subPixel = generalCfgGroup.readEntry("XftSubPixel", "rgb"); | ||
528 | { | | |||
529 | QString subPixel = generalCfgGroup.readEntry("XftSubPixel"); | | |||
530 | if(!subPixel.isEmpty()) | 522 | if(!subPixel.isEmpty()) | ||
531 | contents += "Xft.rgba: " + subPixel + '\n'; | 523 | contents += "Xft.rgba: " + subPixel + '\n'; | ||
532 | } | | |||
533 | 524 | | |||
534 | KConfig _cfgfonts( QStringLiteral("kcmfonts") ); | 525 | KConfig _cfgfonts( QStringLiteral("kcmfonts") ); | ||
535 | KConfigGroup cfgfonts(&_cfgfonts, "General"); | 526 | KConfigGroup cfgfonts(&_cfgfonts, "General"); | ||
536 | 527 | | |||
537 | int dpi; | 528 | int dpi; | ||
538 | 529 | | |||
539 | //even though this sets up the X rdb, we want to use the value the | 530 | //even though this sets up the X rdb, we want to use the value the | ||
540 | //user has set to use when under wayland - as X apps will be scaled by the compositor | 531 | //user has set to use when under wayland - as X apps will be scaled by the compositor | ||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |