From b6466547e8a2737a915fbe841d6de1e0fbe0764b Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Wed, 6 Jan 2016 09:34:03 +0200 Subject: [PATCH] Retranslate patternPieceLabel --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 8 +++++--- src/app/valentina/mainwindow.h | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index a50c88163..9c54865a0 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -100,8 +100,8 @@ MainWindow::MainWindow(QWidget *parent) lastUsedTool(Tool::Arrow), sceneDraw(nullptr), sceneDetails(nullptr), mouseCoordinate(nullptr), helpLabel(nullptr), isInitialized(false), mChanges(false), dialogTable(nullptr), dialogTool(nullptr), - dialogHistory(nullptr), comboBoxDraws(nullptr), mode(Draw::Calculation), currentDrawIndex(0), - currentToolBoxIndex(0), drawMode(true), recentFileActs(), + dialogHistory(nullptr), comboBoxDraws(nullptr), patternPieceLabel(nullptr), mode(Draw::Calculation), + currentDrawIndex(0), currentToolBoxIndex(0), drawMode(true), recentFileActs(), separatorAct(nullptr), leftGoToStage(nullptr), rightGoToStage(nullptr), autoSaveTimer(nullptr), guiEnabled(true), gradationHeights(nullptr), gradationSizes(nullptr), gradationHeightsLabel(nullptr), gradationSizesLabel(nullptr), @@ -1128,6 +1128,7 @@ void MainWindow::changeEvent(QEvent *event) undoAction->setText(tr("&Undo")); redoAction->setText(tr("&Redo")); helpLabel->setText(QObject::tr("Create new pattern piece to start working.")); + patternPieceLabel->setText(tr("Pattern Piece: ")); } // remember to call base class implementation QMainWindow::changeEvent(event); @@ -1506,7 +1507,8 @@ void MainWindow::ToolBarStages() */ void MainWindow::ToolBarDraws() { - ui->toolBarDraws->addWidget(new QLabel(tr("Pattern Piece: "))); + patternPieceLabel = new QLabel(tr("Pattern Piece: ")); + ui->toolBarDraws->addWidget(patternPieceLabel); // By using Qt UI Designer we can't add QComboBox to toolbar comboBoxDraws = new QComboBox; diff --git a/src/app/valentina/mainwindow.h b/src/app/valentina/mainwindow.h index a55bf6d92..03eb6f7b6 100644 --- a/src/app/valentina/mainwindow.h +++ b/src/app/valentina/mainwindow.h @@ -215,6 +215,7 @@ private: /** @brief comboBoxDraws comboc who show name of pattern peaces. */ QComboBox *comboBoxDraws; + QLabel *patternPieceLabel; /** @brief mode keep current draw mode. */ Draw mode;