diff --git a/kcmkwin/kwintabbox/layoutpreview.cpp b/kcmkwin/kwintabbox/layoutpreview.cpp index 1575c4b1a2..0b19498f8f 100644 --- a/kcmkwin/kwintabbox/layoutpreview.cpp +++ b/kcmkwin/kwintabbox/layoutpreview.cpp @@ -88,7 +88,7 @@ LayoutPreview::~LayoutPreview() bool LayoutPreview::eventFilter(QObject *object, QEvent *event) { if (event->type() == QEvent::KeyPress) { - QKeyEvent *keyEvent = dynamic_cast(event); + QKeyEvent *keyEvent = static_cast(event); if (keyEvent->key() == Qt::Key_Escape || keyEvent->key() == Qt::Key_Return || keyEvent->key() == Qt::Key_Enter ||