Commit 96fcedeb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 Patch changes RA/R1/NR and RND/NRND text in repeat/random buttons to use

I_PL_REPEAT/I_PL_LOOP/I_PL_RANDOM etc. strings as done after
toggleRepeat usage etc.
Patch by Ilkka Ollakka
parent c96d14e1
...@@ -86,14 +86,14 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -86,14 +86,14 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
buttons->addWidget( addButton ); buttons->addWidget( addButton );
repeatButton = new QPushButton( 0 ); buttons->addWidget( repeatButton ); repeatButton = new QPushButton( 0 ); buttons->addWidget( repeatButton );
if( model->hasRepeat() ) repeatButton->setText( qtr( "R1" ) ); if( model->hasRepeat() ) repeatButton->setText( qtr( I_PL_REPEAT ) );
else if( model->hasLoop() ) repeatButton->setText( qtr( "RA" ) ); else if( model->hasLoop() ) repeatButton->setText( qtr( I_PL_LOOP ) );
else repeatButton->setText( qtr( "NR" ) ); else repeatButton->setText( qtr( I_PL_NOREPEAT ) );
BUTTONACT( repeatButton, toggleRepeat() ); BUTTONACT( repeatButton, toggleRepeat() );
randomButton = new QPushButton( 0 ); buttons->addWidget( randomButton ); randomButton = new QPushButton( 0 ); buttons->addWidget( randomButton );
if( model->hasRandom() ) randomButton->setText( qtr( " RND" ) ); randomButton->setText( model->hasRandom() ? qtr( I_PL_RANDOM )
else randomButton->setText( qtr( "NRND" ) ); : qtr( I_PL_NORANDOM) );
BUTTONACT( randomButton, toggleRandom() ); BUTTONACT( randomButton, toggleRandom() );
QSpacerItem *spacer = new QSpacerItem( 10, 20 );buttons->addItem( spacer ); QSpacerItem *spacer = new QSpacerItem( 10, 20 );buttons->addItem( spacer );
......
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