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 новая