X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;h=b0e61fd7244f389a2e36ec7cecd960136c94e104;hb=de8cb8bb24c3bfd5600726e99acccb080a5beb87;hp=f2d2a16da0aa16faa4ed21046f29e006c1e6f04c;hpb=96f0f3669892d71fa4a9f1bd10dd71b469bde53d;p=quassel.git diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index f2d2a16d..b0e61fd7 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -49,7 +49,7 @@ TabCompleter::TabCompleter(MultiLineEdit *_lineEdit) // apparently, using tab as an Action shortcut in an input widget is unreliable on some platforms (e.g. OS/2) _lineEdit->installEventFilter(this); ActionCollection *coll = GraphicalUi::actionCollection("General"); - Action *a = coll->addAction("TabCompletionKey", new Action(tr("Tab completion"), coll, + QAction *a = coll->addAction("TabCompletionKey", new Action(tr("Tab completion"), coll, this, SLOT(onTabCompletionKey()), QKeySequence(Qt::Key_Tab))); a->setEnabled(false); // avoid catching the shortcut } @@ -152,7 +152,7 @@ void TabCompleter::complete() _lastCompletionLength += _nickSuffix.length(); } else if (s.addSpaceMidSentence()) { - _lineEdit->insert(" "); + _lineEdit->addCompletionSpace(); _lastCompletionLength++; }