Retranslate patternPieceLabel
--HG-- branch : feature
This commit is contained in:
parent
be3e6e5498
commit
b6466547e8
|
@ -100,8 +100,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
lastUsedTool(Tool::Arrow), sceneDraw(nullptr), sceneDetails(nullptr),
|
lastUsedTool(Tool::Arrow), sceneDraw(nullptr), sceneDetails(nullptr),
|
||||||
mouseCoordinate(nullptr), helpLabel(nullptr), isInitialized(false), mChanges(false), dialogTable(nullptr),
|
mouseCoordinate(nullptr), helpLabel(nullptr), isInitialized(false), mChanges(false), dialogTable(nullptr),
|
||||||
dialogTool(nullptr),
|
dialogTool(nullptr),
|
||||||
dialogHistory(nullptr), comboBoxDraws(nullptr), mode(Draw::Calculation), currentDrawIndex(0),
|
dialogHistory(nullptr), comboBoxDraws(nullptr), patternPieceLabel(nullptr), mode(Draw::Calculation),
|
||||||
currentToolBoxIndex(0), drawMode(true), recentFileActs(),
|
currentDrawIndex(0), currentToolBoxIndex(0), drawMode(true), recentFileActs(),
|
||||||
separatorAct(nullptr),
|
separatorAct(nullptr),
|
||||||
leftGoToStage(nullptr), rightGoToStage(nullptr), autoSaveTimer(nullptr), guiEnabled(true),
|
leftGoToStage(nullptr), rightGoToStage(nullptr), autoSaveTimer(nullptr), guiEnabled(true),
|
||||||
gradationHeights(nullptr), gradationSizes(nullptr), gradationHeightsLabel(nullptr), gradationSizesLabel(nullptr),
|
gradationHeights(nullptr), gradationSizes(nullptr), gradationHeightsLabel(nullptr), gradationSizesLabel(nullptr),
|
||||||
|
@ -1128,6 +1128,7 @@ void MainWindow::changeEvent(QEvent *event)
|
||||||
undoAction->setText(tr("&Undo"));
|
undoAction->setText(tr("&Undo"));
|
||||||
redoAction->setText(tr("&Redo"));
|
redoAction->setText(tr("&Redo"));
|
||||||
helpLabel->setText(QObject::tr("Create new pattern piece to start working."));
|
helpLabel->setText(QObject::tr("Create new pattern piece to start working."));
|
||||||
|
patternPieceLabel->setText(tr("Pattern Piece: "));
|
||||||
}
|
}
|
||||||
// remember to call base class implementation
|
// remember to call base class implementation
|
||||||
QMainWindow::changeEvent(event);
|
QMainWindow::changeEvent(event);
|
||||||
|
@ -1506,7 +1507,8 @@ void MainWindow::ToolBarStages()
|
||||||
*/
|
*/
|
||||||
void MainWindow::ToolBarDraws()
|
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
|
// By using Qt UI Designer we can't add QComboBox to toolbar
|
||||||
comboBoxDraws = new QComboBox;
|
comboBoxDraws = new QComboBox;
|
||||||
|
|
|
@ -215,6 +215,7 @@ private:
|
||||||
|
|
||||||
/** @brief comboBoxDraws comboc who show name of pattern peaces. */
|
/** @brief comboBoxDraws comboc who show name of pattern peaces. */
|
||||||
QComboBox *comboBoxDraws;
|
QComboBox *comboBoxDraws;
|
||||||
|
QLabel *patternPieceLabel;
|
||||||
|
|
||||||
/** @brief mode keep current draw mode. */
|
/** @brief mode keep current draw mode. */
|
||||||
Draw mode;
|
Draw mode;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user