aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2016-05-19Avoid skipping KAuthorized checkDavid Edmundson
Previously, if a .desktop file had a TryExec and a X-KDE-AuthorizeAction entry we would skip the KAuthorized check. This is clearly wrong. REVIEW: 127948
2016-05-11Remove typedef copyStephen Kelly
The typedef is copied here to avoid including the header that contains it. However, this confuses sip if binding definitions are generated from the C++ headers. Simply inline the typedef instead.
2016-04-27Make kdeglobals file path static as intendedAleix Pol
2016-04-27Remove unneeded ifdefs to compare pathsAleix Pol
Just keep the setting once and always use QString::compare instead of using QString::operator== or QString::compare depending on the platform.
2016-04-27Remove unused variableAleix Pol
2016-04-17core/ksharedconfig.cpp - pedanticAllen Winter
2016-03-28Add support for get QStandardPaths locations.Sandro Knauß
Inside desktop files we want to reach also data, cache and config home to create files inside these directories. REVIEW: 127462 CHANGELOG: Add support for get QStandardPaths locations inside desktop files.
2016-02-19KConfigIniBackend: Fix expensive detach in lookupKevin Funk
Differential Revision: https://phabricator.kde.org/D990
2016-01-20SVN_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"
2016-01-02Qt 5.3 is required, remove code for < 5.3David Faure
2015-12-29Remove unused variable in KConfigPrivateMatthew Dawson
This seems to be left over from KDE 3.5 times, and isn't referenced anywhere in the code. Since its a private header, just remove. Found by Coverity, issue 1175531. REVIEW: 126555
2015-12-23Fix some Clazy warningsImran Tatriev
2015-11-21SVN_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"
2015-11-04SVN_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"
2015-10-20use KDE_INSTALL_FULL_ variant, so there is no ambiguityRex Dieter
2015-10-17Allow KConfig to use resources as fallback config filesChristoph Cullmann
Fallback will be :/kconfig/ REVIEW: 125598
2015-10-05Minor optimizationsAlbert Astals Cid
Ran the clazy tool (http://www.kdab.com/use-static-analysis-improve-performance/) Mostly QStringLiteral/QLatin1String additions A few const & additions to non public methods Compiles, test pass REVIEW: 125106
2015-09-07[KDesktopFile] add readMimeTypesKai Uwe Broulik
CHANGELOG: KDesktopFile can now read mime types specified in the MimeType field REVIEW: 124746
2015-08-19Rename private class to avoid exporting it accidentallyMontel Laurent
2015-08-19Fix pedanticMontel Laurent
2015-08-16Rename private class to avoid exporting it accidentallyMontel Laurent
2015-08-12Minimize calls to expensive QStandardPaths::locateAll()Sergio Martins
It's called a lot at startup as shown by profiling. heaptrack also complains it does many heap allocations, so cache it. REVIEW: 124199
2015-08-01Upgrade Qt version requirement to 5.3David Faure
2015-07-27Don't recommend to use deprecated APIAleix Pol
REVIEW: 124467
2015-04-07SVN_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"
2015-04-04KConfig: fix using KSharedConfig in global object destructor.David Faure
ksharedconfig_in_global_object.cpp is now in kdelibs4 too (where it works) and reproduces Albert's KgDifficulty testcase. CHANGELOG: fix assert when using KSharedConfig in a global object destructor. REVIEW: 122232
2015-03-20mini-optimization by fixing defects found by coverity and using ↵Nick Shaforostoff
QByteArrayLiteral
2015-02-25not necessary to have virtual + Q_DECL_OVERRIDEMontel Laurent
2015-02-19Avoid code path that leaves local config lockedDavid Edmundson
The local config file gets locked on line 415, if we return early we need to unlock it. REVIEW: 122549 BUG: 344032
2015-02-16at KDesktopFile::locateLocal, correct the expression of the if statement ↵Guy Maurel
which was always TRUE REVIEW: 122445
2015-02-12Use Q_DECL_OVERRIDE where possibleKevin Funk
With -Winconsistent-missing-override (Clang), headers from KConfig are throwing a lot of warnings. REVIEW: 122539
2015-01-10Update installation variables.Alex Merry
2015-01-07Fix KCoreConfigSkeleton when toggling a value with saves in betweenAlbert Astals Cid
REVIEW: 121838 Acked by Matthew Dawson
2014-12-25Simplify condition, endsWith is clever enough.David Faure
2014-12-14SVN_SILENT made messages (.desktop file)l10n daemon script
2014-11-27Fix link to KSharedConfig::openConfig in apidocHeiko Becker
KSharedConfig has been ported to QStandardPaths in KF5. REVIEW: 121272
2014-09-205.3, not 5.2Aaron Seigo
2014-09-19provide a getter for OpenFlagsAaron Seigo
2014-09-18Move diagnostic pragmas outside/around functions.Nicolás Alvarez
gcc 4.5 doesn't support "#pragma GCC diagnostic" inside functions. Apparently it also doesn't support "#pragma GCC diagnostic push/pop", but it doesn't fail for that, so meh.
2014-09-11Add class description to KConfigBase.Matthew Dawson
Add a class description to KConfigBase so that KConfig::sync can link to KConfigBase::sync. Also makes KConfigBase easier to find and understand.
2014-07-29Fix KConfig compilationDavid Gil
KConfig fails building because QBasicAtomicInt is being treated as an int. REVIEW: 119417
2014-07-12SVN_SILENT made messages (.desktop file)l10n daemon script
2014-07-01Fix reading of XDG style semicolon separated lists with escaped ';'Alex Richardson
Previously the warning "Invalid escape sequence "\;"." would appear and "\;" was replaced with just the backslash as is done for all unrecognized escape sequences. Keep both characters so that readXdgListEntry() works with values containing semicolons REVIEW: 119074
2014-07-01Remove register keyword since it is deprecatedAlex Richardson
2014-07-01KSharedConfig: move mainConfig and wasTestEnabled to the thread storage.David Faure
This enables the mainConfig optimization in all threads, and ensures the user warning only happens in the main thread. The test-mode-enabled logic is only really useful in the main thread, but it's simpler to just do it in all threads. REVIEW: 118985
2014-06-28Fix data race on static int.David Faure
2014-06-23SVN_SILENT made messages (.desktop file)l10n daemon script
2014-06-22Make KSharedConfig thread-safeDavid Faure
... by having a different list of shareable objects per thread. REVIEW: 118739
2014-06-21Fix reading of entries for language/country combinationsMartin Gräßlin
This fixes a regression introduced in 988f09bb051dca0437ecec431ee44ed5b4a560d8. The mentioned commit ensures that if the locale is e.g. "de_DE" the entry "de" will be used. But this breaks if there is a translation for another country. E.g. for "de_CH" it would also pick the "de" entry. This change now operates on both just the language code and the locale. If an entry with the language code is present it will be picked. If another entry with the exact locale is found it will be overwritten. Modifiers are not supported as this is currently missing in QLocale. REVIEW: 118692
2014-06-19Optimize KConfigIniBackend::parseConfig by reducing allocations.Milian Wolff
Yet another awesome application of the Qt implicit sharing trick. Since config files often contain only few different keys and even value strings, we can share them. This reduces memory consumption and also speeds up parsing, as we do not have to allocate the duplicated strings, but can simply reuse the previous values. The most extreme case for this of my knowledge, is KatePart: katesyntaxhighlightingrc has more than 20k lines which triggered nearly 30k allocations on startup. With this patch applied, this value goes down dramatically. I added a simple static counter for the cache hit/miss ratio, which resulted in 5442 cache misses compared to 43624 cache hits across all KConfig files parsed by kwrite. REVIEW: 118587 This is a forward-port of b8aaeff128233cfaecf67899168887572589dde8.