Retranslate tables of variables

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-01-08 14:06:38 +02:00
parent b283fb2a76
commit 4bb731a825
3 changed files with 13 additions and 2 deletions

View File

@ -340,7 +340,6 @@ void ConfigurationPage::changeEvent(QEvent *event)
// retranslate designer form (single inheritance approach) // retranslate designer form (single inheritance approach)
RetranslateUi(); RetranslateUi();
} }
// remember to call base class implementation // remember to call base class implementation
QWidget::changeEvent(event); QWidget::changeEvent(event);
} }

View File

@ -719,6 +719,18 @@ void DialogIncrements::closeEvent(QCloseEvent *event)
event->accept(); event->accept();
} }
//---------------------------------------------------------------------------------------------------------------------
void DialogIncrements::changeEvent(QEvent *event)
{
if (event->type() == QEvent::LanguageChange)
{
// retranslate designer form (single inheritance approach)
ui->retranslateUi(this);
}
// remember to call base class implementation
QWidget::changeEvent(event);
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void DialogIncrements::ShowIncrementDetails() void DialogIncrements::ShowIncrementDetails()
{ {

View File

@ -59,7 +59,7 @@ signals:
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 slots: private slots:
void ShowIncrementDetails(); void ShowIncrementDetails();
void AddIncrement(); void AddIncrement();