From 7c724a49212a9ffdf42381d99648f15457867787 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 21 Dec 2023 19:35:28 +0200 Subject: KXkb: add keyboard layout notification Signed-off-by: Mavridis Philippe --- kxkb/kcmlayout.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kxkb/kcmlayout.cpp') diff --git a/kxkb/kcmlayout.cpp b/kxkb/kcmlayout.cpp index 3744f5a1c..7b59e888b 100644 --- a/kxkb/kcmlayout.cpp +++ b/kxkb/kcmlayout.cpp @@ -150,6 +150,9 @@ LayoutConfig::LayoutConfig(TQWidget *parent, const char *name) connect( widget->chkEnableSticky, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(changed())); connect( widget->spinStickyDepth, TQT_SIGNAL(valueChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(changed())); + connect(widget->chkEnableNotify, SIGNAL(toggled(bool)), SLOT(changed())); + connect(widget->chkNotifyUseKMilo, SIGNAL(toggled(bool)), SLOT(changed())); + widget->listLayoutsSrc->setColumnText(LAYOUT_COLUMN_FLAG, ""); widget->listLayoutsDst->setColumnText(LAYOUT_COLUMN_FLAG, ""); // widget->listLayoutsDst->setColumnText(LAYOUT_COLUMN_DISPLAY_NAME, ""); @@ -288,6 +291,9 @@ void LayoutConfig::initUI() { widget->spinStickyDepth->setEnabled(m_kxkbConfig.m_stickySwitching); widget->spinStickyDepth->setValue( m_kxkbConfig.m_stickySwitchingDepth); + widget->chkEnableNotify->setChecked(m_kxkbConfig.m_enableNotify); + widget->chkNotifyUseKMilo->setChecked(m_kxkbConfig.m_notifyUseKMilo); + updateStickyLimit(); widget->chkEnable->setChecked( m_kxkbConfig.m_useKxkb ); @@ -397,6 +403,9 @@ void LayoutConfig::save() m_kxkbConfig.m_stickySwitching = widget->chkEnableSticky->isChecked(); m_kxkbConfig.m_stickySwitchingDepth = widget->spinStickyDepth->value(); + m_kxkbConfig.m_enableNotify = widget->chkEnableNotify->isChecked(); + m_kxkbConfig.m_notifyUseKMilo = widget->chkNotifyUseKMilo->isChecked(); + m_kxkbConfig.save(); // We might need to unset previous hotkey options -- cgit v1.2.1