SetlogFeature::SetlogFeature(QObject* parent, UserSettingsPointer pConfig, TrackCollection* pTrackCollection) : BasePlaylistFeature(parent, pConfig, pTrackCollection, "SETLOGHOME"), m_playlistId(-1), m_libraryWidget(nullptr) { m_pPlaylistTableModel = new PlaylistTableModel(this, pTrackCollection, "mixxx.db.model.setlog", true); //show all tracks //construct child model auto pRootItem = std::make_unique<TreeItem>(this); m_childModel.setRootItem(std::move(pRootItem)); constructChildModel(-1); m_pJoinWithPreviousAction = new QAction(tr("Join with previous"), this); connect(m_pJoinWithPreviousAction, SIGNAL(triggered()), this, SLOT(slotJoinWithPrevious())); m_pGetNewPlaylist = new QAction(tr("Create new history playlist"), this); connect(m_pGetNewPlaylist, SIGNAL(triggered()), this, SLOT(slotGetNewPlaylist())); // initialized in a new generic slot(get new history playlist purpose) emit(slotGetNewPlaylist()); }
SetlogFeature::SetlogFeature(QObject* parent, ConfigObject<ConfigValue>* pConfig, TrackCollection* pTrackCollection) : BasePlaylistFeature(parent, pConfig, pTrackCollection, "SETLOGHOME"), m_playlistId(-1) { m_pPlaylistTableModel = new PlaylistTableModel(this, pTrackCollection, "mixxx.db.model.setlog", true); //show all tracks m_pJoinWithPreviousAction = new QAction(tr("Join with previous"), this); connect(m_pJoinWithPreviousAction, SIGNAL(triggered()), this, SLOT(slotJoinWithPrevious())); m_pGetNewPlaylist = new QAction(tr("Create new history playlist"), this); connect(m_pGetNewPlaylist, SIGNAL(triggered()), this, SLOT(slotGetNewPlaylist())); // initialised in a new generic slot(get new history playlist purpose) emit(slotGetNewPlaylist()); //construct child model TreeItem *rootItem = new TreeItem(); m_childModel.setRootItem(rootItem); constructChildModel(-1); }