From c6e7c5d37109b96ef05cb8f583b2f4c01d554927 Mon Sep 17 00:00:00 2001 From: Levi Jetzer Date: Tue, 11 Aug 2026 18:28:29 +0200 Subject: [PATCH] Fixed issue of taking wrong variable (key instead of key_) in elementinfopartwidget.cpp for regex checker and helping info (tooltip, placeholder) --- sources/ui/elementinfopartwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/ui/elementinfopartwidget.cpp b/sources/ui/elementinfopartwidget.cpp index 0132de4ca..dcb5f6842 100644 --- a/sources/ui/elementinfopartwidget.cpp +++ b/sources/ui/elementinfopartwidget.cpp @@ -45,7 +45,7 @@ ElementInfoPartWidget::ElementInfoPartWidget( ui->label_->setText(translated_key); ui->m_erase_text->setVisible(false); - if (key == QETInformation::ELMT_WIDTH || key == QETInformation::ELMT_HEIGHT || key == QETInformation::ELMT_DEPTH) + if (key_ == QETInformation::ELMT_WIDTH || key_ == QETInformation::ELMT_HEIGHT || key_ == QETInformation::ELMT_DEPTH) { auto *validator = new QRegularExpressionValidator( QRegularExpression(QStringLiteral(R"(^[0-9]*\.?[0-9]{0,4}$)")), ui->line_edit);