aboutsummaryrefslogtreecommitdiff
path: root/src/kreadconfig
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
2015-01-04fix missing KF5_ prefix for INSTALL_DEFAULT_ARGSChristoph Cullmann
2014-06-06Fix kreadconfig to only print help when it matters.Matthew Dawson
kreadconfig only needs to print help when a key is not given or when extra text is on the end of the command line. BUG: 335806
2014-05-02Add/fix message extraction for repo frameworks/kconfigBurkhard Lück
REVIEW:117842
2014-04-27Rename kreadconfig and kwriteconfig for coinstallability with kde-runtime4.Michael Palimaka
REVIEW: 117792
2014-04-26Adopt kreadconfig and kwriteconfig to kconfigAleix Pol
Drop KCoreAddons and KI18n dependency. Add a bunch of QStringLiteral()
2014-04-26Clean up preprocessor definitions and includes from the root CMakeLists.txtAleix Pol
Required stopping to use some kde4support headers that were magically injected.
2014-04-26Stop using kde4_add_executableAleix Pol
It's deprecated now
2014-04-26fix indentation, to some extentAleix Pol
2014-04-26Port kreadconfig to KF5Aleix Pol
2014-04-26Port kwriteconfig to KF5Aleix Pol
2014-04-26Port kstandarddirs usage with convert-kstandarddirs.plDavid Faure
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-26Use INSTALL_TARGETS_DEFAULT_ARGSLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=813305
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-26remove kde4_automoc()Allen Winter
svn path=/trunk/KDE/kdebase/runtime/; revision=685984
2014-04-26remove redundant project declarationsDirk Mueller
svn path=/trunk/KDE/kdebase/runtime/; revision=683437
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-26Fix generate po fileLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=682056
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-26FixLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=603871
2014-04-26Not GUI applicationLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=603865
2014-04-26Apply Alex patch (now we can use enable-final argument some module compiles ↵Laurent Montel
with enable-final now) As discussed with Alex it's not necessary to have program name into automoc macro svn path=/trunk/KDE/kdebase/workspace/kcontrol/locale/; revision=598290
2014-04-26Necessary to change KDE4_AUTOMOC macro to support enable-final argumentLaurent Montel
(there was not a dependancy between <name>_final.cpp file and moc generated files => moc files were never created) Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules I ported and tested all kde module (without enable-final argument, it compiles fines (test and program)) Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works) Regards svn path=/trunk/KDE/kdebase/workspace/kcontrol/locale/; revision=595039
2014-04-26Not necessary to link with kdeui kdecore is enoughLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=578143
2014-04-26Clean up Remove Makefile.am when all feature is implementedLaurent Montel
svn path=/trunk/KDE/kdebase/runtime/; revision=570224
2014-04-26Replace all bin by ${BIN_INSTALL_DIR}Laurent Montel
svn path=/trunk/KDE/kdebase/workspace/kcontrol/krdb/; revision=564549
2014-04-26Less warnings about deprecated functionsTim Beaulen
svn path=/trunk/KDE/kdebase/coreapps/; revision=544526
2014-04-26kde4_header and kde4_footer() are gone nowAlexander Neundorf
svn path=/trunk/KDE/kdebase/workspace/kcontrol/krdb/; revision=540215
2014-04-26-add FONTCONFIG_INCLUDE_DIR where required -cleanup the toplevel ↵Alexander Neundorf
CMakeLists.txt a bit -remove include_directories( CMAKE_CURRENT_SOURCE_DIR CMAKE_CURRENT_BINARY_DIR) in the subdirs, since this is done now automatically by cmake (the CMAKE_INCLUDE_CURRENT_DIR option -include_directories(KDE4_INCLUDES) in the toplevel CMakeLists.txt, so it doesn't have to be done in every subdir Alex svn path=/trunk/KDE/kdebase/workspace/kcontrol/krdb/; revision=539914
2014-04-26install executables with the install command instead of install_files/targets.André Wöbbeking
when you install scripts with install(PROGRAMS ...) they're installed executable. svn path=/trunk/KDE/kdebase/kdebugdialog/; revision=538074
2014-04-26removed duplicated messages targetsStephan Kulow
svn path=/trunk/KDE/kdebase/knetattach/; revision=536279
2014-04-26-use KDE4_INCLUDES instead of KDE4_INCLUDE_DIR and QT_INCLUDESAlexander Neundorf
Alex svn path=/trunk/KDE/kdebase/workspace/kcontrol/krdb/; revision=522728
2014-04-26Use set(CMAKE_INCLUDE_CURRENT_DIR ON) in the toplevel CMakeLists.txt, and we ↵David Faure
don't need to include ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} in each and every file anymore [only when subdirs might depend on that]. Also ran a script which makes sure that ${KDE4_INCLUDE_DIR} and ${QT_INCLUDES} are added -last-, so that installed headers are not preferred over (possibly more uptodate) local headers. svn path=/trunk/KDE/kdebase/workspace/kcontrol/krdb/; revision=521887
2014-04-26Now all kdebase compile with cmakeLaurent Montel
svn path=/trunk/KDE/kdebase/kdebugdialog/; revision=521468