projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8c0ef4c
)
QKeySequence's int operator is deprecated
author
Bas Pape
<baspape@gmail.com>
Sat, 20 Apr 2013 12:48:08 +0000
(14:48 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Mon, 24 Mar 2014 23:21:25 +0000
(
00:21
+0100)
operator int returns the first key in the sequence, so just use that
one directly.
src/uisupport/tabcompleter.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/tabcompleter.cpp
b/src/uisupport/tabcompleter.cpp
index
40a4929
..
9a83416
100644
(file)
--- 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<QKeyEvent *>(event);
- if (keyEvent->key() != GraphicalUi::actionCollection("General")->action("TabCompletionKey")->shortcut()) {
+ if (keyEvent->key() != GraphicalUi::actionCollection("General")->action("TabCompletionKey")->shortcut()
[0]
) {
reset();
}
return false;