Jonas Kvinge
f379ad84d4
Fix use of emit
...
Adds missing emits.
QTreeView::collapse and QTreeView::expand are slots, not signals. So
remove emit.
2021-07-14 10:18:47 +01:00
John Maguire
341dc7326f
Reformat all C++
2020-09-22 14:56:06 +01:00
Jim Broadus
85651dd37f
Fix assertion when deleting multiple queued items from playlist.
...
Removal of items from a playlist is done with a single transaction. When
Queue::SourceLayoutChanged is called after this, the items in the queue are
checked one at a time. When an item is removed, it triggers dataChanged signal
from the model, connected to the SourceDataChanged slot. There, ItemCountChanged
is emitted which calls UpdateTotalLength. This method will assert when it finds
an item that is in the queue, but not in the playlist.
To solve this, disconnect the ItemCountChanged signal at the beginning of
SourceLayoutChanged and re-enable it after cleaning the queue. The method emits
the signal before returning.
2020-02-21 10:09:12 +00:00
Amish Naidu
107e945872
Convert uses of QtAlgorithms to std:: algorithms
2018-10-09 19:17:54 +01:00
vaterlangen
fcf96cb6ff
Queue size and duration is now displayed in queue manager && Album Cover Popup fixes ( #6086 )
2018-06-18 14:21:44 +01:00
Mark Furneaux
d28a318437
Clang format
2018-04-14 16:57:06 -04:00
Mark Furneaux
a789ce82ca
Allow playing of tracks already in queue
2018-03-18 22:03:04 -04:00
Mark Furneaux
6e387c2578
Initial playlist implementation
2018-03-18 14:43:44 -04:00
John Maguire
3323c2d094
Convert all instances of foreach() to a C++11 for
...
find ext src -name '*.cpp' -exec \
sed -i -e 's/foreach(\([^,]\+\),/for (\1 :/' {} \;
2014-02-10 14:43:32 +01:00
John Maguire
bebd781fdf
Reformat all non-3rd-party C/C++/Objective-C++.
...
Command line:
find src ext -regex '.*\.\(h\|cpp\|mm\)' -exec clang-format -i
-style='{BasedOnStyle: Google, DerivePointerBinding: false}' {} \;
2014-02-07 16:34:20 +01:00
John Maguire
71893e4847
Use nullptr instead of NULL everywhere.
2014-02-06 17:29:59 +01:00
Arnaud Bienner
089586ad07
Activate fast QString concatenation.
...
As this is not source compatible because we sometimes assumed (now wrongly) that '+' operation returns QString object (it now returns QStringBuilder object actually), some minor other corrections were needed.
2012-02-19 14:44:33 +01:00
David Sansome
6dd1634946
Add Python bindings for Playlists, port the rainbowizer plugin to PythonQt and make its colours a bit more tasteful
2011-05-29 12:55:18 +00:00
Andrea Decorte
55b2d30959
added a button to remove items and keyboard shortcuts in the Queue
...
Manager. Fixes issue 1646
2011-03-30 18:41:34 +00:00
David Sansome
560d1c5006
When repopulating a dymanic playlist, don't remove items that are queued
2010-11-21 17:48:58 +00:00
David Sansome
ed1a25693c
Add missing licenses to debian/copyright, and add copyright information to each source file
2010-11-20 13:27:10 +00:00
David Sansome
0c5d754135
Fix the queue manager
2010-08-28 19:17:39 +00:00
David Sansome
4bf9ee0a8e
Change the queue manager to use a QTreeView instead of QListView so it doesn't repaint on drop.
2010-07-11 21:27:36 +00:00
David Sansome
aa2d69f1bf
Make the player actually use the queue order. Fixes issue #24 .
2010-07-11 19:02:31 +00:00
David Sansome
e625deed33
Enable drag and drop from the playlist to the queue
2010-07-11 18:11:47 +00:00
David Sansome
89fffcc37f
Support internal drag and drop in the queue
2010-07-11 18:04:35 +00:00
David Sansome
4b81a86d1d
Implement moving items in the queue
2010-07-11 17:39:11 +00:00
David Sansome
1f9e72f971
Add icons to the move up/move down/clear buttons, and implement the clear button
2010-07-11 16:58:22 +00:00
David Sansome
f750ac1351
Display an indicator next to each playlist item showing its position in the queue
2010-07-11 16:17:38 +00:00
David Sansome
41183107d2
Start of work on a queue manager
2010-07-11 15:37:40 +00:00