diff -r 1a4342d80de7 -r 654661eab7f3 src/widgets/matrixeditor.cpp --- a/src/widgets/matrixeditor.cpp Wed Jun 08 20:41:21 2022 +0300 +++ b/src/widgets/matrixeditor.cpp Wed Jun 08 22:29:44 2022 +0300 @@ -1,4 +1,4 @@ -#include "main.h" +#include "basics.h" #include "matrixeditor.h" #include "ui_matrixeditor.h" #include "../ui/multiplyfactordialog.h" @@ -14,7 +14,7 @@ { for (int row = 0; row < countof(this->spinboxes[0]); row += 1) { - const QString name = "cell"_q + QString::number(column) + QString::number(row); + const QString name = QStringLiteral("cell%1%2").arg(column).arg(row); QDoubleSpinBox** spinbox = &this->spinboxes[column][row]; *spinbox = this->findChild(name); connect(*spinbox, qOverload(&QDoubleSpinBox::valueChanged), [&]() @@ -23,7 +23,8 @@ }); Q_ASSERT(*spinbox != nullptr); } - QAbstractButton* button = this->findChild("multiply"_q + QString::number(column)); + const QString multiplyButtonName = QStringLiteral("multiply%1").arg(column); + QAbstractButton* button = this->findChild(multiplyButtonName); button->setProperty(BUTTON_COLUMN_PROPERTY, column); connect(button, &QAbstractButton::clicked, this, &MatrixEditor::multiplyButtonPressed); }