X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Fmultilineedit.cpp;h=a79ef28d4c6a991af10a618ded225822b3c77b3f;hb=d7832127ff8412b09d9fa4e56570d8a890abcbbe;hp=5b81ab32d279a02bf088f400852658356f05ca8c;hpb=b819fa39f3053f047f5389456570d00020051688;p=quassel.git diff --git a/src/uisupport/multilineedit.cpp b/src/uisupport/multilineedit.cpp index 5b81ab32..a79ef28d 100644 --- a/src/uisupport/multilineedit.cpp +++ b/src/uisupport/multilineedit.cpp @@ -151,6 +151,14 @@ QSize MultiLineEdit::minimumSizeHint() const { return sizeHint(); } +void MultiLineEdit::enableSpellCheck(bool enable) { +#ifdef HAVE_KDE + setCheckSpellingEnabled(enable); +#else + Q_UNUSED(enable) +#endif +} + void MultiLineEdit::historyMoveBack() { addToHistory(text(), true); @@ -169,6 +177,9 @@ void MultiLineEdit::historyMoveForward() { showHistoryEntry(); else reset(); // equals clear() in this case + } else { + addToHistory(text()); + reset(); } }