[win-linux] cprintprogress: small refactoring

This commit is contained in:
SimplestStudio
2025-08-27 17:40:51 +03:00
parent da6c67fdb0
commit 3f93b53db2

View File

@ -158,7 +158,7 @@ public:
qtProgressLabel->setStyleSheet(QString("margin-bottom: %1px;").arg(8*_dpi_ratio));
layout->addWidget(qtProgressLabel);
QPushButton * btn_cancel = new QPushButton(QObject::tr("&Cancel", "CPrintProgress"));
QPushButton * btn_cancel = new QPushButton(cancelText);
QWidget * box = new QWidget;
box->setLayout(new QHBoxLayout);
box->layout()->addWidget(btn_cancel);