aboutsummaryrefslogtreecommitdiff
path: root/autotests/CMakeLists.txt
AgeCommit message (Collapse)Author
2022-02-24Add KWindowStateSaverVolker Krause
This is basically the C++ counter-part to https://invent.kde.org/frameworks/kconfig/-/merge_requests/94 and allows to easily retrofit window size persistence on existing windows/ dialogs, replacing e.g. code like https://invent.kde.org/pim/pimcommon/-/blob/master/src/pimcommon/widgets/kpimprintpreviewdialog.cpp. This is a bit more complicated than one might expect, as KWindowConfig works with QWindows, but that's something freshly created QWidget windows/ dialogs don't have yet. Additionally, we are in a library here that doesn't depend on Qt::Widgets. To overcome this we move the widget-dependent code (basically just a call to QWidget::windowHandle()) to inline template code (and thus into the consumer), use std::function's type erasure to pass it into the library code, and an event filter on the widget to wait for the QWindow to become available.
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-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
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-05-27Avoid cmake variables and pass sources directly to macroFriedrich W. H. Kossebau
NO_CHANGELOG
2021-05-16GIT_SILENT: use qt_ macroLaurent Montel
2021-05-04Fix cmake warningLaurent Montel
"Policy CMP0115 is not set: Source file extensions must be explicit. Run "cmake --help-policy CMP0115" for policy details. Use the cmake_policy command to set the policy and suppress this warning. " We need to add file extension
2021-02-06Compile without implicit cast from ASCIIAhmad Samir
NO_CHANGELOG
2017-10-26Don't build the kconfig_compiler tests when crosscompilingAleix Pol
Summary: We will be using an external version of it in practice Reviewers: #frameworks, davidedmundson Reviewed By: davidedmundson Tags: #frameworks Differential Revision: https://phabricator.kde.org/D8457
2017-08-04Allow to build KConfig without Qt5GuiVolker Krause
Summary: This is particularly useful for cross-compilation, where we only need the kconfig_compiler on the host system. Reviewers: #frameworks, apol, aacid Reviewed By: aacid Subscribers: aacid Tags: #frameworks Differential Revision: https://phabricator.kde.org/D6994
2017-08-01autotests: fix the failures I got here.David Faure
1) some of them can't run in parallel 2) kconfigskeletontest failed due to KSharedConfig being used under the scene (for a year now), and there's probably some QPA or widget style holding a ref (here, not in the CI). Indirectly, simply setting QStandardPaths::setTestModeEnabled(true) fixes this since KSharedConfig will then not share the instance with the non-test-mode-enabled instance.
2017-02-04Fix linking on Windows: don't link kentrymaptest to KConfigCore.David Faure
It's not needed, this is purely a test for the standalone KEntryMap class.
2017-02-04Don't export KEntryMapStephen Kelly
It is internal.
2017-02-04Don't link against kconfigdata.cpp in the kentrymaptest unit test.Matthew Dawson
Due to eab822e206207c51d47f0f0da109caacfbee4e2f, KEntryMap is now an exported type. As such it is no longer needed to link in kconfigdata.cpp into this test.
2015-10-17Allow KConfig to use resources as fallback config filesChristoph Cullmann
Fallback will be :/kconfig/ REVIEW: 125598
2015-06-15Unittest of reading config data from qt resourceSune Vuorela
REVIEW: 124098
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
2014-06-21Adapt change to NAME_PREFIX behaviour in ecm_add_tests.Alex Merry
NAME_PREFIX now only changes the test name, not the target name.
2014-06-13Reorder TestsThomas Braxton
Some tests are testing underlying components, these should be tested before testing the components that depend on them. REVIEW: 118680
2014-05-10Revert "adapt to ECMAddTests change"Alex Richardson
This reverts commit 88c9a9664e99b639df4cde2be22dbe44df228879.
2014-05-10adapt to ECMAddTests changeAlex Richardson
2014-05-07Use ecm_add_test(s) instead of own macroAlex Richardson
This also fixes running 'nmake test' on Windows.
2014-03-13Normalize vars to avoid odd bugs: QT_REQUIRED_VERSION => REQUIRED_QT_VERSIONAurélien Gâteau
2014-01-15Improve dependency specifications.Michael Palimaka
QtTest and QtConcurrent are only required for autotests, so no need to find them unconditionally. QtWidgets is not actually used - QtGui is instead. REVIEW: 114962
2014-01-13Make Qt5Test an optional dependencyAlex Richardson
It is only needed for building the autotests
2013-12-18Move kconfig code to the root directory.Jenkins CI