From d5da8c6799ee40af7a1befbec238e507ae158193 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 29 Oct 2020 08:58:26 +0200 Subject: [PATCH] Fix warning: unused variable 'textEdit'. --- src/libs/vpropertyexplorer/vpropertyformwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vpropertyexplorer/vpropertyformwidget.cpp b/src/libs/vpropertyexplorer/vpropertyformwidget.cpp index 04b3e8ea1..339e6a147 100644 --- a/src/libs/vpropertyexplorer/vpropertyformwidget.cpp +++ b/src/libs/vpropertyexplorer/vpropertyformwidget.cpp @@ -305,7 +305,7 @@ bool VPE::VPropertyFormWidget::eventFilter(QObject *object, QEvent *event) if (event->type() == QEvent::KeyPress) { - if (QPlainTextEdit *textEdit = qobject_cast(editor)) + if (qobject_cast(editor)) { switch (static_cast(event)->key()) {