From 820dc0a553e50cc4560733d43fca2674a61d43b3 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Thu, 13 Jan 2022 10:04:13 +0100 Subject: Introduce StandardShortcutWatcher to watch for runtime changes 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 --- src/gui/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/CMakeLists.txt') diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 2136ec9f..403b0367 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -9,6 +9,7 @@ target_sources(KF5ConfigGui PRIVATE kconfigloader.cpp kconfigskeleton.cpp kstandardshortcut.cpp + kstandardshortcutwatcher.cpp kwindowconfig.cpp ) @@ -37,6 +38,7 @@ ecm_generate_headers(KConfigGui_HEADERS KConfigLoader KConfigSkeleton KStandardShortcut + KStandardShortcutWatcher KWindowConfig REQUIRED_HEADERS KConfigGui_HEADERS @@ -60,6 +62,7 @@ if (PythonModuleGeneration_FOUND) kconfigloader.h kconfigskeleton.h kstandardshortcut.h + kstandardshortcutwatcher.h kwindowconfig.h ) endif() -- cgit v1.2.1