Chocobo1
75c93d72be
Revise string literal usage
...
This commit covers src/gui folder.
PR #16757 .
3 years ago
Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
3 years ago
Chocobo1
802ec5a14e
Use QString literals
...
This patch covers src/gui and some leftovers from previous commit.
3 years ago
Vladimir Golovnev
dd1bd8ad10
Implement class for handling filesystem paths
...
PR #15915 .
3 years ago
thalieht
d3bdeaab3f
Replace "seeding_duration" with "finished_duration" everywhere
...
Closes #10223 .
PR #13601 .
3 years ago
AbeniMatteo
01d851440b
Add "Forced metadata downloading" state ( #15185 )
3 years ago
Chocobo1
fdc186c92f
Revise tag related implementations
...
Fix #12690 .
4 years ago
Chocobo1
6864e13e6f
Show "last activity" value under all circumstances
4 years ago
Chocobo1
be2cdca1e9
Draw progress bar in disabled style
4 years ago
Chocobo1
e46c88580a
Revise getter function for torrrent queue position
...
This addresses https://github.com/qbittorrent/qBittorrent/pull/14335#issuecomment-774667836
The WebAPI is not affected as a workaround is added.
4 years ago
Chocobo1
0d550c9bce
Apply "Hide infinity values" to ETA column
4 years ago
Chocobo1
2aeb8b9390
Apply "Hide infinity values" to "Down/Up Limit" columns
4 years ago
Chocobo1
afa2fc0ba9
Apply "Hide zero values" to "Time Active" column
4 years ago
Chocobo1
6a45919b25
Clean up coding style
4 years ago
Chocobo1
e4f7d607e1
Show proper string when torrent availability is not available
4 years ago
Chocobo1
cede5ac9d2
Migrate away from deprecated Qt functions
...
`QString QDateTime::toString(Qt::DateFormat format = Qt::TextDate)` will
be removed in Qt6.
4 years ago
Vladimir Golovnev (Glassez)
0b4fef19f6
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.
4 years ago
Vladimir Golovnev (Glassez)
a93b675cb8
Search for existing files in separate thread
4 years ago
Chocobo1
75cead9266
Avoid potential rounding to integer issues
4 years ago
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
4 years ago
Chocobo1
0be2567d97
Don't use deprecated torrent state "allocating"
...
Closes #13737 .
4 years ago
Vladimir Golovnev (Glassez)
85bd0feee0
Handle torrent "paused" state at application level
4 years ago
jagannatharjun
d0986297ca
Rename TR_PROGRESS header in TransferList
...
Closes #13665
4 years ago
thalieht
9d25405144
Check cheaper conditional first
4 years ago
Vladimir Golovnev (Glassez)
dc3d23c045
Improve torrent loading code
4 years ago
jagannatharjun
43319f2213
Always use UIThemeManager for obtaining icons in GUI
5 years ago
jagannatharjun
ab91d546e5
Move all icon resources to icon folder root
5 years ago
jagannatharjun
77658be9a7
Read Transfer list's custom colors from config.json
5 years ago
Nick Korotysh
1fd4ff5c2c
Show tooltip for some properties in transfer list
...
Tooltip is added for next columns:
- name
- status
- category
- tags
- tracker
- save path
closes #12696
5 years ago
Chocobo1
31648a4433
Fix date format for "Last seen complete"
...
Closes #12462 .
5 years ago
Chocobo1
b7e7d8019c
Use helper function to construct QString
...
This is shorter and avoids the need of 2 constructors.
5 years ago
Vladimir Golovnev (Glassez)
666e733a4a
Track settings changed event in TransferListModel
5 years ago
Vladimir Golovnev (Glassez)
099943ea3c
Fix hide zero values
5 years ago
Vladimir Golovnev (Glassez)
766cfb67df
Fix transfer list architecture
...
Model returns string for DisplayRole.
Text alignment is set by Model (using TextAlignmentRole).
Delegate performs custom painting only where necessary
(i.e. for Progress bar).
5 years ago
Prince Gupta
d3aa45526a
Allow transfer list text color changes through QSS
5 years ago
Chocobo1
b6050463f4
Show torrent error message in transfer list
5 years ago
Chocobo1
6fd678195c
Replace deprecated Qt functions
...
QSet::toList() is replaced by QSet::values()
5 years ago
Chocobo1
b921d96f4b
Use Q_ASSERT() to check invariants
5 years ago
Chocobo1
72d1d5d2dd
Cut down number of signal emits
5 years ago
Chocobo1
863c9f9876
Speed up lookup operation in TransferListModel
...
Previously lookup is O(n), add operation is O(n), remove operation is
O(n).
Now lookup is O(1), add operation is O(1), remove operation is O(n).
n is the number of torrents already recorded.
5 years ago
Chocobo1
1f3bf75fff
Better on-demand reloading of torrent data
5 years ago
Chocobo1
c61116882b
Clean up TransferListModel class
5 years ago
Chocobo1
60faba60ea
Add availability column
...
Closes #1632 .
5 years ago
thalieht
7b31868e3c
Rename priority to queue in the context of torrents
5 years ago
thalieht
9995967fbf
Remove some unused #include
6 years ago
Chocobo1
adbd34c795
Move helper functions to Utils::Gui namespace
6 years ago
thalieht
ce437817de
Make various minor changes
6 years ago
thalieht
8c944bd4e1
Avoid repeating the return type
6 years ago
thalieht
92a290895b
Convert vars into refs to avoid copy construction from const refs
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