Chocobo1
b9b2ed64f9
Assign temporary data to a variable
...
This is mainly to avoid dangerous code pattern: getting an iterator on a
temporary object. Previously `data()` returns a const reference so the
code wasn't doing any harm.
3 years ago
Chocobo1
16bc0531f4
Simplify code
3 years ago
Chocobo1
39c34078d6
Move comparison operator out of class
3 years ago
Chocobo1
6f4a9390ba
Fix wrong conversion to QVariant
...
It was converted to bool-like type which is wrong.
3 years ago
Chocobo1
0eb6967bb2
Migrate away from unsigned integer types
...
Signed integers should be preferred in these cases.
3 years ago
Chocobo1
2854630b1c
Use signed integer type for counters
3 years ago
Chocobo1
bbd781c420
Omit redundant cast
3 years ago
Chocobo1
af7c32d3aa
WebUI: remove temporary element
3 years ago
Chocobo1
0d334369f0
WebUI: show correct location path
...
The `path` might contains '&' (delimit character) so it must be
encoded.
Closes #15976 .
3 years ago
Chocobo1
08f3630f01
WebUI: make various dialog resizable
...
And enlarge dialog default width.
3 years ago
Vladimir Golovnev
df2d449f9b
Revamp content layout handling
...
Apply content layout only if desired file names aren't provided.
Remove helpers with confusing signatures.
Don't remove root folder twice.
PR #16724 .
Closes #16259 .
3 years ago
Chocobo1
eab455422f
Add missing header
...
Fix up 75c93d72be
.
3 years ago
Chocobo1
75c93d72be
Revise string literal usage
...
This commit covers src/gui folder.
PR #16757 .
3 years ago
sledgehammer999
f5239ffb0b
CMake: Use installed Qt's translations for packaging
3 years ago
Chocobo1
7c1a986e61
Implement stringable interface for `Version` type
3 years ago
Chocobo1
c6b772da11
Improve function interface
...
`SettingsStorage` methods require `QString` so make `SettingValue` follow it.
`Path::operator+` can use `QStringView` to accept wider audience.
3 years ago
An0n
11cfe38d1c
Fix WebUI crash due to missing tags from config
...
Tags can be missing from config but set inside .fastresume. May happen due to corrupted/deleted config.
Closes #11906 .
PR #16711 .
3 years ago
Chocobo1
4ca6de2b54
Revise string literal usage
...
PR #16703 .
3 years ago
Chocobo1
bbd936fdfa
Don't use explicit memory management
...
And avoid dangling pointers.
3 years ago
Chocobo1
8a708fd97e
Use proper type to represent a path
3 years ago
An0n
bf8d993743
Change Downloaded to Times Downloaded in trackers tab
...
PR #16677 .
3 years ago
Vladimir Golovnev
c029122a8e
Avoid integer overflow when calculating working set size
3 years ago
Chocobo1
6c10aa33e1
Provide interface for serialization to string type
...
PR #16685 .
3 years ago
sledgehammer999
b7c098c5e6
Sync translations from Transifex and run lupdate
3 years ago
Vladimir Golovnev (Glassez)
386f99cb1d
Fix "Set location" to be really applied
3 years ago
Vladimir Golovnev (Glassez)
a4b606c6e9
Fix compilation issues due to inappropriate QString usage
3 years ago
AbeniMatteo
baa8d2c326
Add option to toggle filters sidebar
...
PR #15409 .
3 years ago
Vladimir Golovnev
ca2be2f499
Prevent Digest32 shared data from being detached
...
Delayed hash string generation should not cause detaching of shared data.
PR #16664 .
3 years ago
Vladimir Golovnev
5960e7dda6
Prevent crash when open torrent destination folder
...
Uses the same workaround as Qt does to call ShellExecute() when you use QDesktopServices::openUrl().
PR #16670 .
Closes #16423 .
3 years ago
Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
3 years ago
Chocobo1
f888fb4ac7
Remove unused code
3 years ago
Chocobo1
1b4c5fd34d
Remove unused variable
3 years ago
Chocobo1
802ec5a14e
Use QString literals
...
This patch covers src/gui and some leftovers from previous commit.
3 years ago
Chocobo1
7694b21dff
Enlarge "speed limits" icons
...
And make use of QStyle pixelMetric().
PR #16630 .
3 years ago
Tyler Dunn
cf061b7d30
Allow buttons to be focusable
...
This improves accessibility.
PR #16648 .
3 years ago
Chocobo1
7fffb6526c
Remove redundant properties
...
And revise tooltip messages.
PR #16651 .
3 years ago
NotTsunami
dd5b16831c
Unify coding style
3 years ago
NotTsunami
b5d67f90e4
Add horizontal scrolling for tracker list and torrent content
3 years ago
Vladimir Golovnev (Glassez)
ce42f7c9f1
Properly handle metadata download for an existing torrent
3 years ago
Chocobo1
02869d7428
Avoid unnecessary lookups
...
Fix up 30319e51e5
.
PR #16629 .
3 years ago
Aleksandr Cupacenko
67b35b76ac
Fix C++ word breaking
...
Fixes #13805 .
PR #16636 .
3 years ago
Chocobo1
154ee1a73e
Use hashing helpers provided by Qt6
3 years ago
Chocobo1
b3fb6bd990
Avoid redundant hashing
...
The return type of `std::hash()` is larger (or equal) than what
`qHash()` requires so we can omit hashing it again.
3 years ago
Chocobo1
926d51839f
Update function signature for Qt6 `qHash()`
...
Since the `qhash()` signature has changed in Qt6.
3 years ago
Chocobo1
88fe94bd6a
Remove obsoleted functions from Utils::Gui namespace
...
`widget` parameter is kept for now to avoid major disruption for other PR.
Also add comments for loading svg images.
PR #16613 .
3 years ago
Aleksandr Cupacenko
1b53c590f2
Allow blank lines in multipart form-data input
...
Fixes #11298 .
PR #16579 .
3 years ago
Chocobo1
2ee5b35f48
Use proper image loading path for SVG icons
3 years ago
Chocobo1
f0dd7b7dae
Use QString literals
...
This patch covers src/app and src/base folders.
Follow up of ab64ee872b
.
3 years ago
Chocobo1
9f32e6e50d
Fix wrong parentheses
...
Fix up 294ea17222
.
3 years ago
An0n
801cfdbc24
Allow setting the number of maximum active checking torrents
...
This is to allow re-checking of multiple torrents simultaneously. This will benefit users who
have multiple disks or SSD.
Closes #15296 .
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
3 years ago