From: Bas Pape Date: Sat, 20 Apr 2013 12:48:08 +0000 (+0200) Subject: QKeySequence's int operator is deprecated X-Git-Tag: 0.11.0~73 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=7e9fac6dac4771d9e9e7c2854eebe6a7a16eede0 QKeySequence's int operator is deprecated operator int returns the first key in the sequence, so just use that one directly. --- diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index 40a49294..9a834169 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -179,7 +179,7 @@ bool TabCompleter::eventFilter(QObject *obj, QEvent *event) QKeyEvent *keyEvent = static_cast(event); - if (keyEvent->key() != GraphicalUi::actionCollection("General")->action("TabCompletionKey")->shortcut()) { + if (keyEvent->key() != GraphicalUi::actionCollection("General")->action("TabCompletionKey")->shortcut()[0]) { reset(); } return false;