Luis Ángel San Martín
5aa02a19bb
clang-format
2021-10-18 21:56:52 +02:00
Luis Ángel San Martín
da51bd45c6
Use InitialComicInfoExtractor everywhere
2021-09-27 15:39:37 +02:00
Luis Ángel San Martín
1e81b58e5c
Add message about wrong type in ageRating field
2021-09-26 18:44:35 +02:00
Felix Kauselmann
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
Luis Ángel San Martín
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
Luis Ángel San Martín
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
Luis Ángel San Martín
c3a99b19a5
Fix library creation on 9.8.0 by adding missing manga
field to folder
2021-05-08 15:21:30 +02:00
Luis Ángel San Martín
06814d066a
Merge pull request #200 from vedgy/rename-processor-class-typo
...
Fix a typo in ComicQueryResultProcessor class name
2021-03-13 15:54:22 +01:00
Igor Kushnir
b87be81037
Deprecated QSortFilterProxyModel::clear() => invalidate()
2021-03-09 21:32:23 +01:00
Igor Kushnir
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
Igor Kushnir
3c9ed6ef8f
Deprecated qSort => std::sort
...
This change gets rid of some GCC's -Wdeprecated-declarations warnings.
2021-03-09 21:32:23 +01:00
Igor Kushnir
5fd5ff5b64
DB model classes: use explicit, nullptr, override
2021-03-06 21:00:31 +01:00
Luis Ángel San Martín
b55c442590
Add missing import
...
It fixes compilation with some compilers
2021-02-08 08:38:15 +01:00
Igor Kushnir
5656c3f540
Make ComicQueryResultProcessor::modelData() static
...
The function doesn't use data members or other member functions. It
could even be put into an unnamed namespace in the cpp file, but that
would require more changes and complicate turning it back into a member
function if need be in the future.
2021-02-06 20:08:47 +02:00
Igor Kushnir
12c2ff027a
ComicQueryResultProcessor: fix a typo in the class name
2021-02-06 20:08:44 +02:00
Igor Kushnir
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
Luis Ángel San Martín
6d5f3d7de3
Use the query search queue in FolderQueryResultProcessor
2021-02-04 19:15:58 +01:00
Luis Ángel San Martín
6461a4014e
Add actions for setting folders as manga/normal
2021-01-16 18:31:48 +01:00
Luis Ángel San Martín
f7fa4adbd0
Add manga
field to folders too
...
This way we can tell the app that a folder contains mangas so the user doesn't have to constantly set comics as manga when new issues are added. And it should be easier to set all the content in a folder as manga from the folder tree.
2021-01-16 18:29:22 +01:00
Luis Ángel San Martín
9643274b39
Enable manga
in the search engine
2021-01-16 14:26:37 +01:00
Luis Ángel San Martín
97c7723b17
Add support for setting issues as manga/normal in the comics view
2021-01-16 14:25:47 +01:00
Luis Ángel San Martín
3ab05c6777
Add a new boolean field for tagging comics as manga
2021-01-16 14:23:59 +01:00
Luis Ángel San Martín
76a307d0d8
Remove comments
2021-01-14 19:11:25 +01:00
Luis Ángel San Martín
6bb64c5467
Import non-gui global header
2021-01-14 18:42:51 +01:00
Luis Ángel San Martín
82eb5c0a8b
Add fallback for qt < 5.15
2021-01-14 15:51:20 +01:00
Luis Ángel San Martín
f03ad848cb
Add support for true
and false
literals to be used with bool fields
...
The lexer itself should be responsible for parsing those values but it will require a bigger refactoring.
2021-01-14 15:32:20 +01:00
Luis Ángel San Martín
f803b54f2e
Add support for boolean folder fields
2021-01-14 12:25:24 +01:00
Luis Ángel San Martín
5343d24f26
Run folder search filtering in the background
...
It uses the same approach used by the comics search filter
2021-01-14 11:37:17 +01:00
Luis Ángel San Martín
ccc382df7d
Use ComicQueryResultProcesor
2021-01-14 09:17:18 +01:00
Luis Ángel San Martín
dbdc7bd965
Add a class for processing search queries and create the comics model data
2021-01-14 09:10:58 +01:00
Luis Ángel San Martín
7b36100458
Use QString::fromStdString
...
Just to keep things consistent in the whole round trip conversion
2021-01-14 08:51:08 +01:00
Luis Ángel San Martín
260f538de3
Use an explicit constructor for TreeNode
...
List initialization ended using movable constructors which surprisingly caused data troubles in release mode, at least in VC2019 compiler. The tree being messed up caused crashes while SQL was generated.
I have no explanation for it.
2021-01-14 08:49:48 +01:00
Luis Ángel San Martín
f09c5955d8
Remove space and atWord tokens
...
`atWord` wasn't used at all and spaces should be eaten by the lexer
And added `unspecified` token
2021-01-14 08:39:16 +01:00
Luis Ángel San Martín
ddb140d430
Remove misplaced code
2021-01-12 18:57:25 +01:00
Luis Ángel San Martín
a777aa3fe8
Replace lexertl with a custom lexeter implementation
...
QueryLexeter does not parse "atWord" because I couldn't find what it is used for.
2021-01-12 18:56:59 +01:00
Luis Ángel San Martín
5037f3ac92
Fix data base removal in FolderModel
2021-01-12 18:41:57 +01:00
Luis Ángel San Martín
6438c9210f
Move query execution and model setup to the right scope
2021-01-12 18:41:09 +01:00
Luis Ángel San Martín
255e51da86
Fix binding values to search query
...
This was broken while doing a rebase
2021-01-08 16:59:17 +01:00
Iain Benson
8efb9912ee
Use concatenation, rather than ostringstream
2021-01-08 15:56:16 +01:00
Luis Ángel San Martín
4990093e3d
Remove c++17 dependency
2021-01-08 15:56:16 +01:00
Luis Ángel San Martín
2d3888b4b4
Fix scopes
2021-01-08 15:56:13 +01:00
Luis Ángel San Martín
7ccb338455
Apply clang-format
2021-01-08 15:51:59 +01:00
Iain Benson
9a660350d2
Add some documentation and attribution to the query parser
2021-01-08 15:51:59 +01:00
Iain Benson
30529dca43
Some small tidy ups
2021-01-08 15:51:56 +01:00
Iain Benson
673ee1f067
Use the query parser in the comic and folder model
2021-01-08 15:41:29 +01:00
Iain Benson
5fa7da1e46
Add folder into the query parser
2021-01-08 15:41:29 +01:00
Iain Benson
4a50d438d0
Add query parser class
2021-01-08 15:41:28 +01:00
Luis Ángel San Martín
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
Luis Ángel San Martín
c84fc20419
Reset last time opened when setting a comic as unread
2020-08-25 19:00:21 +02:00
Felix Kauselmann
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