Changeset View
Changeset View
Standalone View
Standalone View
kcms/krdb/krdb.cpp
Show First 20 Lines • Show All 746 Lines • ▼ Show 20 Line(s) | 669 | { | |||
---|---|---|---|---|---|
747 | // very primitive support for ~/.Xresources by appending it | 747 | // very primitive support for ~/.Xresources by appending it | ||
748 | if ( QFile::exists( xResources ) ) | 748 | if ( QFile::exists( xResources ) ) | ||
749 | copyFile(tmpFile, xResources, true); | 749 | copyFile(tmpFile, xResources, true); | ||
750 | else | 750 | else | ||
751 | copyFile(tmpFile, homeDir + "/.Xdefaults", true); | 751 | copyFile(tmpFile, homeDir + "/.Xdefaults", true); | ||
752 | 752 | | |||
753 | // Export the Xcursor theme & size settings | 753 | // Export the Xcursor theme & size settings | ||
754 | KConfigGroup mousecfg(KSharedConfig::openConfig( QStringLiteral("kcminputrc") ), "Mouse" ); | 754 | KConfigGroup mousecfg(KSharedConfig::openConfig( QStringLiteral("kcminputrc") ), "Mouse" ); | ||
755 | QString theme = mousecfg.readEntry("cursorTheme", QString()); | 755 | QString theme = mousecfg.readEntry("cursorTheme", QString("breeze_cursors")); | ||
756 | QString size = mousecfg.readEntry("cursorSize", QString()); | 756 | QString size = mousecfg.readEntry("cursorSize", QString("0")); | ||
meven: 0 is unintuitive, it is for "default"/autodetermined I guess. | |||||
757 | QString contents; | 757 | QString contents; | ||
758 | 758 | | |||
759 | if (!theme.isNull()) | 759 | if (!theme.isNull()) | ||
760 | contents = "Xcursor.theme: " + theme + '\n'; | 760 | contents = "Xcursor.theme: " + theme + '\n'; | ||
761 | 761 | | |||
762 | if (!size.isNull()) | 762 | if (!size.isNull()) | ||
763 | contents += "Xcursor.size: " + size + '\n'; | 763 | contents += "Xcursor.size: " + size + '\n'; | ||
764 | 764 | | |||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |
0 is unintuitive, it is for "default"/autodetermined I guess.