Commit Graph

46 Commits

Author SHA1 Message Date
craig.p.drummond
9506f06e02 Playlists model ALWAYS needs to return a columnCount of 6. In TreeView, set a flag 'forceSingleColumn' when model is set, TreeView will hide all bar 1st column.
This is better than resetting the proxy each time - as this messes up the column stretching.

BUG: 397
2014-01-28 20:23:04 +00:00
craig.p.drummond
d91f8807d2 Results of cppcheck... 2014-01-08 19:49:48 +00:00
craig.p.drummond
addfca835a Update (c) year 2014-01-06 19:32:05 +00:00
craig.p.drummond
03849ee1c7 When closing search widget, after performing a search, collapse all bar top level items.
BUG: 367
2013-12-30 09:21:32 +00:00
craig.p.drummond
5855442c53 Fix crash when changing online view from list to tree, after a soundcloud search. 2013-12-21 10:44:48 +00:00
craig.p.drummond
8e67252f0d - Use 32x32 for drag'n'drop icon, 64x64 for highdpi
- Use audio-x-generic icon for drag'n'drop if no cover found.
2013-12-18 19:16:21 +00:00
craig.p.drummond
642bee5ed2 Check return of selectionModel() before using.
BUG: 333
2013-11-27 19:41:37 +00:00
craig.p.drummond
ccbb0dd87f Expand podcasts by default - if it is the only service, or if it and soundcloud are the only services 2013-10-01 18:27:27 +00:00
craig.p.drummond
970ff868d6 When getting the selected indexes, we only actually care about column 0. In fact, only playqueue has more columns, and when acting on this its the row numbers that we care about - so this is safe enough.
BUG: 289
2013-09-17 18:50:00 +00:00
craig.p.drummond
13c4d2bfc6 (Hopefully) fix selection order of items - and order added to playqueue. 2013-09-03 18:40:50 +00:00
craig.p.drummond
74bd6030d2 Put BasicItemDelegate into its own source files 2013-08-13 19:40:05 +00:00
craig.p.drummond
ea0aef26df More work for Jamendo searches 2013-07-15 19:13:14 +00:00
craig.p.drummond
a90fe42b4d Draw service icon behind view when searching 2013-07-12 19:07:51 +00:00
craig.p.drummond
dc6e3af0d8 Fix Qt5 segfault on exit, due to static QIcons being destructed. 2013-06-12 19:56:59 +00:00
craig.p.drummond
587aec145b Consistent style for treeviews 2013-05-30 18:58:37 +00:00
craig.p.drummond
d064136112 Expand sync dialog, and action dialog, items on click 2013-05-30 18:09:05 +00:00
craig.p.drummond
e35b0f6b86 Dont use alternating rows in views (does not look too great with grouped view). Use a fading divider instead. 2013-05-16 18:09:32 +00:00
craig.p.drummond
a21609f4a0 Playqueue menu 2013-03-28 19:13:05 +00:00
craig.p.drummond
9e81727f50 Animate tree open/close 2013-03-25 19:53:59 +00:00
craig.p.drummond
ccc5f9b01a Treeview does not seem to need WA_MouseTracking set, even with QGtkStyle items still highlight under mouse. And enabling WA_MouseTracking here seems to cause drag-n-drop errors if an item is dragged onto playqueue whilst playqueue has a selected item!
BUG:145
2013-02-07 18:20:52 +00:00
craig.p.drummond
76786e254a Remove unused stuff 2013-02-07 18:19:59 +00:00
craig.p.drummond
c60604502f Remove Qt module prefix from includes - will make Qt5 port a little easier! 2013-01-28 19:33:42 +00:00
craig.p.drummond
fbe6f03408 Update copyright year 2013-01-17 16:57:20 +00:00
craig.p.drummond
094354c66b Make 'Icon' a class, and move icons into Icons 2012-10-03 19:16:52 +00:00
craig.p.drummond
06380c3bc0 Remove faded icons from background of sync dialog views (as these did not render correctly with all styles), and enforce alternate row colours - as per other views. 2012-10-01 18:26:33 +00:00
craig.p.drummond@gmail.com
e5793d6b52 More non-oxygen icon work
BUG:91
2012-09-20 11:02:47 +00:00
craig.p.drummond
49cc24eb46 Completly remove android changes - this NEVER worked very well, and never will with QWidgets :-( 2012-08-30 19:43:32 +00:00
craig.p.drummond
2034c11660 Force single-click activation in views. To enable double-click mode (which depends upon the style), edit cantatarc (KDE) or cantata.conf (Qt only) and set 'forceSingleClick=false' in the '[General]' section. 2012-08-30 19:37:59 +00:00
craig.p.drummond@gmail.com
720a09d1c6 - Fix track order when adding newly added album to playqueue.
- When dragging one artist, or album, in treeview to play queue, show cover image (if possible).

BUG:48
2012-07-20 11:46:34 +00:00
craig.p.drummond
8446a95e3d Android: Work on faking touch scroll. Still not perfect, seems to interfere with drag'n'drop :-( 2012-06-22 17:15:15 +00:00
craig.p.drummond@gmail.com
7c893bba51 Enable mouse-tracking for all list/tree views.
BUG:28
2012-06-11 11:09:27 +00:00
craig.p.drummond@gmail.com
56e3292473 Draw icon *behind* items, and at 15% opacity 2012-04-26 18:48:17 +00:00
craig.p.drummond@gmail.com
085c36aa53 Draw 10% opacity icon behind view, so as to give a better hint as to which list is which. 2012-04-26 16:11:11 +00:00
craig
2f27c29eb6 Better, less hacky, workaround for QAbstractItemView shif-select bug
(https://bugreports.qt-project.org/browse/QTBUG-18009). Thanks to Spitfire
from qtcentre.org forums for fix.
2012-04-16 18:35:20 +00:00
craig
bd1de87413 Automatically expand treeview items when searching. 2012-03-27 17:39:05 +00:00
craig
9fc2286ce3 Update copyright statements. 2012-01-04 19:15:55 +00:00
craig
2a3400fb8a Add decorations to treeview root 2011-12-22 19:06:28 +00:00
craig
222ac7e5bd Sort selected items by the order they appear on screen - QAbstractItemView::selectedItems is not sorted!!!! 2011-12-20 19:17:39 +00:00
craig
74d9e9629e Drag and drop from/to playlists 2011-12-14 19:44:09 +00:00
craig
98cea7858a Icons, defaults, etc. 2011-12-14 19:43:45 +00:00
craig
d3f1945bfe Only respond to mouseRelease if we have no modifiers - to allow items to be selected! 2011-12-11 19:00:11 +00:00
craig
cb127217a6 Fix playlist headers!!!! 2011-12-09 18:40:20 +00:00
craig
f26436f30a Complete album page 2011-12-09 18:27:49 +00:00
craig
d39eb91753 Update copyright 2011-12-05 19:32:25 +00:00
craig
fb8b984f26 Add copyright 2011-12-04 10:48:50 +00:00
craig
eb4df15332 Import 2011-11-27 15:24:05 +00:00