diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-06-10 00:06:09 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2020-06-10 00:06:09 +0200 |
commit | 802f65435a0f8b9032008d33d8e6649f82b5676c (patch) | |
tree | c0f0a42a3a0a93ee744de9f1bdcac2a5bed9ae27 /src/skin | |
parent | 8c663a5bedbc6f760056103333b1ac55f1b6965f (diff) |
Added Drag and Drop function to WTrackWidget Group
Diffstat (limited to 'src/skin')
-rw-r--r-- | src/skin/legacyskinparser.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/skin/legacyskinparser.cpp b/src/skin/legacyskinparser.cpp index 96a91a0bad..e4cbd8abba 100644 --- a/src/skin/legacyskinparser.cpp +++ b/src/skin/legacyskinparser.cpp @@ -1067,6 +1067,7 @@ QWidget* LegacySkinParser::parseTrackProperty(const QDomElement& node) { QWidget* LegacySkinParser::parseTrackWidgetGroup(const QDomElement& node) { QString channelStr = lookupNodeGroup(node); + const char* pSafeChannelStr = safeChannelString(channelStr); BaseTrackPlayer* pPlayer = m_pPlayerManager->getPlayer(channelStr); if (!pPlayer) { @@ -1076,7 +1077,8 @@ QWidget* LegacySkinParser::parseTrackWidgetGroup(const QDomElement& node) { WTrackWidgetGroup* pGroup = new WTrackWidgetGroup( m_pParent, m_pConfig, - m_pLibrary->trackCollections()); + m_pLibrary->trackCollections(), + pSafeChannelStr); commonWidgetSetup(node, pGroup); pGroup->setup(node, *m_pContext); pGroup->Init(); @@ -1090,6 +1092,14 @@ QWidget* LegacySkinParser::parseTrackWidgetGroup(const QDomElement& node) { &BaseTrackPlayer::loadingTrack, pGroup, &WTrackWidgetGroup::slotLoadingTrack); + connect(pGroup, + &WTrackWidgetGroup::trackDropped, + m_pPlayerManager, + &PlayerManager::slotLoadToPlayer); + connect(pGroup, + &WTrackWidgetGroup::cloneDeck, + m_pPlayerManager, + &PlayerManager::slotCloneDeck); TrackPointer pTrack = pPlayer->getLoadedTrack(); if (pTrack) { |