Qt4 Patch changes RA/R1/NR and RND/NRND text in repeat/random buttons to use
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 11 Aug 2007 12:55:58 +0000 (12:55 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 11 Aug 2007 12:55:58 +0000 (12:55 +0000)
I_PL_REPEAT/I_PL_LOOP/I_PL_RANDOM etc. strings as done after
toggleRepeat usage etc.
Patch by Ilkka Ollakka

modules/gui/qt4/components/playlist/standardpanel.cpp

index ad5dc82..bba41f8 100644 (file)
@@ -86,14 +86,14 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
     buttons->addWidget( addButton );
 
     repeatButton = new QPushButton( 0 ); buttons->addWidget( repeatButton );
-    if( model->hasRepeat() ) repeatButton->setText( qtr( "R1" ) );
-    else if( model->hasLoop() ) repeatButton->setText( qtr( "RA" ) );
-    else repeatButton->setText( qtr( "NR" ) );
+    if( model->hasRepeat() ) repeatButton->setText( qtr( I_PL_REPEAT ) );
+    else if( model->hasLoop() ) repeatButton->setText( qtr( I_PL_LOOP ) );
+    else repeatButton->setText( qtr( I_PL_NOREPEAT ) );
     BUTTONACT( repeatButton, toggleRepeat() );
 
     randomButton = new QPushButton( 0 ); buttons->addWidget( randomButton );
-    if( model->hasRandom() ) randomButton->setText( qtr( " RND" ) );
-    else randomButton->setText( qtr( "NRND" ) );
+    randomButton->setText( model->hasRandom() ? qtr( I_PL_RANDOM )
+                                              : qtr( I_PL_NORANDOM) );
     BUTTONACT( randomButton, toggleRandom() );
 
     QSpacerItem *spacer = new QSpacerItem( 10, 20 );buttons->addItem( spacer );