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/kstandardshortcut_p.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/gui/kstandardshortcut_p.h (limited to 'src/gui/kstandardshortcut_p.h') diff --git a/src/gui/kstandardshortcut_p.h b/src/gui/kstandardshortcut_p.h new file mode 100644 index 00000000..f4b0a0fb --- /dev/null +++ b/src/gui/kstandardshortcut_p.h @@ -0,0 +1,20 @@ +/* + This file is part of the KDE libraries + SPDX-FileCopyrightText: 1997 Stefan Taferner + SPDX-FileCopyrightText: 2000 Nicolas Hadacek + SPDX-FileCopyrightText: 2001, 2002 Ellis Whitehead + + SPDX-License-Identifier: LGPL-2.0-or-later +*/ + +#ifndef KSTANDARDSHORTCUT_P_H +#define KSTANDARDSHORTCUT_P_H + +#include "kstandardshortcut.h" + +namespace KStandardShortcut +{ +void initialize(StandardShortcut id); +} + +#endif -- cgit v1.2.1