diff --git a/src/app/valentina/dialogs/configpages/configurationpage.cpp b/src/app/valentina/dialogs/configpages/configurationpage.cpp index 5d58394e6..d2caf82d3 100644 --- a/src/app/valentina/dialogs/configpages/configurationpage.cpp +++ b/src/app/valentina/dialogs/configpages/configurationpage.cpp @@ -340,7 +340,6 @@ void ConfigurationPage::changeEvent(QEvent *event) // retranslate designer form (single inheritance approach) RetranslateUi(); } - // remember to call base class implementation QWidget::changeEvent(event); } diff --git a/src/app/valentina/dialogs/dialogincrements.cpp b/src/app/valentina/dialogs/dialogincrements.cpp index 1a9118413..074203ff3 100644 --- a/src/app/valentina/dialogs/dialogincrements.cpp +++ b/src/app/valentina/dialogs/dialogincrements.cpp @@ -719,6 +719,18 @@ void DialogIncrements::closeEvent(QCloseEvent *event) 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() { diff --git a/src/app/valentina/dialogs/dialogincrements.h b/src/app/valentina/dialogs/dialogincrements.h index c391ec7c5..18032ffe7 100644 --- a/src/app/valentina/dialogs/dialogincrements.h +++ b/src/app/valentina/dialogs/dialogincrements.h @@ -59,7 +59,7 @@ signals: protected: virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE; - + virtual void changeEvent ( QEvent * event) Q_DECL_OVERRIDE; private slots: void ShowIncrementDetails(); void AddIncrement();