Make playlist items use the full width available to them and adjust correctly when...
[amarok.git] / src / playlist / TrackAdvancer.cpp
blob43dcb6c09d608a6839fed6d5c775fede1f620b86
1 /***************************************************************************
2 * copyright : (C) 2007 Ian Monroe <ian@monroe.nu> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License version 2 *
6 * as published by the Free Software Foundation. *
7 ***************************************************************************/
9 #include "TrackAdvancer.h"
11 #include "debug.h"
12 #include "enginecontroller.h"
13 #include "PlaylistModel.h"
15 using namespace PlaylistNS;
17 void
18 TrackAdvancer::setCurrentTrack( int position )
20 DEBUG_BLOCK
21 m_playlistModel->setActiveRow( position );
22 EngineController::instance()->play( m_playlistModel->activeTrack() );