Gui: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
209c78d43e
commit
ff1b4eff05
@@ -565,7 +565,7 @@ bool CompletionList::eventFilter(QObject * watched, QEvent * event)
|
||||
hide();
|
||||
} else if (isVisible() && watched == textEdit) {
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
auto ke = (QKeyEvent*)event;
|
||||
auto ke = static_cast<QKeyEvent*>(event);
|
||||
if (ke->key() == Qt::Key_Up || ke->key() == Qt::Key_Down) {
|
||||
keyPressEvent(ke);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user