Vladimir Golovnev (Glassez)
24bc5a9875
Unify custom exceptions
2021-06-15 14:19:53 +03:00
Nick Korotysh
ea82962c5d
Improve Info.plist generation with CMake
...
- drop configure_file() and file(GENERATE) calls
- fill missed MACOSX_DEPLOYMENT_TARGET variable
2021-04-27 23:51:13 +03:00
Nick Korotysh
0140ed356f
Don't use executable name as CFBundleName value
2021-04-21 21:07:25 +03:00
sledgehammer999
e7235cc3f8
Revert "Use QRegularExpression instead of deprecated QRegExp"
...
Related to #14611
This reverts commit 3b748178c2 .
2021-03-26 12:43:51 +02:00
sledgehammer999
1570b51f6c
Lower Qt requirement to 5.11
...
Partially reverts 4037143f4e
Closes #14611
2021-03-26 12:42:08 +02:00
Vladimir Golovnev (Glassez)
3b748178c2
Use QRegularExpression instead of deprecated QRegExp
...
Now it follows closely the definition of wildcard for glob patterns.
The backslash (\) character is not an escape char in this context.
In order to match one of the special characters, place it in square
brackets (for example, [?]).
2021-03-23 22:26:50 +02:00
Vladimir Golovnev (Glassez)
4037143f4e
Raise minimum supported Qt version to 5.12
2021-03-23 22:26:26 +02:00
Chocobo1
8cae8ad5c5
Replace parameters in one step
...
This would avoid the unwanted effect of replacing parameter coming from
another parameter.
2021-03-23 22:26:22 +02:00
Vladimir Golovnev (Glassez)
437b51b3a5
Improve "info hash" handling
...
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1,
or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2.
Add support for native libtorrent2 info hashes.
2021-03-23 22:26:18 +02:00
Vladimir Golovnev (Glassez)
9971329121
Look for qbittorrent.pdb in installation directory
...
Pass application directory as PDB search path in SymInitialize.
Otherwise it searches in application working directory so when you
run qBittorrent with working directory other than its installation
one it can't find qbittorent.pdb file and produces broken stacktrace.
2021-03-23 22:26:10 +02:00
Vladimir Golovnev (Glassez)
f16c585a77
Drop implicit conversions between InfoHash and QString
2021-03-23 21:05:40 +02:00
Michał Kopeć
2b18318e0c
Add an option to disable icons in menus
2021-03-23 21:05:30 +02:00
Vladimir Golovnev (Glassez)
1880082017
Remove redundant suffix from TorrentHandle class
...
Originally, it was just a wrapper for libtorrent::torrent_handle class, so it mimicked its name.
It was then transformed into a more complex aggregate, but the name was retained (just by inertia).
Unlike libtorrent::torrent_handle class in whose name "handle" means the pattern used,
it does not matter for qBittorrent classes and just eats up space in the source code.
2021-01-17 22:47:00 +02:00
Chocobo1
77f4e6c2cf
Generate version header when configuring project
...
The basic idea is we create a version header template at
"src/base/version.h.in" and the build systems are expected to replace
strings that are enclosed with @ symbols and generate
"src/base/version.h" for other source files to consume/include.
2021-01-06 21:36:39 +02:00
Vladimir Golovnev (Glassez)
74bf3af41c
Use std::optional<bool> instead of custom TriStateBool
2021-01-06 21:36:33 +02:00
Chocobo1
d7afad835e
Revise SettingsStorage store/load value interface
2021-01-06 21:36:22 +02:00
Chocobo1
fb4bf94a56
Use function-pointer based signal-slot connection
2021-01-06 21:31:50 +02:00
Vladimir Golovnev (Glassez)
c08ec1ac5e
Allow to add root folder to torrent content
2020-12-26 20:27:34 +02:00
FranciscoPombal
fdc64d9b38
Use #pragma once instead of include guards
2020-12-26 20:27:10 +02:00
Chocobo1
5a96e1fc7a
Use Qt provided forward declaration header
2020-12-26 20:26:58 +02:00
Vladimir Golovnev (Glassez)
1728c16580
Improve coding style
2020-11-24 16:14:14 +02:00
Chocobo1
f02b65b866
Fix typos
2020-11-24 16:13:19 +02:00
FranciscoPombal
776c1f1546
Always use multi-arg arg() overload when possible
...
Fixed clazy-qstring-arg Clazy warnings
2020-10-07 15:34:26 +01:00
Vladimir Golovnev (Glassez)
3d0543c444
Fix static build with Qt < 5.14
2020-09-28 07:10:49 +03:00
Vladimir Golovnev (Glassez)
aef8f4f465
Set target property before it is used
2020-09-27 22:17:50 +03:00
Chocobo1
da2a26fa01
Use silent flag when invoking lrelease via cmake
2020-09-21 12:16:47 +08:00
FranciscoPombal
46123b9989
CMake: overhaul and improve scripts
...
- Bump minimum required version and
make use of more modern language features
- Rely more on target_...() commands to establish dependency
relationships between targets rather than directory property commands
- Improve libtorrent package discovery
- Enable and handle application features more explicitly
- Improve user-facing output
- Fix various compilation issues on Windows (MSVC and MinGW) and macOS
- Improve handling of translations
- Add explanatory comments where relevant
- Make CMake scripts fully independent of qmake files/details
- Remove old functions/macros
2020-09-17 13:13:26 +01:00
jagannatharjun
5b4a940842
Load custom theme before initializing main window
...
Improves debug build startup time with custom themes
2020-08-02 14:02:18 +05:30
FranciscoPombal
8f8f7ebd15
Remove DISABLE_COUNTRIES_RESOLUTION define
2020-07-08 01:07:50 +01:00
Chocobo1
8ebb6dc559
Initialize variable at better place
2020-06-26 17:17:29 +08:00
Chocobo1
a1ea7a111e
Don't use deprecated QProcess::startDetached() overload
2020-06-04 20:20:50 +08:00
Chocobo1
c239568658
Don't use deprecated QTextStreamFunctions::flush()
...
Qt doc states: "If QTextStream operates on a string, this function does
nothing". So remove it.
2020-06-04 15:29:32 +08:00
jagannatharjun
ab91d546e5
Move all icon resources to icon folder root
2020-05-18 20:30:51 +05:30
Vladimir Golovnev (Glassez)
a22f921941
CMake: Fix optional features handling
2020-05-02 20:59:26 +03:00
Vladimir Golovnev (Glassez)
ad0ee0cd36
CMake: Enable/disable GUI application via option
2020-05-01 17:03:01 +03:00
Vladimir Golovnev (Glassez)
fb42434946
CMake: Put executable into top-level directory
2020-05-01 17:03:01 +03:00
Vladimir Golovnev (Glassez)
642bf7b8a6
CMake: Don't split GUI code into several libraries
2020-05-01 17:03:00 +03:00
Vladimir Golovnev (Glassez)
4a2d25b03b
Clean up header inclusion
2020-05-01 17:02:49 +03:00
Chocobo1
d3d3f7dbb3
Add final specifier to classes
...
This allow compilers to generate more efficient code.
2020-04-17 13:18:40 +08:00
Vladimir Golovnev
2681093d27
Merge pull request #12513 from glassez/torrent-impl
...
Split TorrentHandle interface and implementation
2020-04-17 07:40:28 +03:00
Mike Tzou
a5fe96f793
Merge pull request #12458 from jagannatharjun/log
...
Convert the Log widget to use custom View/Model
2020-04-17 11:27:35 +08:00
Vladimir Golovnev (Glassez)
1132b84548
Split TorrentHandle interface and implementation
2020-04-16 20:22:26 +03:00
jagannatharjun
fd89717330
Convert the Log widget to use custom View/Model
...
Co-authored-by: sledgehammer999 <hammered999@gmail.com >
2020-04-15 22:18:00 +05:30
Vladimir Golovnev (Glassez)
4e6790dfbb
Prevent multiple instances for the same app config
2020-03-31 17:16:47 +03:00
Mike Tzou
2408ce98e6
Merge pull request #12285 from Chocobo1/log
...
Save log file in UTF-8 encoding
2020-03-27 09:39:54 +08:00
Mike Tzou
6b5b5df90c
Merge pull request #12283 from Chocobo1/qtTr
...
Include translation resources with file globbing
2020-03-27 09:38:46 +08:00
Mike Tzou
185d8c97c1
Merge pull request #12273 from Kolcha/hidpif
...
Don't round scaling factor
2020-03-27 01:06:08 +08:00
Chocobo1
c52737e07c
Avoid log file excessive flushing
...
Excessive flushing could happen when a lot of logging happens in a short
time interval.
2020-03-26 16:12:24 +08:00
Chocobo1
12396a7582
Save log file in UTF-8 encoding
...
Otherwise it uses sytem defaults: usually UTF-8 on Linux and local 8-bit
encoding on Windows.
2020-03-26 16:00:57 +08:00
Chocobo1
d179c6d5a1
Rename variable
2020-03-26 15:49:14 +08:00