From 76a5f08481ce5a9fba3df5f9eb3288491d42f463 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Mon, 24 Nov 2025 15:28:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=81=D0=BA=D0=B8=20subProc?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=B2=D1=8B=D0=B4=D0=B5=D0=BB=D1=8F=D0=B5=D0=BC?= =?UTF-8?q?=D1=8B=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tasks/subprocitemwidget.cpp | 13 ++++- .../InstructorsAndTraineesWidget_ru_RU.ts | 51 ++++++++++--------- 2 files changed, 38 insertions(+), 26 deletions(-) diff --git a/InstructorsAndTrainees/tasks/subprocitemwidget.cpp b/InstructorsAndTrainees/tasks/subprocitemwidget.cpp index 4569bc2..385ef2d 100644 --- a/InstructorsAndTrainees/tasks/subprocitemwidget.cpp +++ b/InstructorsAndTrainees/tasks/subprocitemwidget.cpp @@ -6,6 +6,17 @@ SubProcItemWidget::SubProcItemWidget(QWidget *parent) : ui(new Ui::SubProcItemWidget) { ui->setupUi(this); + + ui->listWidget->setObjectName("subProcItemListWidget"); + + this->setFocusPolicy(Qt::NoFocus); + ui->listWidget->setFocusPolicy(Qt::NoFocus); + ui->label->setFocusPolicy(Qt::NoFocus); + + int totalHeight = 0; + totalHeight += ui->label->sizeHint().height(); + totalHeight += 4; + ui->label->setMaximumHeight(totalHeight); } SubProcItemWidget::~SubProcItemWidget() @@ -30,7 +41,7 @@ void SubProcItemWidget::setListSubProc(const QList &list) for(int row = 0; row < ui->listWidget->count(); ++row) { totalHeight += ui->listWidget->sizeHintForRow(row); // Высота каждой строки - totalHeight += 10; + totalHeight += 4; } // Добавляем отступы фрейма (рамки) diff --git a/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts b/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts index 2ee04c6..9288c56 100644 --- a/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts +++ b/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts @@ -34,55 +34,56 @@ Удалить - + actual актуально - + update required требуется обновление - - + + DM code DM код - - + + ID ID - - + + Procedure AMM Процедура AMM - - + + Canplay Режимы - - + + Status Статус - + The deletion will be irrevocable. Delete it anyway? Удаление будет безвозвратным. Всё равно удалить? - + + Assign this task? Назначить эту задачу? @@ -927,7 +928,7 @@ Delete it anyway? - + DM code DM код @@ -942,12 +943,12 @@ Delete it anyway? Назначить - + Subprocedure Подпроцедура - + Canplay Режимы @@ -1216,29 +1217,29 @@ Delete it anyway? TaskAMMFIMTreePreparation - - + + completed выполнена - - + + failed неверно - - + + checkup на проверке - - + + new новая