X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.cpp;h=f490a670e4bb4e95a65c09eb39d5fabe929e6d43;hp=cd576273bf3df58e17be1ea1ecee32bd2ac49f85;hb=ff39958dd98644e73b7b77bdd986944134f78d09;hpb=5d8eb55a0e2a1ebd08bb2d173508b681a6245f6d diff --git a/src/qtui/inputwidget.cpp b/src/qtui/inputwidget.cpp index cd576273..f490a670 100644 --- a/src/qtui/inputwidget.cpp +++ b/src/qtui/inputwidget.cpp @@ -106,6 +106,9 @@ InputWidget::InputWidget(QWidget *parent) setEnableSpellCheck(s.value("EnableSpellCheck", false)); #endif + s.notify("EnableEmacsMode", this, SLOT(setEnableEmacsMode(QVariant))); + setEnableEmacsMode(s.value("EnableEmacsMode", false)); + s.notify("ShowNickSelector", this, SLOT(setShowNickSelector(QVariant))); setShowNickSelector(s.value("ShowNickSelector", true)); @@ -129,7 +132,7 @@ InputWidget::InputWidget(QWidget *parent) Action *activateInputline = coll->add("FocusInputLine"); connect(activateInputline, SIGNAL(triggered()), SLOT(setFocus())); activateInputline->setText(tr("Focus Input Line")); - activateInputline->setShortcut(tr("Ctrl+L")); + activateInputline->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L)); connect(inputLine(), SIGNAL(currentCharFormatChanged(QTextCharFormat)), this, SLOT(currentCharFormatChanged(QTextCharFormat))); } @@ -161,6 +164,10 @@ void InputWidget::setEnableSpellCheck(const QVariant &v) { ui.inputEdit->setSpellCheckEnabled(v.toBool()); } +void InputWidget::setEnableEmacsMode(const QVariant &v) { + ui.inputEdit->setEmacsMode(v.toBool()); +} + void InputWidget::setShowNickSelector(const QVariant &v) { ui.ownNick->setVisible(v.toBool()); }