Commit df8279ce authored by Clement CHAVANCE's avatar Clement CHAVANCE

All the settings Ui are now translated

parent d5ecb040
......@@ -50,3 +50,16 @@ void AudioProjectPreferences::save()
setMan->setValue( m_settName, "AudioSampleRate", sampleRate );
return ;
}
void AudioProjectPreferences::changeEvent( QEvent *e )
{
QWidget::changeEvent( e );
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui.retranslateUi( this );
break;
default:
break;
}
}
......@@ -36,6 +36,8 @@ class AudioProjectPreferences : public PreferenceWidget
~AudioProjectPreferences();
void load();
void save();
protected:
virtual void changeEvent( QEvent *e );
private:
Ui::AudioProjectPreferences m_ui;
};
......
......@@ -55,3 +55,16 @@ void ProjectPreferences::save()
settMan->setValue( m_settName, "ProjectName", name );
}
void ProjectPreferences::changeEvent( QEvent *e )
{
QWidget::changeEvent( e );
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui.retranslateUi( this );
break;
default:
break;
}
}
......@@ -36,6 +36,8 @@ class ProjectPreferences : public PreferenceWidget
virtual ~ProjectPreferences();
void load();
void save();
protected:
virtual void changeEvent( QEvent *e );
private:
Ui::ProjectPreferences m_ui;
};
......
......@@ -81,3 +81,16 @@ void VLMCPreferences::save()
settMan->setValue( m_settName, "AutomaticBackupInterval", autoSaveInterval );
settMan->commit();
}
void VLMCPreferences::changeEvent( QEvent *e )
{
QWidget::changeEvent( e );
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui.retranslateUi( this );
break;
default:
break;
}
}
......@@ -39,6 +39,8 @@ class VLMCPreferences : public PreferenceWidget
~VLMCPreferences();
void load();
void save();
protected:
virtual void changeEvent( QEvent *e );
private slots:
void setAutomaticSaveLabelVisiblity( bool visible );
......
......@@ -58,3 +58,16 @@ void VideoProjectPreferences::save()
settMan->setValue( m_settName,"VideoProjectWidth", projectWidth);
return ;
}
void VideoProjectPreferences::changeEvent( QEvent *e )
{
QWidget::changeEvent( e );
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui.retranslateUi( this );
break;
default:
break;
}
}
......@@ -36,6 +36,8 @@ class VideoProjectPreferences : public PreferenceWidget
~VideoProjectPreferences();
void load();
void save();
protected:
virtual void changeEvent( QEvent *e );
private:
Ui::VideoProjectPreferences m_ui;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment