aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-05GIT_SILENT Commit translations from kconfigv5.91.0-rc1v5.91.0l10n daemon script
2022-02-05GIT_SILENT Upgrade ECM and KF version requirements for 5.91.0 release.l10n daemon script
2022-02-04Fix build on WindowsDavid Redondo
Since we are not building the library but the source files we don't want the macro to expand to __declspec(dllimport).
2022-02-01Don't use saveShortcut for setting up testsDavid Redondo
It will trigger side effects like triggering the dbus signal which depending on the timing may be delivered only in the next test case causing an unexpected change signal emission.
2022-01-24Fix build on WindowsAlbert Astals Cid
2022-01-24Introduce StandardShortcutWatcher to watch for runtime changesDavid Redondo
Currently an application needs to be restarted before it can see any changes made to the standard shortcut configuration. To notify about changes a new class is introduced that looks for those changes using KConfigWatcher and also updates the global map. CCBUG:426656
2022-01-22Make singleton teardown work with Qt6 as wellVolker Krause
In Qt6 the Q_GLOBAL_STATIC will already report to be null while it is in the process of being deleted, we therefore cannot access it anymore from destruction code path as we did before. This problem is hit for example by the Breeze style, making all 6 based widgets applications crash on exit without this.
2022-01-15Add KF*/KConfig to the interface include directoriesAhmad Samir
So that #include <kconfig_version.h> still works after changing its location in the previous commit. NO_CHANGELOG
2022-01-15Install kconfig_version.h in /usr/include/KF5/KConfig/Ahmad Samir
Instead of /usr/include/KF5/kconfig_version.h. For more details see: https://invent.kde.org/frameworks/kservice/-/merge_requests/79 GIT_SILENT
2022-01-15Utilize ECMDeprecationSettings to manage deprecate Qt/KF APIAlexander Lohnau
Task: https://phabricator.kde.org/T15109
2022-01-08GIT_SILENT Upgrade KF version to 5.91.0.l10n daemon script
2022-01-07Add CI qt6 supportLaurent Montel
2022-01-04Add Samir variable fix tooLaurent Montel
2022-01-03Use KDE_INSTALL_FULL_LIBEXECDIR_KFLaurent Montel
2022-01-02Extract isNonDeletedKey() helper functionIgor Kushnir
The eliminated duplication of the composite condition was error-prone and less readable.
2022-01-02Look for entries with common group prefix in entryMap's subrangeIgor Kushnir
entryMap is ordered by the group name first. So there is no need to iterate over the entire map to process entries whose group names start with some prefix. Find the group name prefix's lower bound and iterate over the proper subrange instead. This should be much faster, especially if the subrange's size is much less than the entryMap's size. Adjust isGroupOrSubGroupMatch() helper function to assert the extracted startsWith() condition instead of rechecking it. Pass KEntryMapConstIterator in place of the group name to this function in order to simplify its callers' code. Reuse this helper function in KConfigPrivate::copyGroup().
2022-01-02Improve the documentation of KConfigPrivate::allSubGroups()Igor Kushnir
2022-01-02KConfigPrivate::copyGroup: remove redundant entryMap lookupIgor Kushnir
2022-01-02groupList: convert each group name from UTF-8 onceIgor Kushnir
Usually multiple key entries belong to each group. Before this commit every key entry's group name was converted from UTF-8 to UTF-16 and then inserted into a set. With this commit every key entry's group name is inserted as a std::string_view into a set, and only unique group names are converted to UTF-16 in the end. This should improve performance.
2022-01-02Exclude deleted groups from groupList()Igor Kushnir
This commit is an alternative to the earlier incorrect and reverted b3dc879e8b108c26c929bfbe551bcdf77f140e94. That commit contained several mistakes and an algorithmic complexity increase: 1) the added conditions were inverted: should have been `hasNonDeletedEntries` (without `!`); 2) KConfigPrivate::groupList() passed group instead of key.mGroup to hasNonDeletedEntries(); 3) The complexity of hasNonDeletedEntries() is O(entryMap.size()). Calls to this function were added into loops that iterated entryMap.size() times. So the overall complexity of groupList() increased from linear to quadratic. This fix collects `mGroup`s of non-deleted key entries instead of `mGroup`s of group entries. The number of key entries can be much greater than the number of group entries, so this fix hurts performance. But at least the algorithmic complexity of groupList() stays linear. Future commits can optimize the loops and make them almost as fast or even faster than before this fix. The `!key.mKey.isNull() && !entryMapIt->bDeleted` checks added in this commit are consistent with the check in KConfigPrivate::hasNonDeletedEntries(). KConfig::hasGroupImpl() forwards its argument to hasNonDeletedEntries() with the following comment: // No need to look for the actual group entry anymore, or for subgroups: // a group exists if it contains any non-deleted entry. BUG: 384039 FIXED-IN: 5.90
2022-01-02groupList: don't copy unnecessarily; add constIgor Kushnir
2022-01-01GIT_SILENT Upgrade ECM and KF version requirements for 5.90.0 release.l10n daemon script
2021-12-27kconfig_compiler/CMakeLists.txt - use CMAKE_CROSSCOMPILINGAllen Winter
use the CMake variable CMAKE_CROSSCOMPILING to detect when cross-compiling instead of CMAKE_TOOLCHAIN_FILE. CMAKE_TOOLCHAIN_FILE can be set when not cross-compiling
2021-12-18Complete fixing the Windows CIAhmad Samir
2021-12-17Fix build on WindowsAhmad Samir
Both GCC and Clang don't require a const integral value to be captured explicitly to be used in a lambda, but of course one compiler thinks otherwise... Thanks to Ömer Fadıl Usta for the heads up. GIT_SILENT
2021-12-16WIP: Change the build system to enable building with Qt 6Ahmad Samir
This was built with: -DQT_MAJOR_VERSION=6 \ -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=5.90.0 \ -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055a00 Move the include(KDEInstallDirs) call before the first find_package(Qt*, the former is what auto-detects the Qt version, and defaults to 5. This is needed to be able to build against Qt5 by default. All unit tests still pass.
2021-12-15Minor code clean upAhmad Samir
NO_CHANGELOG
2021-12-15SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-13GIT_SILENT Upgrade KF version to 5.90.0.l10n daemon script
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-12-04GIT_SILENT Upgrade ECM and KF version requirements for 5.89.0 release.l10n daemon script
2021-12-03Fix KDesktopFileTest::testIsAuthorizedDesktopFile running on gitlab CIAlbert Astals Cid
2021-12-02GIT_SILENT: add missing licencesLaurent Montel
2021-11-29SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-11-28SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-11-26KDesktopFile: deprecate resource()Ahmad Samir
It is redundant since the parent class, KConfig, has locationType(). Add some API docs for fileName(), even though one could use KConfig::name() from the parent class, I think this would be confusing given a .desktop file has a Name= entry, so fileName() is less ambiguous. These seem to be leftovers from a previous refactor that happened a long time ago.
2021-11-26README.dox: GENERATE_MOC is required for signalsDawid Wróbel
2021-11-23Use innerVarStr instead of varStr for choicesTomaz Canabrava
2021-11-23Add the enum group test to the kconfigcompiler_testTomaz Canabrava
Making sure that it runs and not segfaults
2021-11-23Add a proper test for the enumms within groupsTomaz Canabrava
2021-11-23Add missing changesTomaz Canabrava
2021-11-23unbreak kconfig with enums, mutators and properties.Tomaz Canabrava
2021-11-23Demonstrate build failure with kconfig generated codeTomaz Canabrava
2021-11-22Copy ConfigPropertyMap from KDeclarative to new KConfig QML moduleAlexander Lohnau
This way consumers which want to use the ConfigPropertyMap don't have to pull in KDeclarative's entire dependency tree. Also we can remove the automatic saving of the config, previously this was opt-out - which makes is difficult to deprecate anything. This way the API design is also more clear, since the object only takes care of exposing the data to QML. The writing has to be done manually, which makes more sense anyways when we have the notify opt-in. As discussed on the KF6 weekly thread, an optional QML submodule is seen as the best way to handle the QML dependency. Task: https://phabricator.kde.org/T12131 Relates to https://phabricator.kde.org/T12126, after his change the KDeclarative stuff can be deprecated. Because we don't register the property map in any QML plugin, there is no conflict in duplicating and modifying it now.
2021-11-14Avoid some allocations by QString/QByteArray's toLower()Friedrich W. H. Kossebau
NO_CHANGELOG
2021-11-13GIT_SILENT Upgrade KF version to 5.89.0.l10n daemon script
2021-11-02GIT_SILENT: add missing overrideLaurent Montel
2021-10-20GIT_SILENT Remove a bit of dead codeAlexander Lohnau
2021-10-15Exclude new enum-overload from python bindings buildAlexander Lohnau
2021-10-13Enforce KAuthorized enums being not 0Alexander Lohnau
This will output a warning if an invalid value is requested. The goal is to avoid implicit conversion which might result in a zero-int value.