Commit ed51bd51 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Do not reset the library title, when retranslateUI is called.

This is a quick and dirty hack.
parent 061391e4
......@@ -21,6 +21,9 @@ void StackViewNavController::changeEvent( QEvent *e )
{
case QEvent::LanguageChange:
m_ui->retranslateUi( this );
// This is a quick and dirty fix.
// But the title won't be translated anyway.
setTitle( m_title );
break;
default:
break;
......@@ -29,6 +32,7 @@ void StackViewNavController::changeEvent( QEvent *e )
void StackViewNavController::setTitle( const QString& title )
{
m_title = title;
m_ui->title->setText( title );
}
......
......@@ -24,6 +24,7 @@ protected:
private:
Ui::StackViewNavController *m_ui;
QString m_title;
};
#endif // STACKVIEWNAVCONTROLLER_H
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