Vladimir Golovnev (Glassez)
6cb15706f5
Reduce number of DownloadManager signals
6 years ago
Chocobo1
3dd969df64
Replace deprecated QSignalMapper class
6 years ago
thalieht
77aea3c59e
Add const to a few pointer arguments
6 years ago
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
6 years ago
thalieht
947c7e1d64
Convert to range-based for loop
6 years ago
thalieht
8a3f942385
Don't use 'else' after return/break
6 years ago
thalieht
445adb0ab4
Convert pass-by-value arguments to const refs where applicable
6 years ago
thalieht
ca3ce87e06
Add const to many vars and arguments
...
Also remove const in declarations' arguments that are passed by value
6 years ago
Vladimir Golovnev (Glassez)
5a86c4ac52
Close context menu when content model is reset
...
Closes #9522 .
6 years ago
Vladimir Golovnev (Glassez)
c631dbdaa1
Improve Properties widget
...
Drop redundant dependencies.
Refresh after BitTorrent session refreshing (instead of using timer).
6 years ago
Nick Korotysh
bd1856594b
Draw progress bar in Fusion style on macOS systems
...
Qt has a bug QTBUG-72558, which leads to incorrect progress bar
position, when drawing it in delegate.
Also, since OS X 10.10 Yosemite macOS default style was changed,
and progress bars became very tiny and without text (percentage).
These two cases make qBittorrent look pretty awful, but drawing
progress bar in Fusion style solves both issues.
6 years ago
Chocobo1
2a84345835
Mark constructors as explicit
6 years ago
Thomas Piccirello
718f66e6a2
Remove condition for unsupported libtorrent version
6 years ago
Thomas Piccirello
c89e9d4354
Reorder and rename Tracker list context menu option
...
Adds an ellipses to indicate that the Edit option opens a dialog. Also moves Edit to top of the list to convey action's prominence.
6 years ago
Thomas Piccirello
b481787574
Rename Tracker List columns
...
"Received" renamed to "Peers", "Peers" renamed to "Leeches".
6 years ago
Thomas Piccirello
f27dc977e9
Replace prio namespace with FilePriority enum class
6 years ago
thalieht
1f36b8b89f
Combine qAsConst() with copyAsConst() to asConst()
6 years ago
thalieht
6b1d26d555
Convert all foreach() to range-based for()
6 years ago
thalieht
d668a4fe6d
Fix coding style for various things
6 years ago
Chocobo1
d866033a8e
Fix divide-by-zero crash
...
Previously here was using a cheap method to avoid divisor becoming < 0, but from
the crash stacktrace it seems this is not enough, now the divisor is properly
clamped to have 1 as the minimum.
Also it will now display "Unknown" for invalid calculation results.
Closes #9857 .
6 years ago
dzmat
6fa64c81b7
Fix speed graph "high speeds" bug
6 years ago
Chocobo1
266ce1d226
Clean up SpeedLimitDialog class
6 years ago
dzmat
fabd7e34f5
Improve scaling of speed graphs
...
Make Y axis scale to fix on predetermined nice looking positions
6 years ago
dzmat
23d924643f
Reduce horizontal graphs resolution
...
Rewrite averaging code and reduce horizontal graphs resolution for
30 minutes and 6 hours graphs to decrease CPU usage.
6 years ago
dzmat
2d0f0cb372
Allow to disable speed graphs
6 years ago
thalieht
94613c2fa2
Fix some warnings
6 years ago
thalieht
e2b46f01bb
Show "N/A" if there is no scrape
...
Disambiguates whether the tracker send a response of 0 peers/seeds/downloaded or didn't send one at all.
6 years ago
thalieht
ffc2193df9
Preselect name without extension when renaming files
...
And preselect the whole string for everything else.
6 years ago
Chocobo1
56766dc08b
Avoid binding constant reference to returned object
...
In such cases, it makes no sense doing so.
6 years ago
Chocobo1
0217d5b4c0
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
6 years ago
thalieht
456270bbb1
Delete several unused #include
7 years ago
thalieht
eb508d67ef
Fix coding style
7 years ago
thalieht
6d4434ad66
Convert the names used in ui and c++ files from snake_case to camelCase
7 years ago
Vladimir Golovnev (Glassez)
112a9bcfa2
Use new DownloadManager interface
7 years ago
thalieht
d34ddb2e3c
Change file names and classes names to match them
7 years ago
thalieht
4022799881
Fix coding style
7 years ago
Chocobo1
5ddbf9bba9
Replace post-increment with pre-increment
...
And post-decrement with pre-decrement.
7 years ago
Eugene Shalygin
fa770871e9
Refactor CMake build scripts
...
1. Use FeatureSummary module to show configuration results.
2. Invert option()/find_package() relationship: instead of
calling find_package(... REQUIRED) when option is set, rely on optional
find package call and PackageName_FOUND variable.
3. Refactor handling options that result in simple preprocessor defines
(actually copy the snippet from libtorrent) so that everything is done
in a single function call.
4. Populate target properties in order to get rid of
include_directories() calls.
7 years ago
thalieht
586e1a0830
Move some connect() from propertieswidget to their corresponding widget
7 years ago
thalieht
6b4455e13d
Use qt5 connect() syntax
7 years ago
Chocobo1
defba23d61
Refactor code
...
Remove forward declarations of Qt types.
Fix header include order.
7 years ago
Chocobo1
e423314ac2
Work around false-positive warning from lupdate
...
In short, lupdate will get confused when seeing `template <class T>`,
see: QTBUG-55478
7 years ago
Chocobo1
c61f641613
Fix untranslated string
...
Closes #8809 .
7 years ago
thalieht
3e4099fe5b
Replace the zeroing of pointers with nullptr
7 years ago
Chocobo1
898239a42e
Fix renaming completed files
...
Check whether the file is already downloaded before appending QB_EXT to
filename.
Closes #8039 .
7 years ago
Chocobo1
a468c84b30
Fix warnings from unused variables
7 years ago
Chocobo1
08a2439f46
Check directly if container is empty or not
7 years ago
Chocobo1
6767487e40
Remove unused variable
7 years ago
Chocobo1
fdf3ebbb6c
Remove usage of deprecated functions
...
Also use proper type for storing date/time data
7 years ago
Chocobo1
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
7 years ago