Debian Codegraph @

src/playlist.cpp

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2019 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "playlist.h"cxx . . $ `<file>/src/playlist.h`/
19 #include "playlistitem.h"cxx . . $ `<file>/src/playlistitem.h`/
20
21 #include <QMenu>
22 #include <Qt>
23 #include <qdebug.h>
24
25 #include <QtGui>
26 #include <QtXml>
27 #include <qprogressdialog.h>
28 #include <qscrollbar.h>
29
30 #include <QApplication>
31 #include <QHeaderView>
32 #include <QMessageBox>
33 #include <QPainter>
34 #include <qfile.h>
35
36 Playlistcxx . . $ Playlist#::Playlistcxx . . $ Playlist#Playlist(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent)
37 : QTreeWidgetcxx . . $ QTreeWidget#QTreeWidget(108f35f7aa7f3cf9).(parent)
38 , m_alternateMaxcxx . . $ Playlist#m_alternateMax.(0)
39 , m_markercxx . . $ Playlist#m_marker.(nullptr)
40 , m_NextTrackColorcxx . . $ Playlist#m_NextTrackColor.(QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(200, 200, 255))
41 , m_CurrentTrackColorcxx . . $ Playlist#m_CurrentTrackColor.(QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(255, 100, 100))
42 , nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.(nullptr)
43 , previousPlaylistItemcxx . . $ Playlist#previousPlaylistItem.(nullptr)
44 , newPlaylistItemcxx . . $ Playlist#newPlaylistItem.(nullptr)
45 , currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.(nullptr)
46 , m_PlaylistModecxx . . $ Playlist#m_PlaylistMode.(Playlistcxx . . $ Playlist#::Playlist_Singlecxx . . $ Playlist#Playlist_Single.)
47 , showDropHighlightercxx . . $ Playlist#showDropHighlighter.(false)
48 , autoClearOncxx . . $ Playlist#autoClearOn.(false)
49 , m_isPlayingcxx . . $ Playlist#m_isPlaying.(false)
50 , m_isInternDropcxx . . $ Playlist#m_isInternDrop.(false)
51 , m_dragLockedcxx . . $ Playlist#m_dragLocked.(false)
52 , isChangeSignalEnabledcxx . . $ Playlist#isChangeSignalEnabled.(true)
53 {
54
55 setSortingEnabledcxx . . $ QTreeView#setSortingEnabled(b45ddcbc8423892c).(false);
56 setAcceptDropscxx . . $ QWidget#setAcceptDrops(b45ddcbc8423892c).(true);
57 setDragEnabledcxx . . $ QAbstractItemView#setDragEnabled(b45ddcbc8423892c).(true);
58 setAllColumnsShowFocuscxx . . $ QTreeView#setAllColumnsShowFocus(b45ddcbc8423892c).(false);
59 setDropIndicatorShowncxx . . $ QAbstractItemView#setDropIndicatorShown(b45ddcbc8423892c).(true);
60 setAcceptDropscxx . . $ QWidget#setAcceptDrops(b45ddcbc8423892c).(true);
61 setDragEnabledcxx . . $ QAbstractItemView#setDragEnabled(b45ddcbc8423892c).(true);
62 setSelectionBehaviorcxx . . $ QAbstractItemView#setSelectionBehavior(3a606fd1f72e340).(QAbstractItemViewcxx . . $ QAbstractItemView#::SelectRowscxx . . $ QAbstractItemView#SelectRows.);
63 setSelectionModecxx . . $ QAbstractItemView#setSelectionMode(92c48cbe05de0e90).(QAbstractItemViewcxx . . $ QAbstractItemView#::ExtendedSelectioncxx . . $ QAbstractItemView#ExtendedSelection.);
64 setDragDropModecxx . . $ QAbstractItemView#setDragDropMode(6ef5700770d19021).(QAbstractItemViewcxx . . $ QAbstractItemView#::InternalMovecxx . . $ QAbstractItemView#InternalMove.);
65 setAttributecxx . . $ QWidget#setAttribute(52fc7bf162518f7f).(Qtcxx . . $ Qt/::WA_MacShowFocusRectcxx . . $ Qt/WA_MacShowFocusRect., false);
66 setUniformRowHeightscxx . . $ QTreeView#setUniformRowHeights(b45ddcbc8423892c).(true);
67
68 QStringListcxx . . $ QStringList# headerscxx . . $ QStringList#QStringList(ced63f7c635d850d).;
69 headers <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Url") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("No") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Played") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Artist")
70 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Title");
71 headers <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Album") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Year") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Genre") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Track");
72 headers <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Length") <<cxx . . $ QStringList#`operator<<`(85116071a693d053). trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Rate");
73
74 QTreeWidgetItemcxx . . $ QTreeWidgetItem#* headeritem = new QTreeWidgetItemcxx . . $ QTreeWidgetItem#QTreeWidgetItem(177359b07d5ec5a4).(headers);
75 setHeaderItemcxx . . $ QTreeWidget#setHeaderItem(7332f4628c1d1841).(headeritem);
76 setHeaderLabelscxx . . $ QTreeWidget#setHeaderLabels(631c0101495f0328).(headers);
77
78 // header()->setResizeMode(QHeaderView::Interactive);
79 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Urlcxx . . $ PlaylistItem#Column_Url.);
80
81 // prevent click event if doubleclicked
82 ignoreNextReleasecxx . . $ Playlist#ignoreNextRelease. = false;
83 timercxx . . $ Playlist#timer. = new QTimercxx . . $ QTimer#QTimer(749de1b6ae65bddd).(this);
84 connectcxx . . $ QObject#connect(158df1d9a01a3410).(timercxx . . $ Playlist#timer., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(timeout()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(emitClicked()));
85
86 timerDragLockcxx . . $ Playlist#timerDragLock. = new QTimercxx . . $ QTimer#QTimer(749de1b6ae65bddd).(this);
87 timerDragLockcxx . . $ Playlist#timerDragLock.->setIntervalcxx . . $ QTimer#setInterval(d4f767463ce0a6b3).(300);
88 connectcxx . . $ QObject#connect(158df1d9a01a3410).(timerDragLockcxx . . $ Playlist#timerDragLock., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(timeout()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(timeoutDragLock()));
89
90 connectcxx . . $ QObject#connect(158df1d9a01a3410).(this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(itemClicked(QTreeWidgetItem*, int)), this,
91 SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotItemClicked(QTreeWidgetItem*, int)));
92 connectcxx . . $ QObject#connect(158df1d9a01a3410).(this, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(itemDoubleClicked(QTreeWidgetItem*, int)), this,
93 SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotItemDoubleClicked(QTreeWidgetItem*, int)));
94 connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,
95 SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
96 this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)));
97 }
98
99 Playlistcxx . . $ Playlist#::~cxx . . $ Playlist#`~Playlist`(ced63f7c635d850d).Playlistcxx . . $ Playlist#()
100 {
101 // save width and sort settings
102 QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).;
103 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("playlist_" +cxx . . $ operator+(c75c3ae4eb9af1a8). objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).(), headercxx . . $ QVariant#QVariant(45672f3c6961a244).()->saveStatecxx . . $ QHeaderView#saveState(a96750bfbcb1fbe9).());
104 }
105
106 /** Add a song to the playlist */
107 void Playlistcxx . . $ Playlist#::addTrackcxx . . $ Playlist#addTrack(39030c23652f50b4).(QUrlcxx . . $ QUrl# file, PlaylistItemcxx . . $ PlaylistItem#* after)
108 {
109 Trackcxx . . $ Track#* track = new Trackcxx . . $ Track#(file);
110 addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(track, after);
111 }
112
113 void Playlistcxx . . $ Playlist#::addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(Trackcxx . . $ Track#* track, PlaylistItemcxx . . $ PlaylistItem#* after)
114 {
115 if (!track || !track->isValidcxx . . $ Track#isValid(c9857a73d68e59ba).())
116 return;
117 // qDebug() << Q_FUNC_INFO <<":"<<objectName()<<" url="<<track->url();
118 PlaylistItemcxx . . $ PlaylistItem#* item = new PlaylistItemcxx . . $ PlaylistItem#PlaylistItem(12133e763ddaf43d).(this, after);
119 item->setTextscxx . . $ PlaylistItem#setTexts(c7ced298c7283c1a).(track);
120 newPlaylistItemcxx . . $ Playlist#newPlaylistItem. = item;
121 RatingWidgetcxx . . $ RatingWidget#* rating = new RatingWidgetcxx . . $ RatingWidget#(this);
122 rating->setRatingcxx . . $ RatingWidget#setRating(9364e6e7bff7660).(track->ratecxx . . $ Track#rate(b126dc7c1de90089).() * 0.1);
123 QObjectcxx . . $ QObject#::connectcxx . . $ QObject#connect(f4332061c7e4ca89).(rating, SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(RatingChanged(float)),
124 SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(onRatingChanged(float)));
125 setItemWidgetcxx . . $ QTreeWidget#setItemWidget(383a158be8acbe30).(item, PlaylistItemcxx . . $ PlaylistItem#::Column_Ratecxx . . $ PlaylistItem#Column_Rate., rating);
126 }
127
128 /** Add a track and set it as current item */
129 void Playlistcxx . . $ Playlist#::addCurrentTrackcxx . . $ Playlist#addCurrentTrack(c7ced298c7283c1a).(Trackcxx . . $ Track#* track)
130 {
131 // Add if it comes from outsite only
132 bool fromOutsite = true;
133 PlaylistItemcxx . . $ PlaylistItem#* currItem = (PlaylistItemcxx . . $ PlaylistItem#*)currentItemcxx . . $ QTreeWidget#currentItem(faf259b556e61ea0).();
134 if (currItem)
135 if (track->urlcxx . . $ Track#url(db502ccec337722f).() ==cxx . . $ QUrl#`operator==`(dd54f9efb9153ea5). currItem->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->urlcxx . . $ Track#url(db502ccec337722f).())
136 fromOutsite = false;
137
138 if (fromOutsite)
139 addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(track, nullptr);
140 else
141 newPlaylistItemcxx . . $ Playlist#newPlaylistItem. = currItem;
142
143 if (!m_isPlayingcxx . . $ Playlist#m_isPlaying.) {
144 // is not playing, direct into player and roll others
145 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(newPlaylistItemcxx . . $ Playlist#newPlaylistItem.);
146 } else {
147 // is playing, wait and add as next
148 setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(newPlaylistItemcxx . . $ Playlist#newPlaylistItem.);
149 }
150
151 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
152 }
153
154 void Playlistcxx . . $ Playlist#::addNextTrackcxx . . $ Playlist#addNextTrack(c7ced298c7283c1a).(Trackcxx . . $ Track#* track) { Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(track); }
155
156 void Playlistcxx . . $ Playlist#::appendSongcxx . . $ Playlist#appendSong(7df51288a9ebd664).(QStringcxx . . $ QString# songFileName)
157 {
158 return addTrackcxx . . $ Playlist#addTrack(39030c23652f50b4).(songFileNamecxx . . $ QUrl#QUrl(ea1f3831e370f1cb)., (PlaylistItemcxx . . $ PlaylistItem#*)this->lastChildcxx . . $ Playlist#lastChild(51fa73fd7dca94c4).());
159 }
160
161 void Playlistcxx . . $ Playlist#::appendSongcxx . . $ Playlist#appendSong(c7ced298c7283c1a).(Trackcxx . . $ Track#* track)
162 {
163 addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(track, lastChildcxx . . $ Playlist#lastChild(51fa73fd7dca94c4).());
164 checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).();
165 }
166
167 void Playlistcxx . . $ Playlist#::appendListcxx . . $ Playlist#appendList(dcf78a2ef3a8e634).(QListcxx . . $ QList#<QUrlcxx . . $ QUrl#> list)
168 {
169 appendListcxx . . $ Playlist#appendList(d57bff85900e1dfd).(listcxx . . $ QList#QList(3d2301cfd89f773a)., (PlaylistItemcxx . . $ PlaylistItem#*)lastChildcxx . . $ Playlist#lastChild(51fa73fd7dca94c4).());
170 }
171
172 void Playlistcxx . . $ Playlist#::appendListcxx . . $ Playlist#appendList(d57bff85900e1dfd).(const QListcxx . . $ QList#<QUrlcxx . . $ QUrl#> urls, PlaylistItemcxx . . $ PlaylistItem#* after)
173 {
174 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`!;
175
176 int droppedUrlCnt = urls.sizecxx . . $ QList#size(ea6fe5115c70a13f).();
177 for (int i = droppedUrlCnt - 1; i > -1; i--) {
178 QStringcxx . . $ QString# localPath = urls[cxx . . $ QList#`operator[]`(e2681f9bb6b2f357).i].toLocalFilecxx . . $ QUrl#toLocalFile(6ef7b6c27b00b43d).();
179 QFileInfocxx . . $ QFileInfo# fileInfocxx . . $ QFileInfo#QFileInfo(3520e46b33348bf6).(localPath);
180 if (fileInfo.isFilecxx . . $ QFileInfo#isFile(50ce9a9e25b4a850).()) {
181 // file
182 addTrackcxx . . $ Playlist#addTrack(39030c23652f50b4).(urlscxx . . $ QUrl#QUrl(37355d2f77053a23).[cxx . . $ QList#`operator[]`(e2681f9bb6b2f357).i], after);
183 } else if (fileInfo.isDircxx . . $ QFileInfo#isDir(50ce9a9e25b4a850).()) {
184 // directory
185 if (fileInfo.isDircxx . . $ QFileInfo#isDir(50ce9a9e25b4a850).()) {
186 // directory
187 QStringListcxx . . $ QStringList# filterscxx . . $ QStringList#QStringList(ced63f7c635d850d).;
188 filters <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "*.mp3"cxx . . $ QString#QString(85c52e162fed56f9).
189 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "*.ogg"cxx . . $ QString#QString(85c52e162fed56f9).
190 <<cxx . . $ QStringList#`operator<<`(85116071a693d053). "*.wav"cxx . . $ QString#QString(85c52e162fed56f9).;
191
192 QDirIteratorcxx . . $ QDirIterator# itcxx . . $ QDirIterator#QDirIterator(edd097f49f5e9450).(localPath, filters,
193 QDircxx . . $ QDir#::Filescxx . . $ QDir#Files. |cxx . . $ `operator|`(153b300229e4e3d0). QDircxx . . $ QDir#::NoSymLinkscxx . . $ QDir#NoSymLinks. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). QDircxx . . $ QDir#::NoDotAndDotDotcxx . . $ QDir#NoDotAndDotDot.,
194 QDirIteratorcxx . . $ QFlags#QFlags(93d577a3e9528307).::Subdirectoriescxx . . $ QDirIterator#Subdirectories.);
195 while (it.hasNextcxx . . $ QDirIterator#hasNext(50ce9a9e25b4a850).()) {
196 it.nextcxx . . $ QDirIterator#next(4365c3963150523e).();
197 addTrackcxx . . $ Playlist#addTrack(39030c23652f50b4).("file:///"cxx . . $ QUrl#QUrl(ea1f3831e370f1cb). +cxx . . $ operator+(c75c3ae4eb9af1a8). it.filePathcxx . . $ QDirIterator#filePath(6ef7b6c27b00b43d).(), after);
198 }
199 }
200 } else {
201 // none
202 }
203 }
204 checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).();
205 }
206
207 void Playlistcxx . . $ Playlist#::changeTrackscxx . . $ Playlist#changeTracks(c2e0487a5277a49e).(const QListcxx . . $ QList#<Trackcxx . . $ Track#*> tracks)
208 {
209 clearcxx . . $ QTreeWidget#clear(49f6e7a06ebc5aa8).();
210 appendTrackscxx . . $ Playlist#appendTracks(c2e0487a5277a49e).(trackscxx . . $ QList#QList(3d2301cfd89f773a).);
211 }
212
213 void Playlistcxx . . $ Playlist#::appendTrackscxx . . $ Playlist#appendTracks(c2e0487a5277a49e).(const QListcxx . . $ QList#<Trackcxx . . $ Track#*> tracks)
214 {
215 // a week attempt to speed up the setItemWidget time issue
216 setUpdatesEnabledcxx . . $ QWidget#setUpdatesEnabled(b45ddcbc8423892c).(false);
217 bool doSort = isSortingEnabledcxx . . $ QTreeView#isSortingEnabled(50ce9a9e25b4a850).();
218 setSortingEnabledcxx . . $ QTreeView#setSortingEnabled(b45ddcbc8423892c).(false);
219 hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
220
221 appendTrackscxx . . $ Playlist#appendTracks(c63e2316933a5574).(trackscxx . . $ QList#QList(3d2301cfd89f773a)., (PlaylistItemcxx . . $ PlaylistItem#*)lastChildcxx . . $ Playlist#lastChild(51fa73fd7dca94c4).());
222
223 setSortingEnabledcxx . . $ QTreeView#setSortingEnabled(b45ddcbc8423892c).(doSort);
224 setUpdatesEnabledcxx . . $ QWidget#setUpdatesEnabled(b45ddcbc8423892c).(true);
225 showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
226 }
227
228 void Playlistcxx . . $ Playlist#::appendTrackscxx . . $ Playlist#appendTracks(c63e2316933a5574).(QListcxx . . $ QList#<Trackcxx . . $ Track#*> tracks, PlaylistItemcxx . . $ PlaylistItem#* after)
229 {
230 foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (Track* track, tracks) {
231 if (track != nullptr) {
232 addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(new Trackcxx . . $ Track#(*track), after);
233 after = this->newTrackcxx . . $ Playlist#newTrack(51fa73fd7dca94c4).();
234 }
235 }
236 checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).();
237 }
238
239 void Playlistcxx . . $ Playlist#::setPlaylistModecxx . . $ Playlist#setPlaylistMode(2d18f437f150c3ac).(Modecxx . . $ Playlist#Mode# newMode)
240 {
241 m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. = newMode;
242
243 double percent = this->sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().widthcxx . . $ QSize#width(ea6fe5115c70a13f).() / 100.0;
244
245 switch (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode.) {
246 case Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.:
247 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Nocxx . . $ PlaylistItem#Column_No.);
248 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Playedcxx . . $ PlaylistItem#Column_Played.);
249 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Yearcxx . . $ PlaylistItem#Column_Year.);
250 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Genrecxx . . $ PlaylistItem#Column_Genre.);
251 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Tracknumbercxx . . $ PlaylistItem#Column_Tracknumber.);
252 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Albumcxx . . $ PlaylistItem#Column_Album.);
253 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Ratecxx . . $ PlaylistItem#Column_Rate.);
254 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Artistcxx . . $ PlaylistItem#Column_Artist., 22 * percent);
255 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Titlecxx . . $ PlaylistItem#Column_Title., 22 * percent);
256 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Albumcxx . . $ PlaylistItem#Column_Album., 20 * percent);
257 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Lengthcxx . . $ PlaylistItem#Column_Length., 7 * percent);
258 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Genrecxx . . $ PlaylistItem#Column_Genre., 10 * percent);
259 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Yearcxx . . $ PlaylistItem#Column_Year., 8 * percent);
260 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Tracknumbercxx . . $ PlaylistItem#Column_Tracknumber., 5 * percent);
261 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Playedcxx . . $ PlaylistItem#Column_Played., 5 * percent);
262 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Ratecxx . . $ PlaylistItem#Column_Rate., 75);
263 setSortingEnabledcxx . . $ QTreeView#setSortingEnabled(b45ddcbc8423892c).(true);
264 sortByColumncxx . . $ QTreeView#sortByColumn(11168df8d4e8286d).(PlaylistItemcxx . . $ PlaylistItem#::Column_Playedcxx . . $ PlaylistItem#Column_Played., Qtcxx . . $ Qt/::DescendingOrdercxx . . $ Qt/DescendingOrder.);
265 m_CurrentTrackColorcxx . . $ Playlist#m_CurrentTrackColor. =cxx . . $ QColor#`operator=`(7dc25a5504d99c29). Qtcxx . . $ Qt/::whitecxx . . $ Qt/white.;
266 m_NextTrackColorcxx . . $ Playlist#m_NextTrackColor. =cxx . . $ QColor#`operator=`(7dc25a5504d99c29). Qtcxx . . $ Qt/::whitecxx . . $ Qt/white.;
267 break;
268 default:
269 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->showSectioncxx . . $ QHeaderView#showSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Nocxx . . $ PlaylistItem#Column_No.);
270 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Playedcxx . . $ PlaylistItem#Column_Played.);
271 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Yearcxx . . $ PlaylistItem#Column_Year.);
272 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Genrecxx . . $ PlaylistItem#Column_Genre.);
273 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Tracknumbercxx . . $ PlaylistItem#Column_Tracknumber.);
274 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Albumcxx . . $ PlaylistItem#Column_Album.);
275 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->hideSectioncxx . . $ QHeaderView#hideSection(d4f767463ce0a6b3).(PlaylistItemcxx . . $ PlaylistItem#::Column_Ratecxx . . $ PlaylistItem#Column_Rate.);
276 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Nocxx . . $ PlaylistItem#Column_No., 6 * percent);
277 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Artistcxx . . $ PlaylistItem#Column_Artist., 40 * percent);
278 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Titlecxx . . $ PlaylistItem#Column_Title., 40 * percent);
279 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Lengthcxx . . $ PlaylistItem#Column_Length., 10 * percent);
280 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->resizeSectioncxx . . $ QHeaderView#resizeSection(3e454b8ccf442868).(PlaylistItemcxx . . $ PlaylistItem#::Column_Ratecxx . . $ PlaylistItem#Column_Rate., 0);
281 setSortingEnabledcxx . . $ QTreeView#setSortingEnabled(b45ddcbc8423892c).(false);
282 m_CurrentTrackColorcxx . . $ Playlist#m_CurrentTrackColor. =cxx . . $ QColor#`operator=`(fd1b853fb77c9003). QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(255, 100, 100);
283 m_NextTrackColorcxx . . $ Playlist#m_NextTrackColor. =cxx . . $ QColor#`operator=`(fd1b853fb77c9003). QColorcxx . . $ QColor#QColor(2261ffe5112eab06).(200, 200, 255);
284 }
285
286 QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).;
287 if (settings.containscxx . . $ QSettings#contains(f3b39adf77d9c36c).("playlist_" +cxx . . $ operator+(c75c3ae4eb9af1a8). objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).()))
288 headercxx . . $ QTreeView#header(f0c0fe1a435d30ff).()->restoreStatecxx . . $ QHeaderView#restoreState(544790aa27d183a0).(
289 settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("playlist_" +cxx . . $ operator+(c75c3ae4eb9af1a8). objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).()).toByteArraycxx . . $ QVariant#toByteArray(a96750bfbcb1fbe9).());
290
291 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
292 }
293
294 void Playlistcxx . . $ Playlist#::checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).()
295 {
296 if (autoClearOncxx . . $ Playlist#autoClearOn. && newPlaylistItemcxx . . $ Playlist#newPlaylistItem. == firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).())
297 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(newPlaylistItemcxx . . $ Playlist#newPlaylistItem.);
298 if (!currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.)
299 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).());
300
301 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
302 }
303
304 /** handle changes after remove or adding tracks to play list */
305 void Playlistcxx . . $ Playlist#::handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).()
306 {
307 if (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. == Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.)
308 return;
309
310 if (itemBelowcxx . . $ QTreeWidget#itemBelow(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.)) {
311 nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem. = (PlaylistItemcxx . . $ PlaylistItem#*)itemBelowcxx . . $ QTreeWidget#itemBelow(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.);
312 } else {
313 nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem. = nullptr;
314 }
315
316 updatePlaylistItemscxx . . $ Playlist#updatePlaylistItems(49f6e7a06ebc5aa8).();
317
318 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! countChangedcxx . . $ Playlist#countChanged(d4f767463ce0a6b3).(countTrackcxx . . $ Playlist#countTrack(455f465bc33b4cdf).());
319 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! countChangedcxx . . $ Playlist#countChanged(c2e0487a5277a49e).(allTrackscxx . . $ Playlist#allTracks(90c909b7da9f26e2).());
320
321 fillNoColumncxx . . $ Playlist#fillNoColumn(49f6e7a06ebc5aa8).();
322
323 isChangeSignalEnabledcxx . . $ Playlist#isChangeSignalEnabled. = true;
324 }
325
326 void Playlistcxx . . $ Playlist#::setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(PlaylistItemcxx . . $ PlaylistItem#* item)
327 {
328 currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem. = item;
329
330 if (autoClearOncxx . . $ Playlist#autoClearOn.) {
331 // Only for the mode, where current item is always on top of the list
332 if (currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem. != firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).()) {
333 // Move nextPlaylistItem at first row
334 QTreeWidgetItemcxx . . $ QTreeWidgetItem#* child = takeTopLevelItemcxx . . $ QTreeWidget#takeTopLevelItem(b51eb0805714c20f).(indexOfTopLevelItemcxx . . $ QTreeWidget#indexOfTopLevelItem(c49126e84bb13168).(item));
335 this->insertTopLevelItemcxx . . $ QTreeWidget#insertTopLevelItem(6ae10c60cf8dd519).(0, child);
336 currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem. = (PlaylistItemcxx . . $ PlaylistItem#*)child;
337 }
338 }
339
340 if (currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.)
341 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! currentTrackChangedcxx . . $ Playlist#currentTrackChanged(c7ced298c7283c1a).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
342 else
343 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! currentTrackChangedcxx . . $ Playlist#currentTrackChanged(c7ced298c7283c1a).(nullptr);
344 }
345
346 void Playlistcxx . . $ Playlist#::setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(PlaylistItemcxx . . $ PlaylistItem#* item)
347 {
348 if (autoClearOncxx . . $ Playlist#autoClearOn.) {
349 // Move nextPlaylistItem to second row
350 // Only for the mode, where current item is always on top of the list
351 QTreeWidgetItemcxx . . $ QTreeWidgetItem#* child = takeTopLevelItemcxx . . $ QTreeWidget#takeTopLevelItem(b51eb0805714c20f).(indexOfTopLevelItemcxx . . $ QTreeWidget#indexOfTopLevelItem(c49126e84bb13168).(item));
352 this->insertTopLevelItemcxx . . $ QTreeWidget#insertTopLevelItem(6ae10c60cf8dd519).(1, child);
353 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
354 }
355 }
356
357 void Playlistcxx . . $ Playlist#::updatePlaylistItemscxx . . $ Playlist#updatePlaylistItems(49f6e7a06ebc5aa8).()
358 {
359 // Set all items to normal
360 for (PlaylistItemcxx . . $ PlaylistItem#* item = firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).(); item; item = item->nextSiblingcxx . . $ PlaylistItem#nextSibling(51fa73fd7dca94c4).()) {
361 if (item) {
362 item->setFlagscxx . . $ QTreeWidgetItem#setFlags(dc1db7281029bd82).(Qtcxx . . $ Qt/::ItemIsSelectablecxx . . $ Qt/ItemIsSelectable. |cxx . . $ Qt/`operator|`(bcda3d535fff4cd0). Qtcxx . . $ Qt/::ItemIsDragEnabledcxx . . $ Qt/ItemIsDragEnabled. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). Qtcxx . . $ Qt/::ItemIsEnabledcxx . . $ Qt/ItemIsEnabled.);
363 item->setForeColorcxx . . $ PlaylistItem#setForeColor(406700690822ecf).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::whitecxx . . $ Qt/white.);
364 }
365 }
366
367 if (currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.) {
368
369 if (m_isPlayingcxx . . $ Playlist#m_isPlaying.)
370 currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.->setFlagscxx . . $ QTreeWidgetItem#setFlags(dc1db7281029bd82).(Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::ItemIsEnabledcxx . . $ Qt/ItemIsEnabled.);
371 else
372 currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.->setFlagscxx . . $ QTreeWidgetItem#setFlags(dc1db7281029bd82).(Qtcxx . . $ Qt/::ItemIsSelectablecxx . . $ Qt/ItemIsSelectable. |cxx . . $ Qt/`operator|`(bcda3d535fff4cd0). Qtcxx . . $ Qt/::ItemIsDragEnabledcxx . . $ Qt/ItemIsDragEnabled. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). Qtcxx . . $ Qt/::ItemIsEnabledcxx . . $ Qt/ItemIsEnabled.);
373
374 if (!m_isCurrentListcxx . . $ Playlist#m_isCurrentList.)
375 currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.->setForeColorcxx . . $ PlaylistItem#setForeColor(406700690822ecf).(m_CurrentTrackColorcxx . . $ Playlist#m_CurrentTrackColor..darkercxx . . $ QColor#darker(a312dab4e0811e0).(130));
376 else
377 currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.->setForeColorcxx . . $ PlaylistItem#setForeColor(406700690822ecf).(m_CurrentTrackColorcxx . . $ QColor#QColor(c396aab421781ee8).);
378 }
379
380 if (nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.) {
381
382 nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.->setFlagscxx . . $ QTreeWidgetItem#setFlags(dc1db7281029bd82).(Qtcxx . . $ Qt/::ItemIsSelectablecxx . . $ Qt/ItemIsSelectable. |cxx . . $ Qt/`operator|`(bcda3d535fff4cd0). Qtcxx . . $ Qt/::ItemIsDragEnabledcxx . . $ Qt/ItemIsDragEnabled. |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). Qtcxx . . $ Qt/::ItemIsEnabledcxx . . $ Qt/ItemIsEnabled.);
383
384 if (!m_isCurrentListcxx . . $ Playlist#m_isCurrentList.)
385 nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.->setForeColorcxx . . $ PlaylistItem#setForeColor(406700690822ecf).(m_NextTrackColorcxx . . $ Playlist#m_NextTrackColor..darkercxx . . $ QColor#darker(a312dab4e0811e0).(130));
386 else
387 nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.->setForeColorcxx . . $ PlaylistItem#setForeColor(406700690822ecf).(m_NextTrackColorcxx . . $ QColor#QColor(c396aab421781ee8).);
388 }
389 }
390
391 QListcxx . . $ QList#<Trackcxx . . $ Track#*> Playlistcxx . . $ Playlist#::allTrackscxx . . $ Playlist#allTracks(90c909b7da9f26e2).()
392 {
393 QListcxx . . $ QList#<Trackcxx . . $ Track#*> trackListcxx . . $ QList#QList(ced63f7c635d850d).;
394 for (int i = 0; i < this->topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).(); i++) {
395 if (PlaylistItemcxx . . $ PlaylistItem#* item = dynamic_cast<PlaylistItemcxx . . $ PlaylistItem#*>(this->topLevelItemcxx . . $ QTreeWidget#topLevelItem(bdbf10533f234380).(i))) {
396 if (item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->isValidcxx . . $ Track#isValid(c9857a73d68e59ba).())
397 trackList.appendcxx . . $ QList#append(77d9f17553126ecb).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
398 }
399 }
400 return trackListcxx . . $ QList#QList(88d75cd4b19cb2d1).;
401 }
402
403 void Playlistcxx . . $ Playlist#::removePlaylistItemcxx . . $ Playlist#removePlaylistItem(dff075faafa5ad4b).(PlaylistItemcxx . . $ PlaylistItem#* item)
404 {
405 if (item) {
406 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ":" <<cxx . . $ `operator<<`(56a6a0968dd55378). item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->urlcxx . . $ Track#url(db502ccec337722f).();
407
408 // unset if not available any more
409 if (item == currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.)
410 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(nullptr);
411 if (item == nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.)
412 setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(nullptr);
413
414 newPlaylistItemcxx . . $ Playlist#newPlaylistItem. = nullptr;
415
416 takeTopLevelItemcxx . . $ QTreeWidget#takeTopLevelItem(b51eb0805714c20f).(indexOfTopLevelItemcxx . . $ QTreeWidget#indexOfTopLevelItem(c49126e84bb13168).(item));
417 delete item;
418 }
419 }
420
421 void Playlistcxx . . $ Playlist#::skipForwardcxx . . $ Playlist#skipForward(49f6e7a06ebc5aa8).()
422 {
423 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ":" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).();
424
425 // remove previous item at last due to keep playing
426 if (autoClearOncxx . . $ Playlist#autoClearOn.) {
427 previousPlaylistItemcxx . . $ Playlist#previousPlaylistItem. = currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.;
428 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).((PlaylistItemcxx . . $ PlaylistItem#*)itemBelowcxx . . $ QTreeWidget#itemBelow(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.));
429 removePlaylistItemcxx . . $ Playlist#removePlaylistItem(dff075faafa5ad4b).(previousPlaylistItemcxx . . $ Playlist#previousPlaylistItem.);
430 } else {
431 if (itemBelowcxx . . $ QTreeWidget#itemBelow(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.)) {
432 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).((PlaylistItemcxx . . $ PlaylistItem#*)itemBelowcxx . . $ QTreeWidget#itemBelow(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.));
433 }
434 }
435 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
436 }
437
438 void Playlistcxx . . $ Playlist#::skipRewindcxx . . $ Playlist#skipRewind(49f6e7a06ebc5aa8).()
439 {
440 if (itemAbovecxx . . $ QTreeWidget#itemAbove(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.)) {
441 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).((PlaylistItemcxx . . $ PlaylistItem#*)itemAbovecxx . . $ QTreeWidget#itemAbove(eb661a0480530517).(currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.));
442 }
443 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
444 }
445
446 QStringcxx . . $ QString# Playlistcxx . . $ Playlist#::defaultPlaylistPathcxx . . $ Playlist#defaultPlaylistPath(4365c3963150523e).()
447 {
448 #if QT_VERSIONcxx . . $ `<external>/15045578679651060896/qglobal.h:57:9`! >= 0x050000
449 QStringcxx . . $ QString# pathName = QStandardPathscxx . . $ QString#QString(132dd6869045752b).::standardLocationscxx . . $ QStandardPaths#standardLocations(88c3720734e7e359).(QStandardPathscxx . . $ QStandardPaths#::DataLocationcxx . . $ QStandardPaths#DataLocation.).atcxx . . $ QList#at(e2681f9bb6b2f357).(0);
450 #else
451 QString pathName = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
452 #endif
453 QDircxx . . $ QDir# pathcxx . . $ QDir#QDir(3520e46b33348bf6).(pathName);
454
455 if (!path.existscxx . . $ QDir#exists(50ce9a9e25b4a850).())
456 path.mkpathcxx . . $ QDir#mkpath(f3b39adf77d9c36c).(pathName);
457
458 return path.absolutePathcxx . . $ QDir#absolutePath(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "/" +cxx . . $ operator+(fab9b4f80031f353). this->objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). ".xspf";
459 }
460
461 // Export content as a xspf playlist
462 void Playlistcxx . . $ Playlist#::saveXMLcxx . . $ Playlist#saveXML(7fba01612ab56717).(const QStringcxx . . $ QString#& path) const
463 {
464 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "BEGIN ";
465 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(path);
466
467 if (!file.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFlags#QFlags(93d577a3e9528307).::WriteOnlycxx . . $ QIODevice#WriteOnly.))
468 return;
469
470 QDomDocumentcxx . . $ QDomDocument# newdoccxx . . $ QDomDocument#QDomDocument(49f6e7a06ebc5aa8).;
471 QDomElementcxx . . $ QDomElement# playlistElem = newdoc.createElementcxx . . $ QDomDocument#createElement(2ec621aca303d14e).("playlist"cxx . . $ QString#QString(85c52e162fed56f9).);
472 playlistElem.setAttributecxx . . $ QDomElement#setAttribute(c1427772cd1877b0).("version"cxx . . $ QString#QString(85c52e162fed56f9)., "1"cxx . . $ QString#QString(85c52e162fed56f9).);
473 playlistElem.setAttributecxx . . $ QDomElement#setAttribute(c1427772cd1877b0).("xmlns"cxx . . $ QString#QString(85c52e162fed56f9)., "http://xspf.org/ns/0/"cxx . . $ QString#QString(85c52e162fed56f9).);
474 newdoc.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(playlistElem);
475
476 QDomElementcxx . . $ QDomElement# elem = newdoc.createElementcxx . . $ QDomDocument#createElement(2ec621aca303d14e).("creator"cxx . . $ QString#QString(85c52e162fed56f9).);
477 QDomTextcxx . . $ QDomText# t = newdoc.createTextNodecxx . . $ QDomDocument#createTextNode(9b156b786da100e8).("Knowthelist"cxx . . $ QString#QString(85c52e162fed56f9).);
478 elem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(t);
479 playlistElem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(elem);
480
481 QDomElementcxx . . $ QDomElement# listElem = newdoc.createElementcxx . . $ QDomDocument#createElement(2ec621aca303d14e).("trackList"cxx . . $ QString#QString(85c52e162fed56f9).);
482
483 for (PlaylistItemcxx . . $ PlaylistItem#* item = firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).(); item; item = item->nextSiblingcxx . . $ PlaylistItem#nextSibling(51fa73fd7dca94c4).()) {
484 if (item) {
485 QDomElementcxx . . $ QDomElement# trackElem = newdoc.createElementcxx . . $ QDomDocument#createElement(2ec621aca303d14e).("track"cxx . . $ QString#QString(85c52e162fed56f9).);
486
487 QDomElementcxx . . $ QDomElement# extElem = newdoc.createElementcxx . . $ QDomDocument#createElement(2ec621aca303d14e).("extension"cxx . . $ QString#QString(85c52e162fed56f9).);
488
489 if (currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem. && item == currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.) {
490 extElem.setAttributecxx . . $ QDomElement#setAttribute(c1427772cd1877b0).("current"cxx . . $ QString#QString(85c52e162fed56f9)., "1"cxx . . $ QString#QString(85c52e162fed56f9).);
491 }
492 if (item == nextTrackcxx . . $ Playlist#nextTrack(51fa73fd7dca94c4).()) {
493 extElem.setAttributecxx . . $ QDomElement#setAttribute(c1427772cd1877b0).("next"cxx . . $ QString#QString(85c52e162fed56f9)., "1"cxx . . $ QString#QString(85c52e162fed56f9).);
494 }
495 if (item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->flagscxx . . $ Track#flags(6ce10c0cf6a51a1f).().testFlagcxx . . $ QFlags#testFlag(b276817fac6c20d5).(Trackcxx . . $ Track#::isAutoDjSelectioncxx . . $ Track#isAutoDjSelection.)) {
496 extElem.setAttributecxx . . $ QDomElement#setAttribute(c1427772cd1877b0).("isAutoDjSelection"cxx . . $ QString#QString(85c52e162fed56f9)., "1"cxx . . $ QString#QString(85c52e162fed56f9).);
497 }
498
499 QStringListcxx . . $ QStringList# tag = item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->tagListcxx . . $ Track#tagList(669a05bc42dd57cc).();
500
501 for (int x = 0; x < tag.countcxx . . $ QList#count(455f465bc33b4cdf).(); ++x) {
502 if (x == 4 || x == 5) {
503 extElem.setAttributecxx . . $ QDomElement#setAttribute(c1427772cd1877b0).(Trackcxx . . $ Track#::tagNameListcxx . . $ Track#tagNameList..atcxx . . $ QList#at(e2681f9bb6b2f357).(x), tag.atcxx . . $ QList#at(e2681f9bb6b2f357).(x));
504 } else {
505 QDomElementcxx . . $ QDomElement# elem = newdoc.createElementcxx . . $ QDomDocument#createElement(2ec621aca303d14e).(Trackcxx . . $ Track#::tagNameListcxx . . $ Track#tagNameList..atcxx . . $ QList#at(e2681f9bb6b2f357).(x));
506 QDomTextcxx . . $ QDomText# t = newdoc.createTextNodecxx . . $ QDomDocument#createTextNode(9b156b786da100e8).(tag.atcxx . . $ QList#at(e2681f9bb6b2f357).(x));
507 elem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(t);
508 trackElem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(elem);
509 }
510 }
511
512 trackElem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(extElem);
513 listElem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(trackElem);
514 }
515 }
516
517 playlistElem.appendChildcxx . . $ QDomNode#appendChild(1fce9d70e2f1e814).(listElem);
518
519 QTextStreamcxx . . $ QTextStream# streamcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&file);
520 stream.setCodeccxx . . $ QTextStream#setCodec(85c52e162fed56f9).("UTF-8");
521 stream <<cxx . . $ QTextStream#`operator<<`(a8e98279dde0dccf). "<?xml version=\"1.0\" encoding=\"utf8\"?>\n";
522 stream <<cxx . . $ QTextStream#`operator<<`(f61e69e0d177108f). newdoc.toStringcxx . . $ QDomDocument#toString(3f3c3d0e9c0eb37f).();
523 file.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).();
524 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "END ";
525 }
526
527 void Playlistcxx . . $ Playlist#::loadXMLcxx . . $ Playlist#loadXML(3520e46b33348bf6).(const QStringcxx . . $ QString#& path)
528 {
529 QFilecxx . . $ QFile# filecxx . . $ QFile#QFile(3520e46b33348bf6).(path);
530
531 if (file.opencxx . . $ QFile#open(dca164408be960c8).(QFilecxx . . $ QFlags#QFlags(93d577a3e9528307).::ReadOnlycxx . . $ QIODevice#ReadOnly.)) {
532 QTextStreamcxx . . $ QTextStream# streamcxx . . $ QTextStream#QTextStream(bebe8f2dee7f9e86).(&file);
533
534 stream.setCodeccxx . . $ QTextStream#setCodec(1f30447839ed391).(QTextCodeccxx . . $ QTextCodec#::codecForNamecxx . . $ QTextCodec#codecForName(914382192c9ca379).("utf8"));
535 QDomDocumentcxx . . $ QDomDocument# dcxx . . $ QDomDocument#QDomDocument(49f6e7a06ebc5aa8).;
536 if (!d.setContentcxx . . $ QDomDocument#setContent(5b338a9da9a4e0fe).(stream.readAllcxx . . $ QTextStream#readAll(4365c3963150523e).())) {
537 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Could not load XML\n";
538 return;
539 }
540
541 QDomNodecxx . . $ QDomNode# n = d.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("playlist"cxx . . $ QString#QString(85c52e162fed56f9).).namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("trackList"cxx . . $ QString#QString(85c52e162fed56f9).).firstChildcxx . . $ QDomNode#firstChild(573df4c535fc6ee7).();
542
543 const QStringcxx . . $ QString# TRACKcxx . . $ QString#QString(85c52e162fed56f9).(
544 "track"); // so we don't construct the QStrings all the time
545 const QStringcxx . . $ QString# URLcxx . . $ QString#QString(85c52e162fed56f9).("url");
546 const QStringcxx . . $ QString# CURRENTcxx . . $ QString#QString(85c52e162fed56f9).("current");
547 const QStringcxx . . $ QString# NEXTcxx . . $ QString#QString(85c52e162fed56f9).("next");
548
549 while (!n.isNullcxx . . $ QDomNode#isNull(50ce9a9e25b4a850).()) {
550 if (n.nodeNamecxx . . $ QDomNode#nodeName(6ef7b6c27b00b43d).() ==cxx . . $ `operator==`(5bc2975d2d751687). TRACK) {
551 const QDomElementcxx . . $ QDomElement# e = n.toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).();
552 if (e.isNullcxx . . $ QDomNode#isNull(50ce9a9e25b4a850).()) {
553 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Element '" <<cxx . . $ QDebug#`operator<<`(4cf17434affdd8). n.nodeNamecxx . . $ QDomNode#nodeName(6ef7b6c27b00b43d).() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "' is null, skipping.";
554 continue;
555 }
556
557 // qDebug() << "Add from xml url='" << e.attribute( URL );
558 Trackcxx . . $ Track#* track = new Trackcxx . . $ Track#();
559 track->setUrlcxx . . $ Track#setUrl(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl#::fromLocalFilecxx . . $ QUrl#fromLocalFile(daf4b0201622af21).(
560 e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("location"cxx . . $ QString#QString(85c52e162fed56f9).).firstChildcxx . . $ QDomNode#firstChild(573df4c535fc6ee7).().nodeValuecxx . . $ QDomNode#nodeValue(6ef7b6c27b00b43d).()));
561 track->setArtistcxx . . $ Track#setArtist(7df51288a9ebd664).(e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("creator"cxx . . $ QString#QString(85c52e162fed56f9).).firstChildcxx . . $ QDomNode#firstChild(573df4c535fc6ee7).().nodeValuecxx . . $ QDomNode#nodeValue(6ef7b6c27b00b43d).());
562 track->setTitlecxx . . $ Track#setTitle(7df51288a9ebd664).(e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("title"cxx . . $ QString#QString(85c52e162fed56f9).).firstChildcxx . . $ QDomNode#firstChild(573df4c535fc6ee7).().nodeValuecxx . . $ QDomNode#nodeValue(6ef7b6c27b00b43d).());
563 track->setAlbumcxx . . $ Track#setAlbum(7df51288a9ebd664).(e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("album"cxx . . $ QString#QString(85c52e162fed56f9).).firstChildcxx . . $ QDomNode#firstChild(573df4c535fc6ee7).().nodeValuecxx . . $ QDomNode#nodeValue(6ef7b6c27b00b43d).());
564 track->setGenrecxx . . $ Track#setGenre(7df51288a9ebd664).(
565 e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("extension"cxx . . $ QString#QString(85c52e162fed56f9).).toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).().attributecxx . . $ QDomElement#attribute(11b1083083847b8e).("genre"cxx . . $ QString#QString(85c52e162fed56f9).));
566 track->setYearcxx . . $ Track#setYear(7df51288a9ebd664).(e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("extension"cxx . . $ QString#QString(85c52e162fed56f9).).toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).().attributecxx . . $ QDomElement#attribute(11b1083083847b8e).("year"cxx . . $ QString#QString(85c52e162fed56f9).));
567 track->setLengthcxx . . $ Track#setLength(7df51288a9ebd664).(e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("duration"cxx . . $ QString#QString(85c52e162fed56f9).).firstChildcxx . . $ QDomNode#firstChild(573df4c535fc6ee7).().nodeValuecxx . . $ QDomNode#nodeValue(6ef7b6c27b00b43d).());
568 track->setCountercxx . . $ Track#setCounter(7df51288a9ebd664).("0"cxx . . $ QString#QString(85c52e162fed56f9).);
569 if (e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("extension"cxx . . $ QString#QString(85c52e162fed56f9).)
570 .toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).()
571 .attributecxx . . $ QDomElement#attribute(11b1083083847b8e).("isAutoDjSelection"cxx . . $ QString#QString(85c52e162fed56f9).)
572 ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "1")
573 track->setFlagscxx . . $ Track#setFlags(e362d3aff087b916).(track->flagscxx . . $ Track#flags(6ce10c0cf6a51a1f).() |cxx . . $ QFlags#`operator|`(2cc1994e0be6f18e). Trackcxx . . $ Track#::isAutoDjSelectioncxx . . $ Track#isAutoDjSelection.);
574
575 appendSongcxx . . $ Playlist#appendSong(c7ced298c7283c1a).(track);
576
577 if (e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("extension"cxx . . $ QString#QString(85c52e162fed56f9).).toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).().attributecxx . . $ QDomElement#attribute(11b1083083847b8e).(CURRENT) ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "1")
578 this->setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(newPlaylistItemcxx . . $ Playlist#newPlaylistItem.);
579 if (e.namedItemcxx . . $ QDomNode#namedItem(e7ddab27ad92952b).("extension"cxx . . $ QString#QString(85c52e162fed56f9).).toElementcxx . . $ QDomNode#toElement(654df8c29726cab1).().attributecxx . . $ QDomElement#attribute(11b1083083847b8e).(NEXT) ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "1")
580 this->setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(newPlaylistItemcxx . . $ Playlist#newPlaylistItem.);
581 }
582 n =cxx . . $ QDomNode#`operator=`(942bdfb15aedefaf). n.nextSiblingcxx . . $ QDomNode#nextSibling(573df4c535fc6ee7).();
583 }
584 }
585 file.closecxx . . $ QFileDevice#close(49f6e7a06ebc5aa8).();
586
587 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "End " <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`!;
588 }
589
590 void Playlistcxx . . $ Playlist#::removeSelectedItemscxx . . $ Playlist#removeSelectedItems(49f6e7a06ebc5aa8).()
591 {
592 if (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. == Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.)
593 return;
594
595 QListIteratorcxx . . $ QListIterator#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> itcxx . . $ QListIterator#QListIterator(742a15f66a895bc5).(selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).());
596
597 while (it.hasNextcxx . . $ QListIterator#hasNext(50ce9a9e25b4a850).()) {
598 PlaylistItemcxx . . $ PlaylistItem#* item = dynamic_cast<PlaylistItemcxx . . $ PlaylistItem#*>(it.nextcxx . . $ QListIterator#next(1306adbac230aeaa).());
599 if (item != currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem. || (!m_isPlayingcxx . . $ Playlist#m_isPlaying.))
600 removePlaylistItemcxx . . $ Playlist#removePlaylistItem(dff075faafa5ad4b).(item);
601 }
602
603 if (this->topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).() > 1 || !this->isPlayingcxx . . $ Playlist#isPlaying(c9857a73d68e59ba).())
604 checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).();
605 }
606
607 void Playlistcxx . . $ Playlist#::fillNoColumncxx . . $ Playlist#fillNoColumn(49f6e7a06ebc5aa8).()
608 {
609
610 int no = 0;
611 int i = 0;
612
613 for (int ii = 0; ii < this->topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).(); ii++) {
614 QTreeWidgetItemcxx . . $ QTreeWidgetItem#* item = this->topLevelItemcxx . . $ QTreeWidget#topLevelItem(bdbf10533f234380).(ii);
615
616 // if this item number is less then then alternateMax increment 2
617 // (alternate) else 1 alternateMax is equal to the count of then other
618 // player+1
619 i++;
620
621 // qDebug() << this->name() << ": markNextTrack(): " << markNextTrack();
622
623 if (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. != Playlistcxx . . $ Playlist#::Playlist_Multicxx . . $ Playlist#Playlist_Multi.)
624 no = i;
625 else if (i > m_alternateMaxcxx . . $ Playlist#m_alternateMax.)
626 no = i + m_alternateMaxcxx . . $ Playlist#m_alternateMax.;
627 else {
628 if (m_isCurrentListcxx . . $ Playlist#m_isCurrentList.)
629 no = i * 2 - 1;
630 else
631 no = i * 2;
632 }
633
634 // qDebug() << this->name() << ": m_alternateMax: " << m_alternateMax << "
635 // i: " << i << " no: " << no;
636 item->setTextcxx . . $ QTreeWidgetItem#setText(4b11a7293b4ed91c).(PlaylistItemcxx . . $ PlaylistItem#::Column_Nocxx . . $ PlaylistItem#Column_No., QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(no));
637 }
638 }
639
640 void Playlistcxx . . $ Playlist#::onRatingChangedcxx . . $ Playlist#onRatingChanged(9364e6e7bff7660).(float rate)
641 {
642 if (RatingWidgetcxx . . $ RatingWidget#* rateWidget = dynamic_cast<RatingWidgetcxx . . $ RatingWidget#*>(QObjectcxx . . $ QObject#::sendercxx . . $ QObject#sender(2dbb680a34285c44).())) {
643
644 QModelIndexcxx . . $ QModelIndex# modidx = indexAtcxx . . $ QTreeView#indexAt(90c2c28d33eadf46).(QPointcxx . . $ QPoint#QPoint(3e454b8ccf442868).(0, rateWidget->poscxx . . $ QWidget#pos(75d69cfbd3c4b2dd).().ycxx . . $ QPoint#y(455f465bc33b4cdf).()));
645 (PlaylistItemcxx . . $ PlaylistItem#*)this->itemFromIndexcxx . . $ QTreeWidget#itemFromIndex(b5041beedf1936a1).(modidx);
646 if (PlaylistItemcxx . . $ PlaylistItem#* item = (PlaylistItemcxx . . $ PlaylistItem#*)this->itemFromIndexcxx . . $ QTreeWidget#itemFromIndex(b5041beedf1936a1).(modidx)) {
647 Trackcxx . . $ Track#* track = item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).();
648 if (track) {
649 track->setRatecxx . . $ Track#setRate(d4f767463ce0a6b3).(rate * 10);
650 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ `operator<<`(56a6a0968dd55378). item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->urlcxx . . $ Track#url(db502ccec337722f).();
651 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! trackPropertyChangedcxx . . $ Playlist#trackPropertyChanged(c7ced298c7283c1a).(track);
652 }
653 }
654 }
655 }
656
657 void Playlistcxx . . $ Playlist#::slotItemChangedcxx . . $ Playlist#slotItemChanged(5ef89140c59dd28e).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* current,
658 QTreeWidgetItemcxx . . $ QTreeWidgetItem#* previous)
659 {
660 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(previous);
661 if ((selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).().countcxx . . $ QList#count(455f465bc33b4cdf).() > 1) || (selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).().countcxx . . $ QList#count(455f465bc33b4cdf).() == 0))
662 return;
663
664 PlaylistItemcxx . . $ PlaylistItem#* item = static_cast<PlaylistItemcxx . . $ PlaylistItem#*>(current);
665
666 if (item && isChangeSignalEnabledcxx . . $ Playlist#isChangeSignalEnabled.)
667 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! trackSelectedcxx . . $ Playlist#trackSelected(c7ced298c7283c1a).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
668 }
669
670 void Playlistcxx . . $ Playlist#::slotItemDoubleClickedcxx . . $ Playlist#slotItemDoubleClicked(abbf99ae0f1fc9f0).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* sender, int column)
671 {
672 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(column);
673 PlaylistItemcxx . . $ PlaylistItem#* item = static_cast<PlaylistItemcxx . . $ PlaylistItem#*>(sender);
674
675 if (item)
676 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! trackDoubleClickedcxx . . $ Playlist#trackDoubleClicked(c7ced298c7283c1a).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
677 }
678
679 void Playlistcxx . . $ Playlist#::slotItemClickedcxx . . $ Playlist#slotItemClicked(abbf99ae0f1fc9f0).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* after, int col)
680 {
681 isChangeSignalEnabledcxx . . $ Playlist#isChangeSignalEnabled. = true;
682
683 PlaylistItemcxx . . $ PlaylistItem#* item = static_cast<PlaylistItemcxx . . $ PlaylistItem#*>(after);
684
685 if (item)
686 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! trackSelectedcxx . . $ Playlist#trackSelected(c7ced298c7283c1a).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
687 }
688
689 // avoid multiple drops on quick drags
690 void Playlistcxx . . $ Playlist#::timeoutDragLockcxx . . $ Playlist#timeoutDragLock(49f6e7a06ebc5aa8).()
691 {
692 m_dragLockedcxx . . $ Playlist#m_dragLocked. = false;
693 timerDragLockcxx . . $ Playlist#timerDragLock.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
694 }
695
696 // prevent click event if doubleclicked
697 void Playlistcxx . . $ Playlist#::emitClickedcxx . . $ Playlist#emitClicked(49f6e7a06ebc5aa8).()
698 {
699 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! itemClickedcxx . . $ QTreeWidget#itemClicked(abbf99ae0f1fc9f0).(currentItemcxx . . $ QTreeWidget#currentItem(faf259b556e61ea0).(), currentColumncxx . . $ QTreeWidget#currentColumn(455f465bc33b4cdf).());
700 timercxx . . $ Playlist#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
701 }
702
703 void Playlistcxx . . $ Playlist#::mouseReleaseEventcxx . . $ Playlist#mouseReleaseEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event)
704 {
705 if (!ignoreNextReleasecxx . . $ Playlist#ignoreNextRelease.) {
706 timercxx . . $ Playlist#timer.->startcxx . . $ QTimer#start(d4f767463ce0a6b3).(QApplicationcxx . . $ QApplication#::doubleClickIntervalcxx . . $ QApplication#doubleClickInterval(b126dc7c1de90089).());
707 blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(true);
708 QTreeWidgetcxx . . $ QTreeWidget#::mouseReleaseEventcxx . . $ QTreeView#mouseReleaseEvent(702858a82d06265c).(event);
709 blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(false);
710 }
711 ignoreNextReleasecxx . . $ Playlist#ignoreNextRelease. = false;
712 }
713
714 void Playlistcxx . . $ Playlist#::mouseDoubleClickEventcxx . . $ Playlist#mouseDoubleClickEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event)
715 {
716 ignoreNextReleasecxx . . $ Playlist#ignoreNextRelease. = true;
717 timercxx . . $ Playlist#timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
718 QTreeWidgetcxx . . $ QTreeWidget#::mouseDoubleClickEventcxx . . $ QTreeView#mouseDoubleClickEvent(702858a82d06265c).(event);
719 }
720
721 void Playlistcxx . . $ Playlist#::mousePressEventcxx . . $ Playlist#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* e)
722 {
723 if (e->buttoncxx . . $ QMouseEvent#button(4a2598559eeedfc9).() == Qtcxx . . $ Qt/::LeftButtoncxx . . $ Qt/LeftButton.) {
724 startPoscxx . . $ Playlist#startPos. =cxx . . $ QPoint#`operator=`(2950c70ea382b4e5). e->poscxx . . $ QMouseEvent#pos(75d69cfbd3c4b2dd).();
725 }
726 QTreeWidgetcxx . . $ QTreeWidget#::mousePressEventcxx . . $ QTreeView#mousePressEvent(702858a82d06265c).(e);
727
728 if (e->buttoncxx . . $ QMouseEvent#button(4a2598559eeedfc9).() == Qtcxx . . $ Qt/::RightButtoncxx . . $ Qt/RightButton.)
729 showContextMenucxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).(dynamic_cast<PlaylistItemcxx . . $ PlaylistItem#*>(currentItemcxx . . $ QTreeWidget#currentItem(faf259b556e61ea0).()),
730 currentColumncxx . . $ QTreeWidget#currentColumn(455f465bc33b4cdf).());
731 }
732
733 void Playlistcxx . . $ Playlist#::mouseMoveEventcxx . . $ Playlist#mouseMoveEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event)
734 {
735 if (event->buttonscxx . . $ QMouseEvent#buttons(4523555da7f36dd2).() &cxx . . $ QFlags#`operator&`(2cc1994e0be6f18e). Qtcxx . . $ Qt/::LeftButtoncxx . . $ Qt/LeftButton.) {
736 int distance = (event->poscxx . . $ QMouseEvent#pos(75d69cfbd3c4b2dd).() -cxx . . $ operator-(e1fd31f94663a124). startPoscxx . . $ Playlist#startPos.).manhattanLengthcxx . . $ QPoint#manhattanLength(455f465bc33b4cdf).();
737 if (distance >= QApplicationcxx . . $ QApplication#::startDragDistancecxx . . $ QApplication#startDragDistance(b126dc7c1de90089).() && !m_dragLockedcxx . . $ Playlist#m_dragLocked.) {
738 performDragcxx . . $ Playlist#performDrag(49f6e7a06ebc5aa8).();
739 }
740 }
741 }
742
743 void Playlistcxx . . $ Playlist#::performDragcxx . . $ Playlist#performDrag(49f6e7a06ebc5aa8).()
744 {
745 m_dragLockedcxx . . $ Playlist#m_dragLocked. = true;
746 QByteArraycxx . . $ QByteArray# itemDatacxx . . $ QByteArray#QByteArray(ced63f7c635d850d).;
747 QDataStreamcxx . . $ QDataStream# dataStreamcxx . . $ QDataStream#QDataStream(3ec9af543aa5ce32).(&itemData, QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::WriteOnlycxx . . $ QIODevice#WriteOnly.);
748 QVectorcxx . . $ QVector#<QStringListcxx . . $ QStringList#> tagscxx . . $ QVector#QVector(ced63f7c635d850d).;
749 QPixmapcxx . . $ QPixmap# covercxx . . $ QPixmap#QPixmap(49f6e7a06ebc5aa8).;
750 int i = 0;
751
752 // iterate selected items
753 QListIteratorcxx . . $ QListIterator#<QTreeWidgetItemcxx . . $ QTreeWidgetItem#*> itcxx . . $ QListIterator#QListIterator(742a15f66a895bc5).(selectedItemscxx . . $ QTreeWidget#selectedItems(e591029002818eb9).());
754 while (it.hasNextcxx . . $ QListIterator#hasNext(50ce9a9e25b4a850).()) {
755 PlaylistItemcxx . . $ PlaylistItem#* item = dynamic_cast<PlaylistItemcxx . . $ PlaylistItem#*>(it.nextcxx . . $ QListIterator#next(1306adbac230aeaa).());
756 if ((item != currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem. || (!m_isPlayingcxx . . $ Playlist#m_isPlaying.)) && item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->isValidcxx . . $ Track#isValid(c9857a73d68e59ba).()) {
757 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ": send Data:" <<cxx . . $ `operator<<`(56a6a0968dd55378). item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->urlcxx . . $ Track#url(db502ccec337722f).();
758 QStringListcxx . . $ QStringList# tag = item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->tagListcxx . . $ Track#tagList(669a05bc42dd57cc).();
759 tags <<cxx . . $ QVector#`operator<<`(85c729c83851d88d). tag;
760 if (i == 0) {
761 cover =cxx . . $ QPixmap#`operator=`(4972951fe8d596b5). QPixmapcxx . . $ QPixmap#::fromImagecxx . . $ QPixmap#fromImage(e505d3bc722e23e8).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->coverImagecxx . . $ Track#coverImage(89a140e6ec82607c).());
762 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! trackSelectedcxx . . $ Playlist#trackSelected(c7ced298c7283c1a).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
763 }
764 i++;
765 }
766 }
767
768 dataStream <<cxx . . $ `operator<<`(b50e33aa6f8dcfc6). tags;
769
770 QMimeDatacxx . . $ QMimeData#* mimeData = new QMimeDatacxx . . $ QMimeData#QMimeData(49f6e7a06ebc5aa8).;
771 mimeData->setDatacxx . . $ QMimeData#setData(88f4c41ca0e941aa).("text/playlistitem"cxx . . $ QString#QString(85c52e162fed56f9)., itemData);
772
773 QDragcxx . . $ QDrag#* drag = new QDragcxx . . $ QDrag#QDrag(749de1b6ae65bddd).(this);
774 drag->setMimeDatacxx . . $ QDrag#setMimeData(bd56712671a29709).(mimeData);
775
776 if (!cover.isNullcxx . . $ QPixmap#isNull(50ce9a9e25b4a850).())
777 drag->setPixmapcxx . . $ QDrag#setPixmap(8887f7d25b86c3f4).(cover.scaledcxx . . $ QPixmap#scaled(c50953aa0e7da3b9).(50, 50));
778
779 timerDragLockcxx . . $ Playlist#timerDragLock.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
780
781 Qtcxx . . $ Qt/::DropActioncxx . . $ Qt/DropAction# dropAction = (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. != Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.) ? Qtcxx . . $ Qt/::MoveActioncxx . . $ Qt/MoveAction. : Qtcxx . . $ Qt/::CopyActioncxx . . $ Qt/CopyAction.;
782
783 if (drag->execcxx . . $ QDrag#exec(699ed7f230d6996f).(dropActioncxx . . $ QFlags#QFlags(93d577a3e9528307).) == Qtcxx . . $ Qt/::MoveActioncxx . . $ Qt/MoveAction.) {
784 // ToDo: before remove, give over current or next Track to newTrack, if
785 // within the same playlist
786 isChangeSignalEnabledcxx . . $ Playlist#isChangeSignalEnabled. = false;
787 removeSelectedItemscxx . . $ Playlist#removeSelectedItems(49f6e7a06ebc5aa8).();
788 }
789 }
790
791 void Playlistcxx . . $ Playlist#::dragEnterEventcxx . . $ Playlist#dragEnterEvent(f87bde08e579de69).(QDragEnterEventcxx . . $ QDragEnterEvent#* event)
792 {
793 if (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. == Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.) {
794 event->ignorecxx . . $ QDragMoveEvent#ignore(49f6e7a06ebc5aa8).();
795 return;
796 }
797 if (event->mimeDatacxx . . $ QDropEvent#mimeData(30712b663b74d9e6).()->hasFormatcxx . . $ QMimeData#hasFormat(f3b39adf77d9c36c).("text/uri-list"cxx . . $ QString#QString(85c52e162fed56f9).) || event->mimeDatacxx . . $ QDropEvent#mimeData(30712b663b74d9e6).()->hasFormatcxx . . $ QMimeData#hasFormat(f3b39adf77d9c36c).("text/playlistitem"cxx . . $ QString#QString(85c52e162fed56f9).)) {
798 event->acceptProposedActioncxx . . $ QDropEvent#acceptProposedAction(49f6e7a06ebc5aa8).();
799 }
800 }
801
802 void Playlistcxx . . $ Playlist#::dropEventcxx . . $ Playlist#dropEvent(163a41ccaa120447).(QDropEventcxx . . $ QDropEvent#* event)
803 {
804 m_isInternDropcxx . . $ Playlist#m_isInternDrop. = false;
805
806 if (event->mimeDatacxx . . $ QDropEvent#mimeData(30712b663b74d9e6).()->hasUrlscxx . . $ QMimeData#hasUrls(50ce9a9e25b4a850).()) {
807 QListcxx . . $ QList#<QUrlcxx . . $ QUrl#> urlList = event->mimeDatacxx . . $ QDropEvent#mimeData(30712b663b74d9e6).()->urlscxx . . $ QMimeData#urls(c6c41d17fe0b8cf7).(); // returns list of QUrls
808 event->acceptcxx . . $ QEvent#accept(49f6e7a06ebc5aa8).();
809 appendListcxx . . $ Playlist#appendList(d57bff85900e1dfd).(urlListcxx . . $ QList#QList(3d2301cfd89f773a)., m_markercxx . . $ Playlist#m_marker.);
810 } else if (event->mimeDatacxx . . $ QDropEvent#mimeData(30712b663b74d9e6).()->hasFormatcxx . . $ QMimeData#hasFormat(f3b39adf77d9c36c).("text/playlistitem"cxx . . $ QString#QString(85c52e162fed56f9).)) {
811
812 // decode playlistitem
813 QByteArraycxx . . $ QByteArray# itemData = event->mimeDatacxx . . $ QDropEvent#mimeData(30712b663b74d9e6).()->datacxx . . $ QMimeData#data(e72629479c734b12).("text/playlistitem"cxx . . $ QString#QString(85c52e162fed56f9).);
814 QDataStreamcxx . . $ QDataStream# streamcxx . . $ QDataStream#QDataStream(3ec9af543aa5ce32).(&itemData, QIODevicecxx . . $ QFlags#QFlags(93d577a3e9528307).::ReadOnlycxx . . $ QIODevice#ReadOnly.);
815 QVectorcxx . . $ QVector#<QStringListcxx . . $ QStringList#> tagscxx . . $ QVector#QVector(ced63f7c635d850d).;
816
817 stream >>cxx . . $ `operator>>`(8508fe2a7e8affa8). tags;
818
819 // add Tracks to this playlist
820 foreachcxx . . $ `<external>/15045578679651060896/qglobal.h:1145:13`! (QStringList tag, tags) {
821 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). ": is playlistitem; tags:" <<cxx . . $ `operator<<`(3957cf80d16c7a65). tags;
822 addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(new Trackcxx . . $ Track#(tag), m_markercxx . . $ Playlist#m_marker.);
823 m_markercxx . . $ Playlist#m_marker. = this->newTrackcxx . . $ Playlist#newTrack(51fa73fd7dca94c4).();
824 }
825 checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).();
826
827 event->acceptProposedActioncxx . . $ QDropEvent#acceptProposedAction(49f6e7a06ebc5aa8).();
828
829 if (event->sourcecxx . . $ QDropEvent#source(2dbb680a34285c44).()->objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).() ==cxx . . $ `operator==`(5bc2975d2d751687). this->objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).())
830 m_isInternDropcxx . . $ Playlist#m_isInternDrop. = true;
831 } else
832 event->ignorecxx . . $ QEvent#ignore(49f6e7a06ebc5aa8).();
833
834 showDropHighlightercxx . . $ Playlist#showDropHighlighter. = false;
835 viewportcxx . . $ QAbstractScrollArea#viewport(27f420ad5cce8994).()->repaintcxx . . $ QWidget#repaint(49f6e7a06ebc5aa8).();
836 }
837
838 void Playlistcxx . . $ Playlist#::dragMoveEventcxx . . $ Playlist#dragMoveEvent(211fc5550e6ec45c).(QDragMoveEventcxx . . $ QDragMoveEvent#* event)
839 {
840 dropSitecxx . . $ Playlist#dropSite. =cxx . . $ QRect#`operator=`(2f0950bc81ec7a1b). event->answerRectcxx . . $ QDragMoveEvent#answerRect(d857385bac04cbf7).();
841 showDropHighlightercxx . . $ Playlist#showDropHighlighter. = true;
842 event->acceptProposedActioncxx . . $ QDropEvent#acceptProposedAction(49f6e7a06ebc5aa8).();
843 viewportcxx . . $ QAbstractScrollArea#viewport(27f420ad5cce8994).()->repaintcxx . . $ QWidget#repaint(49f6e7a06ebc5aa8).();
844 }
845
846 void Playlistcxx . . $ Playlist#::dragLeaveEventcxx . . $ Playlist#dragLeaveEvent(4ee6f5241ec34764).(QDragLeaveEventcxx . . $ QDragLeaveEvent#* event)
847 {
848 Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(event);
849 showDropHighlightercxx . . $ Playlist#showDropHighlighter. = false;
850 viewportcxx . . $ QAbstractScrollArea#viewport(27f420ad5cce8994).()->repaintcxx . . $ QWidget#repaint(49f6e7a06ebc5aa8).();
851 }
852
853 void Playlistcxx . . $ Playlist#::paintEventcxx . . $ Playlist#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent#* event)
854 {
855 QTreeViewcxx . . $ QTreeView#::paintEventcxx . . $ QTreeView#paintEvent(f239c9e85d61a220).(event);
856 if (showDropHighlightercxx . . $ Playlist#showDropHighlighter.) {
857 QPaintercxx . . $ QPainter# paintercxx . . $ QPainter#QPainter(dd2eedc069b0ab5f).(viewportcxx . . $ QAbstractScrollArea#viewport(27f420ad5cce8994).());
858 int x, y, w, h;
859 dropSitecxx . . $ Playlist#dropSite..getRectcxx . . $ QRect#getRect(ffdb09bafe65b9b7).(&x, &y, &w, &h);
860 QPointcxx . . $ QPoint# pointcxx . . $ QPoint#QPoint(3e454b8ccf442868).(x, y);
861 QModelIndexcxx . . $ QModelIndex# modidx = indexAtcxx . . $ QTreeView#indexAt(90c2c28d33eadf46).(point);
862 int addHeight = 0;
863
864 // if is playing mark as next only
865 if (isPlayingcxx . . $ Playlist#isPlaying(c9857a73d68e59ba).() && modidx.rowcxx . . $ QModelIndex#row(ea6fe5115c70a13f).() == 0) {
866 modidx =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). modelcxx . . $ QAbstractItemView#model(c9c1e11e7bd96493).()->indexcxx . . $ QAbstractItemModel#index(37dbccf64c4e392).(1, 1);
867 }
868
869 // Draw drop line after last item
870 if (!modidx.isValidcxx . . $ QModelIndex#isValid(3482b152b9333168).()) {
871 modidx =cxx . . $ QModelIndex#`operator=`(4665afb3441ab1ca). modelcxx . . $ QAbstractItemView#model(c9c1e11e7bd96493).()->indexcxx . . $ QAbstractItemModel#index(37dbccf64c4e392).(modelcxx . . $ QAbstractItemView#model(c9c1e11e7bd96493).()->rowCountcxx . . $ QAbstractItemModel#rowCount(e3878d4d6cd9529c).() - 1, 1, modidx);
872 addHeight = 1;
873 }
874
875 // bookmark item in case of a drop
876 m_markercxx . . $ Playlist#m_marker. = (PlaylistItemcxx . . $ PlaylistItem#*)this->itemFromIndexcxx . . $ QTreeWidget#itemFromIndex(b5041beedf1936a1).(modidx);
877 if (addHeight == 0) {
878 if (itemAbovecxx . . $ QTreeWidget#itemAbove(eb661a0480530517).(m_markercxx . . $ Playlist#m_marker.)) {
879 // one item above
880 m_markercxx . . $ Playlist#m_marker. = (PlaylistItemcxx . . $ PlaylistItem#*)itemAbovecxx . . $ QTreeWidget#itemAbove(eb661a0480530517).(m_markercxx . . $ Playlist#m_marker.);
881 } else {
882 // add new item at first row
883 m_markercxx . . $ Playlist#m_marker. = nullptr;
884 }
885 }
886
887 // qDebug() << Q_FUNC_INFO <<": modidx:"<<modidx;
888
889 // draw the drop point hightlighter
890 QRectcxx . . $ QRect# arect = visualRectcxx . . $ QTreeView#visualRect(99a8c9d1c5f9fa73).(modidx);
891 int b = arect.ycxx . . $ QRect#y(ea6fe5115c70a13f).() + arect.heightcxx . . $ QRect#height(ea6fe5115c70a13f).() * addHeight;
892 QBrushcxx . . $ QBrush# brushcxx . . $ QBrush#QBrush(1975e3c608654284).(Qtcxx . . $ Qt/::redcxx . . $ Qt/red., Qtcxx . . $ Qt/::SolidPatterncxx . . $ Qt/SolidPattern.);
893 QPencxx . . $ QPen# pencxx . . $ QPen#QPen(49f6e7a06ebc5aa8).;
894 pen.setWidthcxx . . $ QPen#setWidth(d4f767463ce0a6b3).(2);
895 pen.setBrushcxx . . $ QPen#setBrush(ffc9f5d0bda78261).(brush);
896 painter.setPencxx . . $ QPainter#setPen(af0a25dfda3214db).(pen);
897 painter.drawLinecxx . . $ QPainter#drawLine(748afa4755bc9595).(10, b, widthcxx . . $ QWidget#width(455f465bc33b4cdf).() - 10, b);
898 painter.drawEllipsecxx . . $ QPainter#drawEllipse(748afa4755bc9595).(5, b - 2, 5, 5);
899 painter.drawEllipsecxx . . $ QPainter#drawEllipse(748afa4755bc9595).(widthcxx . . $ QWidget#width(455f465bc33b4cdf).() - 15, b - 2, 5, 5);
900 }
901 event->acceptcxx . . $ QEvent#accept(49f6e7a06ebc5aa8).();
902 }
903
904 void Playlistcxx . . $ Playlist#::keyPressEventcxx . . $ Playlist#keyPressEvent(c92999c1b6b09cc0).(QKeyEventcxx . . $ QKeyEvent#* e)
905 {
906 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). Q_FUNC_INFOcxx . . $ `/usr/include/x86_64-linux-gnu/qt5/QtCore/qcompilerdetection.h:240:11`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). " " <<cxx . . $ QDebug#`operator<<`(6e3b7ae53f380c3). e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "del=" <<cxx . . $ `operator<<`(e0b5661fe915dc2d). Qtcxx . . $ Qt/::Key_Deletecxx . . $ Qt/Key_Delete.;
907
908 PlaylistItemcxx . . $ PlaylistItem#* item = static_cast<PlaylistItemcxx . . $ PlaylistItem#*>(currentItemcxx . . $ QTreeWidget#currentItem(faf259b556e61ea0).());
909
910 if ((e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Deletecxx . . $ Qt/Key_Delete.) || (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == 0x1000003)) // also for Mac
911 {
912 this->removeSelectedItemscxx . . $ Playlist#removeSelectedItems(49f6e7a06ebc5aa8).();
913 } else if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Lcxx . . $ Qt/Key_L.) {
914 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(item);
915 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
916 } else if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Ncxx . . $ Qt/Key_N.) {
917 setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(item);
918 } else if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_1cxx . . $ Qt/Key_1.)
919 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! wantLoadcxx . . $ Playlist#wantLoad(f9acf7808b11c0bc).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).(), "Left"cxx . . $ QString#QString(85c52e162fed56f9).);
920 else if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_2cxx . . $ Qt/Key_2.)
921 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! wantLoadcxx . . $ Playlist#wantLoad(f9acf7808b11c0bc).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).(), "Right"cxx . . $ QString#QString(85c52e162fed56f9).);
922 else if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::Key_Pcxx . . $ Qt/Key_P.)
923 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! trackDoubleClickedcxx . . $ Playlist#trackDoubleClicked(c7ced298c7283c1a).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
924 else if (e->keycxx . . $ QKeyEvent#key(455f465bc33b4cdf).() == Qtcxx . . $ Qt/::CTRLcxx . . $ Qt/CTRL. + Qtcxx . . $ Qt/::Key_Scxx . . $ Qt/Key_S.)
925 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! wantSearchcxx . . $ Playlist#wantSearch(7df51288a9ebd664).(QStringcxx . . $ QString#QString(ee6b7ef95d0103b6).::nullcxx . . $ QString#null.);
926 else
927 QTreeWidgetcxx . . $ QTreeWidget#::keyPressEventcxx . . $ QTreeView#keyPressEvent(c92999c1b6b09cc0).(e);
928 }
929
930 // needed for showContextMenu actions
931 void Playlistcxx . . $ Playlist#::dummySlotcxx . . $ Playlist#dummySlot(49f6e7a06ebc5aa8).() {}
932
933 void Playlistcxx . . $ Playlist#::showContextMenucxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).(PlaylistItemcxx . . $ PlaylistItem#* item, int col)
934 {
935 enum Idcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).Id# { LOADcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).LOAD.,
936 LOAD_NEXTcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).LOAD_NEXT.,
937 VIEWcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).VIEW.,
938 EDITcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).EDIT.,
939 REMOVEcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).REMOVE.,
940 LISTENcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).LISTEN.,
941 FILTERcxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).FILTER.,
942 LOAD1cxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).LOAD1.,
943 LOAD2cxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).LOAD2. };
944
945 if (item == nullptr)
946 return;
947
948 const bool isCurrentPlaylistItem = (item == currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.);
949
950 QMenucxx . . $ QMenu# popupcxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).(this);
951
952 popup.setTitlecxx . . $ QMenu#setTitle(3520e46b33348bf6).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->prettyTitlecxx . . $ Track#prettyTitle(3f3c3d0e9c0eb37f).(50));
953 if (m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. == Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.) {
954 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_MediaPlaycxx . . $ QStyle#SP_MediaPlay.),
955 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Add to PlayList&1"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()),
956 Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_1cxx . . $ Qt/Key_1.); //, LOAD1
957 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_MediaPlaycxx . . $ QStyle#SP_MediaPlay.),
958 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Add to PlayList&2"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()),
959 Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_2cxx . . $ Qt/Key_2.); //, LOAD2
960 }
961 if (!m_isPlayingcxx . . $ Playlist#m_isPlaying. && !isCurrentPlaylistItem && m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. != Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.)
962 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_MediaPlaycxx . . $ QStyle#SP_MediaPlay.), trcxx . . $ Playlist#tr(75d9f1c324b4579d).("&Load"),
963 this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()), Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Lcxx . . $ Qt/Key_L.);
964 if (!isCurrentPlaylistItem && m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. != Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.)
965 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_ArrowRightcxx . . $ QStyle#SP_ArrowRight.),
966 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Load as &Next"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()), Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Ncxx . . $ Qt/Key_N.);
967 popup.addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
968 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_DriveCDIconcxx . . $ QStyle#SP_DriveCDIcon.),
969 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("&Prelisten Track"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()), Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Pcxx . . $ Qt/Key_P.);
970 popup.addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
971 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_ArrowRightcxx . . $ QStyle#SP_ArrowRight.),
972 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("&Search for: '%1'").argcxx . . $ QString#arg(bc823072288cbbb5).(item->textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).(col)), this,
973 SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()), Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Scxx . . $ Qt/Key_S.);
974 popup.addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
975 if (!isCurrentPlaylistItem && m_PlaylistModecxx . . $ Playlist#m_PlaylistMode. != Playlistcxx . . $ Playlist#::Tracklistcxx . . $ Playlist#Tracklist.)
976 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_TrashIconcxx . . $ QStyle#SP_TrashIcon.),
977 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("&Remove Selected"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(removeSelectedItems()),
978 Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Deletecxx . . $ Qt/Key_Delete.);
979 popup.addSeparatorcxx . . $ QMenu#addSeparator(a590eff9f1ec9a95).();
980 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_DirOpenIconcxx . . $ QStyle#SP_DirOpenIcon.),
981 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("&Open File Location"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()),
982 Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Ocxx . . $ Qt/Key_O.);
983 popup.addActioncxx . . $ QMenu#addAction(f5cd3b2bf41abf4e).(stylecxx . . $ QIcon#QIcon(8887f7d25b86c3f4).()->standardPixmapcxx . . $ QStyle#standardPixmap(b3e2f1e2ad18f15e).(QStylecxx . . $ QStyle#::SP_MessageBoxInformationcxx . . $ QStyle#SP_MessageBoxInformation.),
984 trcxx . . $ Playlist#tr(75d9f1c324b4579d).("&View Tag Information"), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(dummySlot()),
985 Qtcxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).::Key_Vcxx . . $ Qt/Key_V.);
986
987 QActioncxx . . $ QAction#* a = popup.execcxx . . $ QMenu#exec(2535b15b88c544d4).(QCursorcxx . . $ QCursor#::poscxx . . $ QCursor#pos(c189c43f91c31e1b).());
988 if (!a)
989 return;
990 QKeySequencecxx . . $ QKeySequence# shortcut = a->shortcutcxx . . $ QAction#shortcut(61730174ff4ccd18).();
991
992 if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Lcxx . . $ Qt/Key_L.)) {
993 setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(item);
994 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
995 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Ncxx . . $ Qt/Key_N.)) {
996 setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(item);
997 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_1cxx . . $ Qt/Key_1.)) {
998 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! wantLoadcxx . . $ Playlist#wantLoad(f9acf7808b11c0bc).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).(), "Left"cxx . . $ QString#QString(85c52e162fed56f9).);
999 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_2cxx . . $ Qt/Key_2.)) {
1000 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! wantLoadcxx . . $ Playlist#wantLoad(f9acf7808b11c0bc).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).(), "Right"cxx . . $ QString#QString(85c52e162fed56f9).);
1001 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Pcxx . . $ Qt/Key_P.)) {
1002 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! itemDoubleClickedcxx . . $ QTreeWidget#itemDoubleClicked(abbf99ae0f1fc9f0).(item, col);
1003 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Scxx . . $ Qt/Key_S.)) {
1004 Q_EMITcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:95:10`! wantSearchcxx . . $ Playlist#wantSearch(7df51288a9ebd664).(item->textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).(col));
1005 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Vcxx . . $ Qt/Key_V.)) {
1006 showTrackInfocxx . . $ Playlist#showTrackInfo(c7ced298c7283c1a).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).());
1007 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Ocxx . . $ Qt/Key_O.)) {
1008 if (item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).())
1009 QDesktopServicescxx . . $ QDesktopServices#::openUrlcxx . . $ QDesktopServices#openUrl(3c1e6c2c1d0bcefc).(
1010 QUrlcxx . . $ QUrl#QUrl(ea1f3831e370f1cb).(QStringcxx . . $ QString#QString(85c52e162fed56f9).("file://%1").argcxx . . $ QString#arg(bc823072288cbbb5).(item->trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).()->dirPathcxx . . $ Track#dirPath(4365c3963150523e).())));
1011 } else if (shortcut ==cxx . . $ QKeySequence#`operator==`(5e91473cb591b4cd). QKeySequencecxx . . $ QKeySequence#QKeySequence(748afa4755bc9595).(Qtcxx . . $ Qt/::Key_Deletecxx . . $ Qt/Key_Delete.)) {
1012 item = nullptr;
1013 }
1014 }
1015
1016 void Playlistcxx . . $ Playlist#::showTrackInfocxx . . $ Playlist#showTrackInfo(c7ced298c7283c1a).(Trackcxx . . $ Track#* mb)
1017 {
1018 const QStringcxx . . $ QString# body = "<tr><td>%1</td><td>%2</td></tr>"cxx . . $ QString#QString(85c52e162fed56f9).;
1019
1020 QStringcxx . . $ QString# str = "<html><body><table STYLE=\"border-collapse: collapse\"> "cxx . . $ QString#QString(85c52e162fed56f9).
1021 "width=\"100%\" border=\"1\">";
1022 str +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). body.argcxx . . $ QString#arg(ec0c7a4bb7c7a5fe).(trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Title"), mb->titlecxx . . $ Track#title(4365c3963150523e).());
1023 str +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). body.argcxx . . $ QString#arg(ec0c7a4bb7c7a5fe).(trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Artist"), mb->artistcxx . . $ Track#artist(4365c3963150523e).());
1024 str +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). body.argcxx . . $ QString#arg(ec0c7a4bb7c7a5fe).(trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Album"), mb->albumcxx . . $ Track#album(4365c3963150523e).());
1025 str +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). body.argcxx . . $ QString#arg(ec0c7a4bb7c7a5fe).(trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Genre"), mb->genrecxx . . $ Track#genre(4365c3963150523e).());
1026 str +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). body.argcxx . . $ QString#arg(ec0c7a4bb7c7a5fe).(trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Year"), mb->yearcxx . . $ Track#year(4365c3963150523e).());
1027 str +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). body.argcxx . . $ QString#arg(ec0c7a4bb7c7a5fe).(trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Location"), mb->urlcxx . . $ Track#url(db502ccec337722f).().toStringcxx . . $ QUrl#toString(632475ebea3355f1).());
1028 str +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "</table></body></html>";
1029
1030 QMessageBoxcxx . . $ QMessageBox#::informationcxx . . $ QMessageBox#information(a9e3742e6f7b4147).(nullptr, trcxx . . $ Playlist#tr(75d9f1c324b4579d).("Meta Information"), str);
1031 }