diff options
author | Mavridis Philippe <[email protected]> | 2023-12-21 19:35:28 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2023-12-25 16:38:10 +0200 |
commit | 7c724a49212a9ffdf42381d99648f15457867787 (patch) | |
tree | dcd3a0f16c58858979650c6d9dc7a5ec42849e1a /kxkb/kcmlayout.cpp | |
parent | 9647d4c7ff182c1fadffb9c6218bc00132fe682e (diff) | |
download | tdebase-7c724a49212a9ffdf42381d99648f15457867787.tar.gz tdebase-7c724a49212a9ffdf42381d99648f15457867787.zip |
KXkb: add keyboard layout notification
Signed-off-by: Mavridis Philippe <[email protected]>
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 |