aboutsummaryrefslogtreecommitdiff
path: root/src/kreadconfig/kwriteconfig.cpp
AgeCommit message (Collapse)Author
2021-12-06Allow kreadconfig/kwriteconfig to access the root groupJonathan Marten
The default group if "--group" is not specified is "KDE". Trying to specify a null group name causes an assert in KConfigGroup::groupImpl(). Explicitly detect and give an error message for a null group name. Mention in the help text that "<default>" can be used to specify the root group - this string comes from KConfigGroupPrivate::name(). Add the missing parser.addHelpOption() for kreadconfig. Update the help strings. Apply clang-format changes. I18N:
2021-08-13clang-tidy: one declaration per line; braces around statementsAhmad Samir
clang-tidy checks: readability-isolate-declaration and readability-braces-around-statements KF task: https://phabricator.kde.org/T14729 GIT_SILENT
2021-03-06Optimise string operations a bitAhmad Samir
- Use QString::arg(Args...) instead of .arg().arg() - Use QLatin1String for string comparisons, should be faster - Use QLatin1String::arg() for better readability - Add the comment dfaure suggested in the MR, to explain why it's '2%' then '%1' in a QString().arg().arg() NO_CHANGELOG
2021-02-22Fix formatting in a couple of places after running clang-formatAhmad Samir
NO_CHANGELOG
2021-02-22Run clang-format on all cpp/h filesAhmad Samir
NO_CHANGELOG
2021-02-06General code cleanupAhmad Samir
Fix some clazy warnings, and some other minor code optimisations. NO_CHANGELOG
2020-03-22KConfig: Convert to SPDX license statementsAndreas Cord-Landwehr
Summary: Convert license headers to SPDX statements and add license files as required by REUSE specification. Reviewers: cgiboudeaux Reviewed By: cgiboudeaux Subscribers: ognarb, cgiboudeaux, kde-frameworks-devel Tags: #frameworks Maniphest Tasks: T11550 Differential Revision: https://phabricator.kde.org/D27601
2019-11-14kwriteconfig: add delete optionEon S. Jeon
Summary: Add a simple delete option to kwriteconfig. A possible usecase of this option is to delete unused shortcut bindings. Reviewers: #frameworks, davidre, dfaure, meven, cfeck, davidedmundson Reviewed By: davidedmundson Subscribers: davidedmundson, ngraham, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D25307
2019-03-03[Kconfig] Compile without foreachLaurent Montel
Summary: compile without foreach Test Plan: Unittest Ok as previously Reviewers: dfaure Reviewed By: dfaure Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D19326
2015-12-23Fix some Clazy warningsImran Tatriev
2014-04-26Adopt kreadconfig and kwriteconfig to kconfigAleix Pol
Drop KCoreAddons and KI18n dependency. Add a bunch of QStringLiteral()
2014-04-26Port kreadconfig to KF5Aleix Pol
2014-04-26Port kwriteconfig to KF5Aleix Pol
2014-04-26Forwardport of commit 1121161Nicolas Lécureuil
svn path=/trunk/KDE/kdebase/runtime/; revision=1121163
2014-04-26krazy fixesJohn Layt
svn path=/trunk/KDE/kdebase/runtime/; revision=1067076
2014-04-26support nested groups.Oswald Buddenhagen
svn path=/trunk/KDE/kdebase/runtime/; revision=822957
2014-04-26KConfig* API overhaul. only cosmetics, so don't panic.Oswald Buddenhagen
KConfigBase: - remove separator argument from list entry reading/writing functions - introduce {read,write}XdgListEntry() - kill readPathListEntry(), add readPathEntry() overload instead. the default value is not optional any more, as it defines the return type. this is consistent with the readEntry() functions. - rename clean() => markAsClean(), remove rollback() - rename ConfigState => AccessMode, getConfigState() => accessMode() - rename {entry,group}IsImmutable() => is{Entry,Group}Immutable() - remove NLS alias to Localized KConfig: - remove setGroup() & group() - reshuffle OpenFlag enum, introduce NoCascade for symmetry - remove setExtraConfigFiles() alias to addConfigSources() KConfigGroup: - inherit KConfigBase::deleteGroup() overloads - make convertToQVariant() private, it will probably change somehow - KConfig & KConfigGroup: deprecate entryMap() - remove bogus declarations: KConfigGroup::setReadDefaults(), KConfig::readEntryUntranslated() - apidox - reshuffle the declarations in the headers svn path=/trunk/KDE/kdebase/runtime/; revision=728852
2014-04-26Merge the KConfig branch. This are the 3 main modules (+kdeadmin), which are ↵Andreas Pakulat
needed now because friday is the last BC day. The rest of the modules will follow as fast as my laptop allows. svn path=/trunk/KDE/kdebase/runtime/; revision=721704
2014-04-26Interface modifications to KCmdLineArgs, KAboutData and KComponentData; BIC, ↵Chusslove Illich
SIC. Most of the depending code has been auto-converted to new API. svn path=/trunk/KDE/kdebase/runtime/; revision=682259
2014-04-26Remove not necessary includeLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=656776
2014-04-26setGroup -> KConfigGroupDavid Faure
svn path=/trunk/KDE/kdebase/runtime/; revision=635573
2014-04-26merged kconfiggroup_port branchStephan Kulow
svn path=/trunk/KDE/kdebase/runtime/; revision=635490
2014-04-26merge the kinstance-redesign branch back to trunk.Matthias Kretz
svn path=/trunk/KDE/kdebase/khelpcenter/; revision=628276
2014-04-26SVN_SILENT Correcting the encoding in KDE source codeThiago Macieira
svn path=/trunk/KDE/kdebase/khelpcenter/; revision=485906
2014-04-26Compile without qt3supportLaurent Montel
svn path=/trunk/KDE/kdebase/src/kreadconfig/; revision=470530
2014-04-26ByeBye Q3CStringLaurent Montel
svn path=/trunk/KDE/kdebase/src/kreadconfig/; revision=456190
2014-04-26svn merge svn+ssh://coolo@svn.kde.org/home/kde/trunk/KDE/kdebase@438057 ↵Stephan Kulow
svn+ssh://coolo@svn.kde.org/home/kde/branches/work/kde4/kdebase . I couldn't resolve one kicker conflict that results from different development directions, so I rely on Aaron to sort it out - the file is commited with conflicts svn path=/trunk/KDE/kdebase/kioslave/; revision=439627
2014-04-26Handle "path" as distinct typeWaldo Bastian
svn path=/trunk/kdebase/src/kreadconfig/; revision=361006
2014-04-26Fix mem leak (delete config before to close application)Laurent Montel
svn path=/trunk/kdebase/src/kreadconfig/; revision=268828
2014-04-26kwriteconfig by Luis Pedro Coelho <luis_pedro@netcabo.pt> A little brother ↵Waldo Bastian
for kreadconfig. svn path=/trunk/kdebase/src/kreadconfig/; revision=208341