Fix warning: unused variable 'textEdit'.

This commit is contained in:
Roman Telezhynskyi 2020-10-29 08:58:26 +02:00
parent 9e3e59d267
commit d5da8c6799

View File

@ -305,7 +305,7 @@ bool VPE::VPropertyFormWidget::eventFilter(QObject *object, QEvent *event)
if (event->type() == QEvent::KeyPress)
{
if (QPlainTextEdit *textEdit = qobject_cast<QPlainTextEdit *>(editor))
if (qobject_cast<QPlainTextEdit *>(editor))
{
switch (static_cast<QKeyEvent *>(event)->key())
{