Commit Graph

46 Commits

Author SHA1 Message Date
72535ffc98 Fix crasher when updating the comics model 2024-11-03 14:48:37 +01:00
611880aba8 Typos 2024-11-03 14:41:41 +01:00
9436520399 Merge branch 'develop' of https://github.com/YACReader/yacreader into develop 2024-02-13 18:41:33 +01:00
2b2762c045 Improve and fix comic file size format 2024-02-13 18:41:23 +01:00
b4a7d86f96 Unarr: Add 7z to reader file selector and library database for unarr 1.1.x 2024-02-12 22:54:39 +01:00
abdf5bda4f Show the current type as checked in the context menu 2024-01-19 16:43:37 +01:00
16924eea38 Fix url creation for local files 2023-11-29 18:02:56 +01:00
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
e6e5208001 Add new columns to the comics model 2023-10-09 19:26:53 +02:00
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
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
864516d781 Add Recent list. 2023-06-03 16:45:47 +02:00
45af72520b Add setting to control what "recent" is considered. 2023-05-20 17:43:38 +02:00
6a6a239cc7 Add the possibility to show a recently added/updated indicator 2023-05-20 16:17:40 +02:00
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
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
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
901f05feb1 Add a method to make a comics model reload the continue reading list 2022-10-14 20:54:07 +02:00
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
88de0ae25a Add publication date to the classic comics view table 2021-12-26 20:26:16 +01:00
2cb20cd11e Remove commented code 2021-12-26 20:23:32 +01:00
5aa02a19bb clang-format 2021-10-18 21:56:52 +02:00
a623dfb133 Database Models: Remove obsolete signals
Folder model and comic model contain two signal relais which do not
serve any obvious purpose.
Remove them.
2021-06-29 13:53:12 +02:00
945b24a8f8 Extract opening a comic from YACReaderLibrary to its own file
And send a new param `--readingListId` to tell YACReader that the comic is opened from a reading list.
2021-05-27 18:48:52 +02:00
13a29e2657 Make "delete" icon work properly in the "Reading" list
Only the "Favorites" special list was handled.
2021-05-16 09:01:35 +02:00
8af4c01a03 Port away from deprecated QFlags(Zero) constructor
This change gets rid of a few GCC's -Wdeprecated-declarations warnings.
2021-03-09 21:32:23 +01:00
3a9bec55f8 Library: don't print errors when search edit's text changes
This was a temporary debug output. Not useful anymore.
2021-02-05 09:34:13 +01:00
97c7723b17 Add support for setting issues as manga/normal in the comics view 2021-01-16 14:25:47 +01:00
ccc382df7d Use ComicQueryResultProcesor 2021-01-14 09:17:18 +01:00
ddb140d430 Remove misplaced code 2021-01-12 18:57:25 +01:00
6438c9210f Move query execution and model setup to the right scope 2021-01-12 18:41:09 +01:00
30529dca43 Some small tidy ups 2021-01-08 15:51:56 +01:00
673ee1f067 Use the query parser in the comic and folder model 2021-01-08 15:41:29 +01:00
b64ea19e8b Use an invalid QVariant to set to NULL a value in the DB
nullptr causes troubles in some platforms/compiles
2020-08-25 19:45:05 +02:00
c84fc20419 Reset last time opened when setting a comic as unread 2020-08-25 19:00:21 +02:00
4b3042def4 Fix object leaks in database code
Qt's database and query model requires that both the queries and the database
objects are out of scope before a database connection can safely be removed.

Solution: Properly encapsulate databases and queries in "{ }" and use a string
to cache the connection name for out-of-scope removal.
2020-08-25 17:34:46 +02:00
bb334cfd50 Use auto to avoid duplicating the type name 2019-06-01 16:04:48 +02:00
e3ec56aa43 Format code using clang-format 2019-05-30 19:46:37 +02:00
6093e003e9 Library: add missing 'default' to non-exhaustive 'switch' 2019-04-01 11:25:16 +02:00
d5a11fb16b Add .gitattributes rules for text and binary handling 2018-07-30 15:04:04 +02:00
23823725ac Fix how we consider a comic as being read.
Basically is this: it has been opened and not set as READ.
2018-05-20 14:41:55 +02:00
52c76d5482 Create unique database connections per thread and remove them using the database connection name from the QSqlDatabase instance being used. 2018-04-24 20:53:24 +02:00
f6d389ff35 Add current/next comic view to GridView. 2018-04-23 19:22:51 +02:00
f149f314e0 Merge 2017-08-26 16:54:10 +02:00
6de499e566 Fixed db Fixed data base info retrieving in ComicModel. 2017-08-26 16:16:54 +02:00
d6898e9a4e Fixed data base info retrieving through DBHelper, value(QString) should never be used because it is really slow. All items sorting should be done at db level or using std::sort. 2017-08-26 16:16:11 +02:00