Commit Graph

40 Commits

Author SHA1 Message Date
Jonas Kvinge 4d34748401 Fix memory leak in global search context menu 2021-07-14 10:17:35 +01:00
John Maguire 341dc7326f Reformat all C++ 2020-09-22 14:56:06 +01:00
Amish Naidu 107e945872 Convert uses of QtAlgorithms to std:: algorithms 2018-10-09 19:17:54 +01:00
Jacob Henner 203ec76973 Add contextual searches to playlists, library and global search. (#5649)
* Closes #5567: Contextual album/artist search in library search, global search, and playlists.

* Change artist/album search to 'search for this' in globalsearch

* Change artist/album search to 'search for this' in library

* Applying patch from @Fat-Zer to allow search incl year

* Re-adding missing schema definition
2017-08-09 14:12:36 +01:00
narunlifescience dd953fd86c check custom icon location, then system theme & then fallback theme
icons added & replaced
2015-10-13 22:35:49 -05:00
John Maguire cdde9c99db Merge pull request #5038 from narunlifescience/master
change help_text QPalette to WindowText
2015-09-16 15:34:03 +01:00
Arun Narayanankutty f1cae49ad9 change help_text QPalette to WindowText 2015-09-16 09:08:47 -05:00
Arnaud Bienner 59589494ae Fix a crash when changing 'group by' while album covers are still loading 2015-07-17 22:45:30 +02:00
Eduardo Sánchez Muñoz e0816800b1 Add support for original year tags. 2015-06-30 18:34:34 +02:00
Andreas dba79a7e99 Revert "Add option to show year next to album name in library and global search."
This reverts commit e17fc06be1.

Doesn't work as I thought.
2014-10-05 15:06:56 +02:00
Andreas e17fc06be1 Add option to show year next to album name in library and global search. 2014-10-05 14:14:24 +02:00
David Sansome 2134e13b53 Make CloudFileServices show logged in state and settings dialog properly in
global search.
2014-03-30 17:11:31 +11: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
John Maguire d309d4ab27 Use c++11 instead of boost where possible. 2014-02-06 16:51:39 +01:00
Arnaud Bienner a3dbfc0674 Avoid unnecessary copy 2013-01-25 01:48:39 +01:00
Arnaud Bienner 8dfaac8bfb Sort providers according to user's preference instead of name 2013-01-19 16:06:48 +01:00
John Maguire b41a2b5308 Revert "Try out C++11 strongly typed enums."
This reverts commit 4e74c7af2b.
2012-12-05 09:36:22 +00:00
John Maguire 4e74c7af2b Try out C++11 strongly typed enums. 2012-12-04 16:22:09 +00:00
Arnaud Bienner 567274e9d3 Set current index to the item we have actually selected if no valid/playable indexes were selected 2012-09-01 00:41:31 +02:00
Arnaud Bienner 04c4d97930 Play the first item of the result list when pressing "Enter" in global search 2012-09-01 00:29:31 +02:00
John Maguire e928ac0349 Support selectAll() in QSearchField. 2012-06-28 12:27:32 +02:00
John Maguire 20d740f385 Port global search & album cover search to QSearchField and remove MacLineEdit. 2012-06-28 11:40:13 +02:00
David Sansome 3ec22e3cc6 When getting children of global search results for adding to the playlist, get them through the proxy model to maintain their order. 2012-06-24 21:08:33 +01:00
David Sansome 57865f82c2 Make the grouping of global search results configurable 2012-06-17 16:20:40 +01:00
David Sansome 45a8b3af59 Fix some remaining UI issues with global search:
- Add a "Configure global search" item to the context menu, and show the
    context menu when right clicking in the help screen as well.
  - Don't crash when nothing is selected.
  - Add Ctrl+F and Ctrl+L shortcuts to focus the search field.
  - Switch to the search tab when clicking one of the tags in Artist Info.
2012-06-16 21:26:06 +01:00
David Sansome 0b754b9b66 Handle various artists properly in the global search tree, and make pressing Esc in the results list put the focus back on the search box 2012-06-11 21:06:26 +01:00
David Sansome 7b4ff1d2ee Update the Search settings page, use the configured provider order 2012-06-11 16:26:33 +01:00
David Sansome 9d6b72b4ab Add global search suggestions 2012-06-10 23:05:30 +01:00
David Sansome fe4e214a78 Read the pretty cover setting explicitly instead of relying on LibraryView reading it first. Make the URL provider set a title on its results 2012-06-10 22:08:00 +01:00
David Sansome c163046e6f Add a context menu, and up, down, enter and escape key handlers 2012-06-10 21:56:17 +01:00
David Sansome f000bd9242 Support dragging items from the global search view into the playlist 2012-06-10 21:27:00 +01:00
David Sansome 97b4298002 Split some bits of GlobalSearchView into a GlobalSearchModel 2012-06-10 21:11:55 +01:00
David Sansome c9745bca5d Use a common LoadTracks implementation for most search providers 2012-06-10 20:55:51 +01:00
David Sansome 99463215bf UI tweaks to the global search help page 2012-06-10 20:14:16 +01:00
David Sansome 6e41a20e61 Add a helpful message to the Search view when no query has been entered 2012-06-10 19:00:51 +01:00
David Sansome b669dd64fa Search simple providers properly, use the bigger album cover icon, disable the divider items, align the dividers' icons properly 2012-06-10 17:36:40 +01:00
David Sansome 41fab25569 Auto-expand tree items and lazy load album cover art 2012-06-10 17:15:32 +01:00
David Sansome 9c36cfa199 Replace the global search widget with a "Search" view on the sidebar. Organise results in a tree automatically. 2012-06-10 16:36:15 +01:00