Debian Codegraph @

src/playlist/navigators/RepeatTrackNavigator.cpp

raw
1 /****************************************************************************************
2 * Copyright (c) 2007 Dan Meltzer <[email protected]> *
3 * Copyright (c) 2008 Soren Harward <[email protected]> *
4 * Copyright (c) 2009 Téo Mrnjavac <[email protected]> *
5 * *
6 * This program is free software; you can redistribute it and/or modify it under *
7 * the terms of the GNU General Public License as published by the Free Software *
8 * Foundation; either version 2 of the License, or (at your option) any later *
9 * version. *
10 * *
11 * This program is distributed in the hope that it will be useful, but WITHOUT ANY *
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
13 * PARTICULAR PURPOSE. See the GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License along with *
16 * this program. If not, see <http://www.gnu.org/licenses/>. *
17 ****************************************************************************************/
18
19 #include "RepeatTrackNavigator.h"
20
21 #include "playlist/PlaylistModelStack.h"
22
23 Playlist::RepeatTrackNavigator::RepeatTrackNavigator()
24 {
25 m_trackid = m_model->activeId();
26
27 connect( Playlist::ModelStack::instance()->bottom(), &Playlist::Model::activeTrackChanged,
28 this, &RepeatTrackNavigator::recvActiveTrackChanged );
29 }