Luis Ángel San Martín
16924eea38
Fix url creation for local files
2023-11-29 18:02:56 +01:00
Felix Kauselmann
9278160bbc
ComicInfo::getTypeString: Return an empty string for unhandled enums ( #403 )
...
* ComicInfo::getTypeString: Add default return for unhandled enum
* CXX flags: Promote warnings about missing branches in enum-based switches as errors
* Add missing case in switch
* Catch conversion errors in debug mode and silence missing return warnings
* Replace default with missing cases
* ComicInfo::getTypeString: Use QStringLiterals
* Revert "CXX flags: Promote warnings about missing branches in enum-based switches as errors"
This reverts commit d22c115925
.
---------
Co-authored-by: Luis Ángel San Martín <luisangelsm@gmail.com>
2023-10-28 17:07:32 +02:00
Luis Ángel San Martín
f319b00c70
Add a data migration to ensure that the number types are migrated to text in the db schema
...
This fixes a problem storing some text number formats in the db when the type is integer.
2023-10-15 12:53:30 +02:00
Luis Ángel San Martín
e6e5208001
Add new columns to the comics model
2023-10-09 19:26:53 +02:00
Luis Ángel San Martín
585ec86b61
Use DB_VERSION instead of VERSION
2023-09-02 22:20:38 +02:00
Luis Ángel San Martín
060131d66a
Don't reload anything if the model is not loaded
2023-08-21 22:43:59 +02:00
Luis Ángel San Martín
7249988837
Return invalid databases if the database doesn't exist
2023-08-21 22:40:27 +02:00
Luis Ángel San Martín
ab9472cb58
Add a method for triggering the change of a comic cover from the model
...
Sad day for nice code.
2023-08-17 19:41:13 +02:00
Luis Ángel San Martín
3a0e8db189
Implement support for updating ComicModel without resetting the whole model
...
TODO: Favorites, Label, ReadingList still fallback to full reload because we need a way of comparing old vs new results. SearchResult does nothing because we don't have access to the search query.
2023-08-13 11:40:59 +02:00
Luis Ángel San Martín
2e9ec030ad
Implement support for updating FolderModel without resetting the whole model
...
This will make views keep their state after an update.
2023-08-13 11:33:33 +02:00
Luis Ángel San Martín
82aa380bb5
Add methods to ComicItem to get/set the internal data
2023-08-13 11:13:21 +02:00
Luis Ángel San Martín
f33eb0f3f5
Fix name values used for comparison
2023-08-13 11:12:52 +02:00
Luis Ángel San Martín
a60e11d93a
Add methods to FolderItem
2023-08-13 11:12:14 +02:00
Luis Ángel San Martín
231bc59a48
Do not parse any data, we only need the ids
2023-08-08 19:00:01 +02:00
Luis Ángel San Martín
df26f10b9f
Remove unused include
2023-08-08 18:59:17 +02:00
Luis Ángel San Martín
5d10a03044
Fix crash when dropping comics in sublists
2023-07-10 08:39:31 +02:00
Luis Ángel San Martín
a77a704d48
Fix getting only distinct rows when querying folders through the search engine
2023-07-08 19:11:59 +02:00
Luis Ángel San Martín
51a4dbf049
Remove deprecated property manga
from folder and comic_info
2023-06-10 11:09:55 +02:00
Luis Ángel San Martín
c30e1c6829
Use Q_DECLARE_METATYPE with TypeSpecialList
2023-06-03 17:39:41 +02:00
Luis Ángel San Martín
864516d781
Add Recent
list.
2023-06-03 16:45:47 +02:00
Luis Ángel San Martín
e4dbe3d62e
Support filtering by since/before dates in the search engine
...
e.g. added>7 (recent content since 7 days ago) or added<30 (content added before the last 30 days)
2023-05-31 22:11:47 +02:00
Luis Ángel San Martín Rodríguez
7b88d47396
#include "yacreader_global.h" in Y_MAC_UI is used
2023-05-24 18:10:03 +02:00
Luis Ángel San Martín
315d2deced
Don't use Q_OS_MAC for ui specifics, Y_MAC_UI is the replacement
2023-05-23 18:51:33 +02:00
Luis Ángel San Martín
0dd167b9ca
Remove TODOs
2023-05-21 21:11:58 +02:00
Luis Ángel San Martín
6d457be912
Improve search engine with new operators and new fields
2023-05-21 20:29:13 +02:00
Luis Ángel San Martín
45af72520b
Add setting to control what "recent" is considered.
2023-05-20 17:43:38 +02:00
Luis Ángel San Martín
6a6a239cc7
Add the possibility to show a recently added/updated indicator
2023-05-20 16:17:40 +02:00
Luis Ángel San Martín
9c9b62db70
Fix role name
2023-05-20 15:33:47 +02:00
Luis Ángel San Martín
3d95ea37a1
Add "added" date to the root folder
2023-05-17 20:31:34 +02:00
Luis Ángel San Martín
f2bf53ce5b
Add new fields to the DB and make then available to be used in the apps
2023-05-12 16:59:23 +02:00
Luis Ángel San Martín
830d8d911f
Fix type
...
It is used as a string, and because how sqlite3 works internally the field can actually store a string, so no need for data migration.
2023-05-03 18:58:32 +02:00
Luis Ángel San Martín
ceb34a1409
Extract sql queries creation for the search engine so we can reuse them
2023-04-07 10:49:09 +02:00
Luis Ángel San Martín
3e2bda7cf1
Extract function
2022-10-29 11:07:10 +02:00
Luis Ángel San Martín Rodríguez
9dc66f532f
boolean -> bool
2022-10-25 08:51:52 +02:00
Luis Ángel San Martín
02df90f3bd
Don't do any more iteration if we found the right index
2022-10-25 07:48:39 +02:00
Luis Ángel San Martín
cea26ecc20
Missing ;
2022-10-25 07:40:50 +02:00
Luis Ángel San Martín
54d2fba53d
Restore the selected index in the folders view when doing partial updates
2022-10-24 22:59:21 +02:00
Luis Ángel San Martín
31c4ae6561
More left side bar png to svg assets conversion
2022-10-23 10:43:37 +02:00
Luis Ángel San Martín
e8f31b39ee
Update the current comic model when the server gets a syn request
...
Sadly the grid view resets its scroll to origin. Not sure if it is going to bother anyone, we'll see.
2022-10-15 12:53:02 +02:00
Luis Ángel San Martín
61458b966c
Add a output parameter to know if a comic is found in the DB when we try to load it
2022-10-15 11:42:20 +02:00
Luis Ángel San Martín
901f05feb1
Add a method to make a comics model reload the continue reading list
2022-10-14 20:54:07 +02:00
Luis Ángel San Martín
00f7d92c9a
Make sure that the changes made to folders are propagated to the subfolder model in FolderContentView
2022-10-13 19:28:55 +02:00
Luis Ángel San Martín
2e16dec51a
Update FolderModel to support new functionality
2022-10-09 11:32:06 +02:00
Luis Ángel San Martín
0a00fd3020
Add a new type of role to ComicModel to display a title composed with the available info
2022-10-09 11:32:06 +02:00
Luis Ángel San Martín
aa44ad4143
Remove old code
2022-09-16 19:32:30 +02:00
Luis Ángel San Martín
aee337f776
Fix export/import comic tags
...
It should be ready to work as a backup system
2022-09-01 11:10:01 +02:00
Luis Ángel San Martín
8a6ec5fcc6
Assign covers to folders from subfolders & comics
...
Before this commit folder with no direct comics (only subfolders) didn't have a cover image to be displayed. Now updating the children info is done recursively and subfolders are taken into account.
This affects the iOS client remote browser so far, but it is also needed for the future browser update (display folders as a grid instead of using EmptyFolderWidget)
2022-08-31 18:58:25 +02:00
Luis Ángel San Martín
d8f224645d
Remove YACReader::SearchModifiers
...
They are no longer used
2021-12-29 14:58:03 +01:00
Igor Kushnir
228fe1284e
Fix a typo in ConcurrentQueue::cancelPending function name
2021-12-29 09:36:44 +01:00
Luis Ángel San Martín
88de0ae25a
Add publication date to the classic comics view table
2021-12-26 20:26:16 +01:00