diff options
author | Mavridis Philippe <[email protected]> | 2023-12-21 19:35:28 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2023-12-25 17:35:38 +0200 |
commit | dcda00127ea03e99ca6253422624e2d3c2e62f3a (patch) | |
tree | 5c075a99343e39b335d7f51a168f58df8628fe0a /kxkb/kcmlayout.cpp | |
parent | 94cec968a8bdb4c51fe68c814b1d864fe887e65e (diff) | |
download | tdebase-dcda00127ea03e99ca6253422624e2d3c2e62f3a.tar.gz tdebase-dcda00127ea03e99ca6253422624e2d3c2e62f3a.zip |
KXkb: add keyboard layout notification
Signed-off-by: Mavridis Philippe <[email protected]>
(cherry picked from commit 7c724a49212a9ffdf42381d99648f15457867787)
Diffstat (limited to 'kxkb/kcmlayout.cpp')
-rw-r--r-- | kxkb/kcmlayout.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 |