Retranslate history
--HG-- branch : feature
This commit is contained in:
parent
31582e06da
commit
b283fb2a76
|
@ -380,5 +380,4 @@ void ConfigurationPage::RetranslateUi()
|
||||||
askPointDeletionCheck->setText(tr("Confirm item deletion"));
|
askPointDeletionCheck->setText(tr("Confirm item deletion"));
|
||||||
toolBarGroup->setTitle(tr("Toolbar"));
|
toolBarGroup->setTitle(tr("Toolbar"));
|
||||||
toolBarStyleCheck->setText(tr("The text appears under the icon. (recommended for beginners.)"));
|
toolBarStyleCheck->setText(tr("The text appears under the icon. (recommended for beginners.)"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -502,3 +502,23 @@ void DialogHistory::closeEvent(QCloseEvent *event)
|
||||||
emit ShowHistoryTool(id, false);
|
emit ShowHistoryTool(id, false);
|
||||||
DialogTool::closeEvent(event);
|
DialogTool::closeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void DialogHistory::changeEvent(QEvent *event)
|
||||||
|
{
|
||||||
|
if (event->type() == QEvent::LanguageChange)
|
||||||
|
{
|
||||||
|
// retranslate designer form (single inheritance approach)
|
||||||
|
ui->retranslateUi(this);
|
||||||
|
RetranslateUi();
|
||||||
|
}
|
||||||
|
|
||||||
|
// remember to call base class implementation
|
||||||
|
QDialog::changeEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void DialogHistory::RetranslateUi()
|
||||||
|
{
|
||||||
|
UpdateHistory();
|
||||||
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@ signals:
|
||||||
void ShowHistoryTool(quint32 id, bool enable);
|
void ShowHistoryTool(quint32 id, bool enable);
|
||||||
protected:
|
protected:
|
||||||
virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
|
virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
|
||||||
|
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(DialogHistory)
|
Q_DISABLE_COPY(DialogHistory)
|
||||||
|
|
||||||
|
@ -89,6 +90,7 @@ private:
|
||||||
void ShowPoint();
|
void ShowPoint();
|
||||||
QString PointName(quint32 pointId);
|
QString PointName(quint32 pointId);
|
||||||
quint32 AttrUInt(const QDomElement &domElement, const QString &name);
|
quint32 AttrUInt(const QDomElement &domElement, const QString &name);
|
||||||
|
void RetranslateUi();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DIALOGHISTORY_H
|
#endif // DIALOGHISTORY_H
|
||||||
|
|
|
@ -1129,6 +1129,7 @@ void MainWindow::changeEvent(QEvent *event)
|
||||||
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: "));
|
patternPieceLabel->setText(tr("Pattern Piece: "));
|
||||||
|
UpdateWindowTitle();
|
||||||
}
|
}
|
||||||
// remember to call base class implementation
|
// remember to call base class implementation
|
||||||
QMainWindow::changeEvent(event);
|
QMainWindow::changeEvent(event);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user