Chocobo1
3748b995ff
Avoid creating unnecessary event loops
...
The `exec()` method will create another event loop and transfer
control over there which might introduce unexpected bugs.
6 years ago
Chocobo1
9c747d3c6d
Move renameSelectedFile(BitTorrent::TorrentInfo &)
6 years ago
Chocobo1
dc9d0ed76f
Fix unable to control add torrent dialogs when opened simultaneously
6 years ago
Chocobo1
03fdc0e1c4
Remove redundant disconnect()
...
The dialog is going out-of-scope in these instance and the signal-slot connection will disconnect
automatically.
6 years ago
thalieht
9995967fbf
Remove some unused #include
6 years ago
Chocobo1
49df1cd3c7
Use less operations when building strings
6 years ago
Evgeny Lensky
62c72091ce
Change "Add new torrent" dialog to horizontal layout
6 years ago
thalieht
25102b9c5d
Increase the download size limit to 100 MiB
6 years ago
Vladimir Golovnev (Glassez)
ead078a38e
Add preliminary support of libtorrent v1.2
...
libtorrent v1.2 should be built with deprecated features enabled.
6 years ago
Vladimir Golovnev (Glassez)
746916a963
Use DownloadHandler behind the scenes
6 years ago
Vladimir Golovnev (Glassez)
6cb15706f5
Reduce number of DownloadManager signals
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
70f1537d9f
Add const to almost all remaining vars and arguments that qualify
6 years ago
Chocobo1
5c0d9b7eab
Load torrent from data directly
6 years ago
Chocobo1
2b903fc3d1
Move Utils::Misc::isUrl() function
...
All usage of this function gets to call Net::DownloadManager eventually.
6 years ago
Chocobo1
6759446639
Cleanup code
...
Also remove redundant code, it is already handled correctly in subsequent function calls.
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
94613c2fa2
Fix some warnings
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
Chocobo1
cb687ba3bd
Add options in AddNewTorrentDialog
...
The new checkboxes are: "Download in sequential order", "Download first
and last pieces first".
6 years ago
Chocobo1
1b406c97da
Revise dialog messages
...
Using critical dialog is a bit too strong as qbt didn't actually run
into something that fails, so downgrade to warning dialog.
6 years ago
thalieht
456270bbb1
Delete several unused #include
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
Vladimir Golovnev (Glassez)
3be945a401
Add last used save path to the front of history
7 years ago
Chocobo1
eb72b9ca7d
Simplify the saving & loading of a setting
...
Remove excessive usage of constexpr.
7 years ago
Chocobo1
ceaf755ac6
Make use of QStringLiteral
...
Only changed instances that are initialized at program start.
7 years ago
Vladimir Golovnev (Glassez)
71e5a40857
Add option to remember last used save path
...
Replace in "Add new torrent" dialog confusing "Set as default save path" option
with "Remember last used save path" option that affects only selected value in
"Save path" combo box.
Closes #7323 .
7 years ago
thalieht
20ca90800d
Fix coding style
7 years ago
thalieht
6b4455e13d
Use qt5 connect() syntax
7 years ago
thalieht
3e4099fe5b
Replace the zeroing of pointers with nullptr
7 years ago
Chocobo1
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
7 years ago
Vladimir Golovnev (Glassez)
69df8174b9
Allow to load TorrentInfo from data buffer
7 years ago
Chocobo1
27cf98a962
Resize dialog size on high DPI monitors
7 years ago
Mike Tzou
eac8838dc2
[GUI] Implement stable sort ( #7703 )
...
* NaturalCompare now returns compare result instead of "less than" result
* Change to stable sort in GUI components
* Add Utils::String::naturalLessThan() helper function
* Use Qt::CaseSensitivity type
7 years ago
Eugene Shalygin
1fed324f91
Add option to tune download history list length. Closes #4043 .
7 years ago
sledgehammer999
50471ec8c8
String fixes and optimizations mentioned by translators on Transifex.
7 years ago
Vladimir Golovnev (Glassez)
3ec992474d
Implement TorrentCategoryDialog class
7 years ago
Chocobo1
058062d586
Show torrent name in "add new torrent" dialog on merging trackers
7 years ago
Vladimir Golovnev (qlassez)
cff6a64e9f
Use qUtf8Printable() for logging strings
...
qDebug(), qInfo(), qWarning(), qCritical(), qFatal() expect %s arguments
to be UTF-8 encoded, while qPrintable() converts to local 8-bit encoding.
Therefore qUtf8Printable() should be used for logging strings instead of
qPrintable().
7 years ago
sledgehammer999
6270433237
Fix explicit Torrent Management Mode in Add New Torrent dialog. Closes #5602 .
7 years ago
vit9696
d25467d3e6
Various macOS UI improvements
7 years ago
Chocobo1
08a6c75227
Refactors
...
Rename variables
Refactor to return early instead of introducing a scope
Revise dialog title & messages
Refactor code logic
8 years ago