Igor Kushnir
a72fdb9ca2
ConcurrentQueue::cancelPending: don't reset jobsLeft to 0
...
Worker threads may well be executing jobs while this function is being
called. If ConcurrentQueue::waitAll() is called soon enough after
cancelPending(), the worker threads may still be running, but waitAll()
would return immediately as jobsLeft would be nonpositive.
Subtracting _queue.size() from jobsLeft sets this variable to the number
of worker threads that are executing jobs at the moment.
ConcurrentQueueTest::cancelPending1UserThread() passes most of the time
now. But it still fails occasionally because it depends on the timing of
thread scheduling, which is unreliable.
2021-12-29 09:36:44 +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
e7f3d29477
Tag ComicDB::operator== as const
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
5fbd100449
Use non deprecated QStandardPaths and remove Qt4 alternative
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
dc8c6e23e9
Use angleDelta instead of delta
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
d47bd55fa0
Don't use helper function to avoid raising the Qt5 min version requeriment
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
f300bc3aa0
Include QMetaType explicitly
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
b83d7150d7
Use QElapsedTimer instead of QTime
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
bdb23de74a
Use fully qualified names
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
9ebd6e32da
Fix QtOpenGL* includes in Qt6
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
35fa03549b
Use fully qualified names
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
326cebdf7f
*Ref methods are deprecated in Qt6
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
a792a03760
Use QRegularExpression instead of QRegExp
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
ecd1497370
Don't use virtual methods unnecessarily
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
db433be88c
Include QRegExp explicitly
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
b878e8169e
Replace QDateTime constructor
...
Using the last moment of the day is enough because all other dates in bookmarks have happened before.
2021-10-19 00:00:08 +02:00
Luis Ángel San Martín
459883d7be
Use *Ref methods instead
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
a56914bec3
Do not use foreach
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
c1d3fb0778
Proper use of range for
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
c03b1075f3
Do not mix const an non-const iterators
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
5557cfe5b3
Remove unused variable
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
e1ed292a91
Convert emit(signal()) calls to emit signal()
2021-10-19 00:00:07 +02:00
Luis Ángel San Martín
5aa02a19bb
clang-format
2021-10-18 21:56:52 +02:00
Luis Ángel San Martín
a77facce6d
Add helper properties for parsing day/month/year sequentially
2021-09-27 15:28:05 +02:00
Luis Ángel San Martín
b0a6411528
Initialize attributes in constructor
2021-09-27 15:27:44 +02:00
Felix Kauselmann
76ab23b776
Common: Convert last signals to new slot syntax
2021-06-29 13:53:12 +02:00
Felix Kauselmann
47324e7f22
Comic/Render: Use overloads refactor some SIGNAL/SLOT connections to new syntax
2021-06-29 13:53:12 +02:00
Felix Kauselmann
ae8e47d863
Clazy: Add second batch of SIGNAL/SLOT removal
2021-06-29 13:53:12 +02:00
Felix Kauselmann
f813a018d2
Comic: Virtual prototype for process(), fix signal/slot
2021-06-29 13:53:12 +02:00
Luis Ángel San Martín
891546b423
9.8.2 release
2021-06-19 18:13:01 +02:00
Luis Ángel San Martín
1c382aef72
Update version to 9.8.1
2021-06-02 18:57:41 +02:00
Luis Ángel San Martín
51284cb652
Add new struct to represent the source where a comic can be opened from
...
A comic always belongs to a Folder, but when we open one its siblings may be different in we are opening it from a Reading List. I am not sure that Tags should keep the reading order because their purpose is abstract, so their behaviour will be opening the comics from theirs container folders.
2021-05-27 18:35:08 +02:00
Luis Ángel San Martín
b8ad99fcaa
Exract struct to reuse it
2021-04-30 09:52:31 +02:00
Igor Kushnir
21c3bda5d4
YACReaderFlowGL: initialize data member texture pointers
...
Moving the initialization of defaultTexture out of the member
initializer list gets rid of a GCC's -Wreorder warning.
Initialize other texture pointers to improve safety and consistency.
2021-03-09 21:32:23 +01:00
Felix Kauselmann
81b4d25b5c
Remove unneeded QtOpenGL dependency
...
Qt OpenGL in Qt5 is a deprecated module that is discouraged for
new code usage. We have been including this module in our builds
despite not relying on its functionality for a long time now -
probably an oversight from porting to the newer functions.
Time to remove it.
IMPORTANT INFORMATION: In Qt6, a lot of functionality that was
provided by Qt GUI was moved into the 'new' Qt6 Qt OpenGL module.
Thus, even if it makes perfectly sense to remove it for Qt5 builds
we will likely have to restore it for Qt6 builds at a later time.
2021-03-09 18:26:01 +01:00
Luis Ángel San Martín
93596a4972
Restore needed lock
2021-02-08 09:02:19 +01:00
Luis Ángel San Martín
4c93c70de6
Use the right mutex when the queue is modified
2021-02-08 08:32:42 +01:00
Luis Ángel San Martín
60de69635b
Get/set new manga field from/to the db
2021-01-16 18:30:25 +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
c3b0780e03
Remove unused constant
2021-01-14 11:37:37 +01:00
Luis Ángel San Martín
fa5ce25425
Add concurrent queue based on lambdas
2021-01-14 09:03:17 +01:00
smahot
f6bed8590f
Support for third party qt image plugins
2020-09-30 19:01:12 +02:00
Luis Ángel San Martín
948ed595e7
Bump version number to 9.7.1
2020-09-12 12:02:55 +02:00
Luis Ángel San Martín
c490b70b68
Move declaration to the viewer group
2020-09-07 18:13:06 +02:00
Luis Ángel San Martín
bb09be3d6a
Bump version number
2020-09-03 18:05:05 +02:00
Luis Ángel San Martín
802e0d32ce
Fix trying to scale images on null images
2020-09-03 18:00:29 +02:00
Felix Kauselmann
5bb6ab276a
Reader: Add option to show covers as single pages in double page mode
2020-09-03 15:32:45 +02:00
Felix Kauselmann
232181eef7
Reader: Add option to stop enlarging images in fit to width and height
2020-09-02 09:27:53 +02:00
Luis Ángel San Martín
5f0889f332
Format
2020-08-31 16:19:42 +02:00
Luis Ángel San Martín
a2b4b88801
Format
2020-08-31 16:04:26 +02:00