Commit ff3dc82b authored by Rohit Yadav's avatar Rohit Yadav

MediaLibrary: Add changeEvent() to handle translation events.

Adds changeEvent for handling translation change events in MediaLibrary.
parent 54b19770
......@@ -55,6 +55,20 @@ MediaLibrary::MediaLibrary(QWidget *parent) : QWidget(parent),
this, SLOT( filterTypeChanged() ) );
}
void
MediaLibrary::changeEvent( QEvent *e )
{
QWidget::changeEvent( e );
switch ( e->type() )
{
case QEvent::LanguageChange:
m_ui->retranslateUi( this );
break;
default:
break;
}
}
void
MediaLibrary::filterUpdated( const QString &filter )
{
......
......@@ -44,6 +44,7 @@ class MediaLibrary : public QWidget
void dragMoveEvent( QDragMoveEvent *event );
void dragLeaveEvent( QDragLeaveEvent *event );
void dropEvent( QDropEvent *event );
void changeEvent( QEvent *e );
private:
/**
......
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