Chocobo1
5c06d0aa75
Replace template conditionals with C++20 requires
clause
...
Related: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-constraints.html
PR #19424 .
2023-08-09 20:33:19 +08:00
Vladimir Golovnev
06581636a1
Utilize QByteArrayView
...
PR #19417 .
2023-08-07 11:21:32 +03:00
Vladimir Golovnev
a0fa1709d5
Raise minimum supported Qt version to 6.5
...
PR #19394 .
2023-08-07 07:19:43 +03:00
Chocobo1
a5a4ea9ba0
Remove unused conditional
2023-07-31 03:03:02 +08:00
Chocobo1
7612d5d0ef
Use default operators generated/synthesized by compiler
2023-07-22 02:25:44 +08:00
Vladimir Golovnev
dbe79484d2
Drop support of Qt 5
...
Also remove usage of some deprecated stuff.
PR #19338 .
2023-07-20 11:17:27 +03:00
Chocobo1
66e533f505
Avoid redundant buffer copying
...
PR #19272 .
2023-07-04 14:04:41 +08:00
Chocobo1
80791e328d
Fix wrong behavior when reading text
...
Also add another 'file read error' status.
Closes #19254 .
PR #19262 .
2023-07-02 13:23:20 +08:00
Chocobo1
e6d85a468b
Rename literal operator
...
Qt 6.4 introduced `QString operator""_s()` and the previous `""_qs` is
deprecated since Qt 6.8.
2023-06-18 03:32:44 +08:00
Chocobo1
79ca2e145f
Don't read unlimited data from files
...
It now guards against reading infinite files such as `/dev/zero`.
And most readings are bound with a (lax) limit.
As a side effect, more checking are done when reading a file and
overall the reading procedure is more robust.
PR #19095 .
2023-06-14 13:38:19 +08:00
Vladimir Golovnev
160af4feef
Show I2P peer addresses
...
PR #18845 .
2023-06-01 17:16:03 +03:00
Chocobo1
b406d669b3
Bump python version minimum requirement
...
PR #18996 .
2023-05-22 12:37:02 +08:00
Chocobo1
4ef8f39f23
Use python isolate mode
...
This (more or less) avoids user's environment variables tampering the
search process.
And also remove usages of `eval()` and `exec()`.
PR #18995 .
2023-05-21 14:04:44 +08:00
Chocobo1
5f00d42a49
Drop superfluous const
2023-05-05 14:51:02 +08:00
Chocobo1
5dcc14153f
Move feature macro declaration to build scripts
...
PR #18825 .
2023-04-10 13:38:00 +08:00
Chocobo1
a01f1014b9
Inline variable defined in header
2023-04-05 18:32:18 +08:00
Vladimir Golovnev
77aa85fbd3
Provide UI Theme editor
...
PR #18655 .
2023-03-16 10:03:05 +03:00
brvphoenix
b33dc7d831
Unify the way to generate the language list in WebUI and GUI
...
PR #17994 .
2022-12-25 16:44:37 +03:00
Vladimir Golovnev
ac3ad17a9e
Ensure thread is stopped before deleting QThread
...
PR #18037 .
2022-12-08 08:37:14 +03:00
vlakoff
ad59eb4dfc
Revert "Consider brackets within wildcard as regular characters"
...
The implementation appeared to be broken.
This reverts #16965 .
PR #17820 .
2022-10-05 12:43:43 +08:00
Chocobo1
851374e517
Rename function
2022-09-07 14:11:23 +08:00
Chocobo1
4094a4c448
Simplify functions
2022-09-07 14:11:02 +08:00
Chocobo1
33e6ca6778
Redesign Version class
...
PR #17484 .
2022-08-06 11:06:16 +08:00
Chocobo1
a4c2363f43
Improve constructor of Version class
...
Now we can write `Version<int, 3, 1>(1)` and provide only 1 parameter
instead of all 3 parameters at once at the constructor. Note that for
this instance of `Version` 3 numbers were specified but only 1 is truly
mandatory.
The added code are required to specify conditions of the template
instantiation for the compiler.
2022-08-01 14:53:55 +08:00
Chocobo1
0802b6d506
Fix empty string parameter was omitted
...
`QProcess::splitCommand()` will omit empty strings like `""` so provide
our own replacement.
Closes #13124 .
2022-07-30 00:17:31 +08:00
Chocobo1
50b01ed45d
Revise function for checking "same file"
2022-07-25 01:18:37 +08:00
Chocobo1
727d20cc92
Simplify implementation
...
This also enable each platform to provide its own optimal implementation of it.
2022-07-23 22:41:26 +08:00
Chocobo1
02d906d3ae
Initialize pointer to a default value
2022-06-23 21:31:16 +08:00
brvphoenix
7faa8b7a02
Don't use QCollator when it works on posix mode
...
PR #17204 .
2022-06-14 13:22:30 +08:00
Chocobo1
73faf67084
Clean up usage of static
keyword
...
They are either misused or redundant, so remove it.
2022-05-30 13:25:34 +08:00
Chocobo1
a9f99aed48
Revise code
2022-05-27 16:23:18 +08:00
vlakoff
b84333f8a1
Consider brackets within wildcard as regular characters
...
In glob patterns, square brackets have a special meaning, that may be unexpected by the users.
Thus we escape these brackets, so that the only remaining special characters are the * and ? wildcards.
PR #16965 .
2022-05-18 08:33:14 +03:00
Chocobo1
e82c50ed73
Clean up code
2022-05-16 01:15:08 +08:00
Chocobo1
be4a1e7fd7
Suppress wrong print specifier
...
By removing unimportant debug message.
2022-05-08 16:46:36 +08:00
Chocobo1
a0a45333f1
Don't use old style casts
2022-05-08 14:53:27 +08:00
Chocobo1
7c1a986e61
Implement stringable interface for Version
type
2022-03-26 13:58:25 +08:00
Chocobo1
4ca6de2b54
Revise string literal usage
...
PR #16703 .
2022-03-26 11:53:50 +08:00
Chocobo1
bbd936fdfa
Don't use explicit memory management
...
And avoid dangling pointers.
2022-03-24 14:44:38 +08:00
Chocobo1
8a708fd97e
Use proper type to represent a path
2022-03-23 22:04:05 +08:00
Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
2022-03-20 13:33:40 +08:00
Chocobo1
802ec5a14e
Use QString literals
...
This patch covers src/gui and some leftovers from previous commit.
2022-03-18 12:46:01 +08:00
Chocobo1
f0dd7b7dae
Use QString literals
...
This patch covers src/app and src/base folders.
Follow up of ab64ee872bd76b9fe27a1814550cab386e20a0d5.
2022-03-11 00:11:30 +08:00
Chocobo1
ab64ee872b
Use QString literals
...
The plan is to define `QT_NO_CAST_FROM_ASCII` eventually.
PR #16561 .
2022-03-04 13:25:22 +08:00
Vladimir Golovnev
dd1bd8ad10
Implement class for handling filesystem paths
...
PR #15915 .
2022-02-08 06:03:48 +03:00
Vladimir Golovnev
f44341a8e2
Handle .!qB extension behind the scenes
...
PR #15920 .
2022-01-08 08:45:50 +03:00
Vladimir Golovnev (Glassez)
1c0f8b4289
Redesign "Incomplete folder" feature
...
Change "Incomplete/temp folder" term with "download folder".
Allow to set "download folder" per torrent (in manual mode) and per category (in automatic mode).
2022-01-01 20:58:49 +03:00
Vladimir Golovnev
5347897b7d
Merge pull request #15852 from glassez/torrent-info
...
Improve torrent content handling
2021-12-20 08:54:46 +03:00
Vladimir Golovnev (Glassez)
62b50d1475
Make TorrentInfo immutable
2021-12-19 16:16:16 +03:00
Chocobo1
b8a7ecfe69
Introduce versioning on main configuration file
2021-12-11 01:45:49 +08:00
Chocobo1
c8b66b25e8
Avoid potential container detachment
...
Suppress clazy warning:
warning: Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary]
2021-11-29 00:31:03 +08:00