Jonas Kvinge
331aa382f9
Rewrite album cover loader
2023-06-06 20:41:01 +02:00
Jonas Kvinge
2f17647cd3
Use const reference for AlbumCoverLoaderResult
2023-05-03 21:43:22 +02:00
Jonas Kvinge
b0b8ff2d49
CollectionModel: URL percent encode disk cache keys
...
Fixes #1183
2023-04-18 18:42:37 +02:00
Jonas Kvinge
b660287779
Use `std::shared_ptr`for `AlbumCoverLoaderResult`
...
Reduces memory fragmentation with Qt 6
2023-04-06 23:18:10 +02:00
Jonas Kvinge
962536bc83
AlbumCoverLoaderResult: Use enum class for type
2023-04-06 01:23:42 +02:00
Jonas Kvinge
c8169adf7c
CollectionModel: Guard against invalid disc and year
2023-03-25 18:32:41 +01:00
Jonas Kvinge
7b610d131c
CollectionModel: Replace qMax with std::max
2023-03-25 18:31:21 +01:00
Jonas Kvinge
2aeab8b672
CollectionModel: Remove unused QByteArray include
2023-03-25 18:26:53 +01:00
Jonas Kvinge
79bf194ed6
CollectionModel: Fix compilation requirement query
...
Fixes #1140
2023-02-18 16:40:12 +01:00
Jonas Kvinge
dd72fb4ca5
Use C++11 enum class
2023-02-18 14:09:30 +01:00
Jonas Kvinge
b5fa401db9
Collection: Make sure `RunQuery` does not access collection items
...
- Rename `QueryOptions` to `CollectionFilterOptions`.
- Create new class `CollectionQueryOptions` for passing options from model to `CollectionQuery`.
- Rename `Directory` to `CollectionDirectory`.
Fixes #1095
2023-01-08 18:16:16 +01:00
Jonas Kvinge
cc4a99ad80
CollectionModel: Close database with same mutex
2023-01-07 23:57:23 +01:00
Jonas Kvinge
e97be5850b
CollectionModel: Change while to for loop
2023-01-07 23:26:36 +01:00
Jonas Kvinge
54fc11a235
CollectionBackend: Rename source accessor
2022-10-19 17:11:56 +02:00
Jonas Kvinge
2b24ac54a0
Remove unused includes
2022-08-28 03:09:33 +02:00
Jonas Kvinge
6562258db5
CollectionModel: Make separating albums by grouping optional
...
Fixes #1018
2022-08-20 14:51:19 +02:00
Jonas Kvinge
98682a2da9
Use C++17 fallthrough
2022-07-26 20:37:06 +02:00
Jonas Kvinge
d82fd421ed
Replace use of C-style casts
2022-06-13 00:23:42 +02:00
Jonas Kvinge
3c8d0ebd52
CollectionModel: Use grouping in all album groupings
2022-05-31 00:53:47 +02:00
Jonas Kvinge
a2dad982f8
Move sqlrow to core
2022-05-13 18:15:04 +02:00
Jonas Kvinge
f6b70fda71
Formatting
2022-03-22 21:09:05 +01:00
Jonas Kvinge
79ac53b2d9
Fix narrowing conversions
2021-10-30 02:21:29 +02:00
Jonas Kvinge
03ecde8b83
Add default to switch
2021-10-30 01:08:35 +02:00
Jonas Kvinge
d35d3aabc3
Show error dialog for failed SQL queries
2021-09-09 21:45:46 +02:00
Jonas Kvinge
ea2bfbda44
Formatting
2021-08-23 21:21:08 +02:00
Jonas Kvinge
72d381e9ed
Replace qAsConst with C++17 std::as_const
2021-08-22 23:26:53 +02:00
Jonas Kvinge
1ebfa0ad7e
Song::kAlbumRemoveDisc is already QRegularExpression
2021-08-13 23:32:54 +02:00
Jonas Kvinge
e48b7d83a3
Formatting
2021-07-11 09:49:38 +02:00
Jonas Kvinge
9327fd3aa1
Formatting
2021-06-28 00:21:50 +02:00
Jonas Kvinge
20a15ecd35
Replace while with for loop
2021-06-28 00:21:50 +02:00
Jonas Kvinge
8c2b907ff5
Make static
2021-06-22 14:04:42 +02:00
Jonas Kvinge
d4f10c61ef
Change lambda capture
2021-06-21 20:10:02 +02:00
Jonas Kvinge
c61d1ce6b4
Use std::any_of
2021-06-21 19:52:37 +02:00
Jonas Kvinge
1295033fae
Clang-Tidy and Clazy fixes
2021-06-20 19:04:08 +02:00
Jonas Kvinge
8699790e78
Always call QFutureWatcher::setFuture after connects
2021-06-16 00:30:21 +02:00
Jonas Kvinge
5a58ac2845
Make CollectionQuery subclass QSqlQuery, don't copy QSqlQuery
2021-04-10 03:21:05 +02:00
Jonas Kvinge
c6604734c9
Remove using std::placeholders
2021-03-26 23:33:56 +01:00
Jonas Kvinge
14fb647647
Fix uninitialized variables
2021-03-26 21:30:13 +01:00
Jonas Kvinge
59bffed47f
Use static_cast
2021-03-21 18:53:02 +01:00
Jonas Kvinge
78588d8cdf
Fix various clazy warnings
2021-03-21 04:47:11 +01:00
Jonas Kvinge
54f2aa5f77
Update copyrights
2021-03-20 21:14:47 +01:00
Jonas Kvinge
f77475dbfe
Specifically set get image
2021-03-16 17:16:40 +01:00
Jonas Kvinge
133f094d72
Add support for saving embedded album covers
...
Fixes #286
2021-02-26 21:03:51 +01:00
Jonas Kvinge
88874f0dcd
Remove NewClosure
2021-01-30 21:53:53 +01:00
Jonas Kvinge
bf7c8df353
Connection syntax migration ( #637 )
2021-01-26 16:48:04 +01:00
Jonas Kvinge
a6a29d5c5a
Set limits for collection pixmap cache based on size unit
2021-01-12 20:36:10 +01:00
Jonas Kvinge
fd251c6e61
Use helper function for collection model container keys
2021-01-09 21:03:35 +01:00
Jonas Kvinge
4dcd3e95df
Append album ID to collection model container nodes
2021-01-08 22:35:07 +01:00
Jonas Kvinge
1bd586268c
Update some copyrights
2020-12-12 00:33:27 +01:00
Jonas Kvinge
deddaed04a
Remove use of std::bind where possible
2020-11-14 02:13:22 +01:00