From b34b25be76bf54e7ee7d4a2e6e87015190fd817b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 19 Aug 2019 10:23:26 +0300 Subject: [PATCH] Dock widget title doesn't update correctly. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 68b305e17..9331f3059 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1487,6 +1487,18 @@ void MainWindow::changeEvent(QEvent *event) redoAction->setText(tr("&Redo")); statusBar()->showMessage(tr("Changes applied."), 5000); 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(); emit sceneDetails->LanguageChanged(); }