aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-07-27Don't recommend to use deprecated APIAleix Pol
REVIEW: 124467
2015-07-27Don't generate deprecated codeAleix Pol
::usrWriteConfig is deprecated, use ::usrSave as recommended by the documentation. REVIEW: 124467
2015-07-02Remove compiler warning about initialization of sub object.Milian Wolff
2015-06-24Mark message() as WARNINGAleix Pol
As recommended by Alex Merry CCMAIL: alex.merry@kde.org
2015-06-23Install kconfig_compiler into libexecAleix Pol
This will make it end up in a platform-dependent prefix (i.e. /usr/lib64, /usr/lib/arm-linux-gnueabihf, etc) rather than /usr/bin, making it possible to have different kconfig_compiler versions installed, useful for cross-compilation. REVIEW: 124138
2015-06-22Support translation domain in 'kde' translation systemChusslove Illich (Часлав Илић)
In applications translations can be looked up in the globally set translation domain, but in libraries it is necessary to link every i18n call to the library's own translation domain. A new code generation option TranslationDomain= is added to enable this. It has effect only if TranslationSystem=kde is set. Added unit tests to check generated translation calls. CHANGELOG: New code generation option TranslationDomain=, for use with TranslationSystem=kde; normally needed in libraries. REVIEW: 123872
2015-06-21Make it possible to use kconfig_compiler from different sourcesAleix Pol
This way we can specify the used tooling targets to be used, useful if we're cross-compiling, since we get to use the tooling that runs in the local platform. REVIEW: 124104
2015-05-29Prevent crash if QWindow::screen() is nullAleix Pol
Reviewed by Handa
2015-05-12fix missing exportDavid Faure
2015-05-11Add KConfigGui::setSessionConfig()Stefan Becker
When the application receives a saveState signal it needs to replace the current KConfig object with a new one based on the QSessionManager information. Add a new interface that accepts the new session id and key. BUG: 346768 REVIEW: 123705
2015-05-02Fix kconf_update for spaces in pathsDavid Faure
(CI says it happens on OSX) Unittest it on Linux by exporting XDG_DATA_HOME with a space in it. CCMAIL: kde-mac@kde.org
2015-04-26Generate Q_PROPERTY entries out of KConfigSkeleton classesAleix Pol
It adds a configuration setting that makes it possible to generate Q_PROPERTY instances out of each variable exposed by the configuration class. Especially useful when it comes to exposing these classes to QtQuick interfaces. REVIEW: 123367 CHANGELOG: Generate QML-proof classes using the kconfigcompiler
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-22Initialize mParamMax coverty report 1289403Montel Laurent
2015-03-20mini-optimization by fixing defects found by coverity and using ↵Nick Shaforostoff
QByteArrayLiteral
2015-03-17Allow to generate qloggingcategories support.Montel Laurent
Add new variable to specify it in *.kcfgc : "CategoryLoggingName" CHANGELOG: Allow to generate file with qloggingcategories support. REVIEW: 122931
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-14Revert "Revert the SIC in commit 915976c1238be811f169eab1b02f7e8dad6410e0."Matthew Dawson
This reverts commit 9eee15917e01a89d937d1cba2eebbe9d65daeb72. As agreed with David Faure, we are going to leave this change in place for 5.7 and see what happens. CCMAIL: faure@kde.org CHANGELOG: Reverts previous commit, both can be left out of the changelog.
2015-02-14Revert the SIC in commit 915976c1238be811f169eab1b02f7e8dad6410e0.Matthew Dawson
On further reflection, introducing a SIC to fix the bug is not ideal. I'm working on something that will address the underlying bug, but I didn't have it in time for 5.7. The versioning behaviour is left, as I do want it to exist for the future. This only reverts the mandatory versioning of files to avoid the compatibility break. CHANGELOG: Undo 915976c123, which never saw a release, enough to avoid the SIC.
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-02-03skip empty partsMarco Martin
when parsing the default value for string lists, skip empty parts also, an empty string means an empty list (not a list containing an empty string)
2015-01-17Add missing QIODevice includeHrvoje Senjan
Fixes build with Qt 5.5
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
2015-01-06Don't upgrate config file with upd file from kde4.Montel Laurent
This patch is necessary because: When we use kf5 + kde4 application, kconf_update which launchs at the start when we launch kde. But it will migrate some config file, for example it will show that we need to migrate konversation so it will create a konversationrc in .config/ But when we launch konversation there is a kdelibs4migrator which wants to migrate settings and config in .config but it shows a konversationrc in .config so it will never migrate and we will lose all settings. So we can force to remove all .upd in kf5 but it will not fix problem during migration or when we have kde4 application install in same directory as kf5. So now I force for each upd file to have a "Version=5" so kconf_update (kf5) will migrate just kf5 upd file and it will fix my bugs. REVIEW: 121797 CHANGELOG: Now kconf_update doesn't process upd file from kde4. We need to add "Version=5" in top of the upd file otherwise it will be skipped.
2015-01-04fix missing KF5_ prefix for INSTALL_DEFAULT_ARGSChristoph Cullmann
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-11-02Define <source_files_var> for ecm_create_qm_loaderBurkhard Lück
REVIEW:120947
2014-09-205.3, not 5.2Aaron Seigo
2014-09-19use the same open flags as the group handed inAaron Seigo
this way we actually get the same shared pointer and thus does not require a sync() call on the config object to get the right values REVIEW:120283
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-13Use const char[] instead of const char*, saves 8 byte in .data each.Volker Krause
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-08-31Add documentation onto KWindowConfig namespaceDavid Edmundson
This is needed so doxygen includes the far more useful documentation on the contained methods.
2014-08-10Allow translations to have context again.Matthew Dawson
Switch to using QT_TRANSLATE_NOOP3 so that context information can be given for actions, allowing the translators to do better translations. BUG: 337979 FIXED-IN: 5.2.0 REVIEW: 119577
2014-07-29Fix KConfig compilationDavid Gil
KConfig fails building because QBasicAtomicInt is being treated as an int. REVIEW: 119417
2014-07-22allow the extraction of the shortcut names for translationLukáš Tinkl
using Qt-standard QT_TRANSLATE_NOOP instead of a fake I18N_NOOP2
2014-07-21create and install the QM loaderLukáš Tinkl
like all the other Qt-based modules do
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