friend class PlaylistWidget;
private:
QTreeView *view;
- QPushButton *repeatButton , *randomButton,*addButton;
+ QPushButton *repeatButton, *randomButton, *addButton, *gotoPlayingButton;
ClickLineEdit *searchLine;
int currentRootId;
QSignalMapper *ContextUpdateMapper;
void handleExpansion( const QModelIndex& );
void toggleRandom();
void toggleRepeat();
+ void gotoPlayingItem();
void doPopup( QModelIndex index, QPoint point );
void search( QString search );
void clearFilter();
BUTTONACT( repeatButton, toggleRepeat() );
buttons->addWidget( repeatButton );
+ /* Goto */
+ gotoPlayingButton = new QPushButton( qtr( "X" ), this );
+ BUTTONACT( gotoPlayingButton, gotoPlayingItem() );
+ buttons->addWidget( gotoPlayingButton );
+
/* A Spacer and the search possibilities */
QSpacerItem *spacer = new QSpacerItem( 10, 20 );
buttons->addItem( spacer );
randomButton->setToolTip( prev ? qtr( I_PL_NORANDOM ) : qtr(I_PL_RANDOM ) );
}
+void StandardPLPanel::gotoPlayingItem()
+{
+ view->scrollTo( view->currentIndex() );
+}
+
void StandardPLPanel::handleExpansion( const QModelIndex &index )
{
if( model->isCurrent( index ) )