Commit c60e3771 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

MediaCellView: Fixing translation problems.

parent fc3cc25f
......@@ -92,6 +92,8 @@ void MediaCellView::changeEvent( QEvent *e )
{
case QEvent::LanguageChange:
m_ui->retranslateUi( this );
nbClipUpdated();
setLength( m_clip->lengthSecond() * 1000 );
break;
default:
break;
......@@ -118,15 +120,15 @@ MediaCellView::nbClipUpdated()
m_ui->clipCount->hide();
m_ui->clipCountLabel->hide();
m_ui->arrow->hide();
m_ui->clipCount->setText( "0" );
}
else
{
m_ui->clipCount->show();
m_ui->clipCountLabel->show();
m_ui->arrow->show();
m_ui->clipCount->setText( QString::number( nbClips ) );
}
//Use QString::number in any case, so we use the current locale.
m_ui->clipCount->setText( QString::number( nbClips ) );
}
void
......
......@@ -118,7 +118,7 @@
</font>
</property>
<property name="text">
<string>Media Title</string>
<string notr="true">Media Title</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
......@@ -155,7 +155,7 @@
</font>
</property>
<property name="text">
<string>0</string>
<string notr="true">0</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......@@ -185,7 +185,7 @@
</font>
</property>
<property name="text">
<string>0</string>
<string notr="true">0</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
......
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