Dock widget title doesn't update correctly.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-08-19 10:23:26 +03:00
parent 351dd78a4f
commit b34b25be76

View File

@ -1487,6 +1487,18 @@ void MainWindow::changeEvent(QEvent *event)
redoAction->setText(tr("&Redo")); redoAction->setText(tr("&Redo"));
statusBar()->showMessage(tr("Changes applied."), 5000); statusBar()->showMessage(tr("Changes applied."), 5000);
patternPieceLabel->setText(tr("Pattern Piece:")); patternPieceLabel->setText(tr("Pattern Piece:"));
if (qApp->GetDrawMode() == Draw::Calculation)
{
ui->dockWidgetGroups->setWindowTitle(tr("Groups of visibility"));
ui->dockWidgetGroups->setToolTip(tr("Contains all visibility groups"));
}
else
{
ui->dockWidgetGroups->setWindowTitle(tr("Details"));
ui->dockWidgetGroups->setToolTip(tr("Show which details will go in layout"));
}
UpdateWindowTitle(); UpdateWindowTitle();
emit sceneDetails->LanguageChanged(); emit sceneDetails->LanguageChanged();
} }