Commit Graph

54 Commits

Author SHA1 Message Date
craig.p.drummond
63442d27ec Use TouchProxyStyle to enable flick-charm 2014-05-19 18:33:36 +00:00
craig.p.drummond
d29d9a8781 Alter includes to have su-folder - e.g. utils.h -> support/utils.h 2014-05-13 18:37:52 +00:00
craig.p.drummond
7e02d0058b Move model roles into separate roles.h file. 2014-04-23 20:36:38 +00:00
craig.p.drummond
54b0eb57cc Make QtWidgets version more touch friendly? 2014-04-17 16:06:00 +00:00
craig.p.drummond
8b19eaf390 REduce KDE differences 2014-03-26 19:34:28 +00:00
craig.p.drummond
fb2ab37e0b Fix expand all / collapse all actions. Expand all will only expand 1 level for main browsers. 2014-03-18 19:47:49 +00:00
craig.p.drummond
6312243352 Change views to scroll-per-pixel. 2014-02-09 15:46:14 +00:00
craig.p.drummond
9692a5b62f Remove code duplication with startDrag() 2014-01-30 19:25:43 +00:00
craig.p.drummond
cb65db90c8 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
2f24b3fd9b Results of cppcheck... 2014-01-08 19:49:48 +00:00
craig.p.drummond
ab7ffecca3 Update (c) year 2014-01-06 19:32:05 +00:00
craig.p.drummond
e934e72f56 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
05b65d6f79 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
7913002346 - 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
974f6f4190 Check return of selectionModel() before using.
BUG: 333
2013-11-27 19:41:37 +00:00
craig.p.drummond
b395deafe8 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
9cc4138b2f 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
87f3dfccc8 (Hopefully) fix selection order of items - and order added to playqueue. 2013-09-03 18:40:50 +00:00
craig.p.drummond
40e72b230f Put BasicItemDelegate into its own source files 2013-08-13 19:40:05 +00:00
craig.p.drummond
4b9e65ba01 More work for Jamendo searches 2013-07-15 19:13:14 +00:00
craig.p.drummond
d0a7d25a7e Draw service icon behind view when searching 2013-07-12 19:07:51 +00:00
craig.p.drummond
a5622b4682 Fix Qt5 segfault on exit, due to static QIcons being destructed. 2013-06-12 19:56:59 +00:00
craig.p.drummond
88bade2fa5 Consistent style for treeviews 2013-05-30 18:58:37 +00:00
craig.p.drummond
50d34651d6 Expand sync dialog, and action dialog, items on click 2013-05-30 18:09:05 +00:00
craig.p.drummond
ffd0958710 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
33485acf79 Playqueue menu 2013-03-28 19:13:05 +00:00
craig.p.drummond
41a322e9a5 Animate tree open/close 2013-03-25 19:53:59 +00:00
craig.p.drummond
5a041016f1 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
088918db21 Remove unused stuff 2013-02-07 18:19:59 +00:00
craig.p.drummond
09374f37a4 Remove Qt module prefix from includes - will make Qt5 port a little easier! 2013-01-28 19:33:42 +00:00
craig.p.drummond
476d132466 Update copyright year 2013-01-17 16:57:20 +00:00
craig.p.drummond
7562762728 Make 'Icon' a class, and move icons into Icons 2012-10-03 19:16:52 +00:00
craig.p.drummond
b616611c2e 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
d3219a0ac7 More non-oxygen icon work
BUG:91
2012-09-20 11:02:47 +00:00
craig.p.drummond
f4adbaf6a4 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
819344a6ac 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
a9d342577d - 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
42804a9e69 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
c678d98515 Enable mouse-tracking for all list/tree views.
BUG:28
2012-06-11 11:09:27 +00:00
craig.p.drummond@gmail.com
f6e274cd1e Draw icon *behind* items, and at 15% opacity 2012-04-26 18:48:17 +00:00
craig.p.drummond@gmail.com
99f52848f6 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
0970d7f5ec 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
3fe8b94b59 Automatically expand treeview items when searching. 2012-03-27 17:39:05 +00:00
craig
7dad99ec88 Update copyright statements. 2012-01-04 19:15:55 +00:00
craig
286a8bc536 Add decorations to treeview root 2011-12-22 19:06:28 +00:00
craig
e9bc7a316e Sort selected items by the order they appear on screen - QAbstractItemView::selectedItems is not sorted!!!! 2011-12-20 19:17:39 +00:00
craig
61ebd6337b Drag and drop from/to playlists 2011-12-14 19:44:09 +00:00
craig
94cf9d44cb Icons, defaults, etc. 2011-12-14 19:43:45 +00:00
craig
e493cc74a7 Only respond to mouseRelease if we have no modifiers - to allow items to be selected! 2011-12-11 19:00:11 +00:00
craig
6a91cf198e Fix playlist headers!!!! 2011-12-09 18:40:20 +00:00