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;