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
6 years ago
thalieht
6d4434ad66
Convert the names used in ui and c++ files from snake_case to camelCase
6 years ago
Vladimir Golovnev (Glassez)
112a9bcfa2
Use new DownloadManager interface
6 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
Eugene Shalygin
5c10a24923
Add availability column to torrent properties window
8 years ago
Chocobo1
b9e8cab1e5
Revise class memebers construction & destruction
...
Use nullptr
Delete m_contentDelegate on close
Remove redundant deletion of m_contentModel since parent is setup
correctly
8 years ago
Chocobo1
4d4097d819
Move editHotkey out of class definition
...
Also since parent is setup correctly, remove the redundant delete
8 years ago
Eugene Shalygin
7320ac1bc0
Use file path edit widgets in options and add torrent dialog
8 years ago
Frédéric Brière
ec08cb5445
Leave categories order intact in "Add new torrent" dialog.
...
The categories are already properly sorted in AddNewTorrentDialog; this
second case-sensitive sort undid all that.
This partially addresses #6708 .
8 years ago
Chocobo1
de54fa2c30
Fix addnewtorrentdialog position
...
Fix messageBox position
8 years ago
Brian Kendall
eba41978b0
Added command line arguments for specifying options when adding torrents
...
Arguments include adding torrents as paused/started, skiping hash check, setting category, downloading in sequential order, downloading first and last pieces first, and skipping the 'add new torrent' dialog. Added TriStateBoolOption class for specifying options that don't have a default value when unused (e.g. add-paused). Also improved command line usage text to include more information, have better organization, and not exceed 80 columns in width. Also also added firstLastPiecePriority field to BitTorrent::AddTorrentData, and modified TorrentHandle so that if first/last piece priority should be on, it will be toggled on after the torrent's metadata has loaded.
8 years ago
Brian Kendall
59e6a4298d
Fixed macOS-specific bug in AddNewTorrentDialog
...
Because AddNewTorrentDialog is a sheet in macOS, repositioning it causes bad things to happen, particularly if the main dialog is on a secondary monitor.
8 years ago
Vladimir Golovnev (Glassez)
c799923d7d
Allow strip root folder using default settings
8 years ago
Vladimir Golovnev (qlassez)
f259bde275
Fix "Create subfolder" in AddNewTorrentDialog
8 years ago
Vladimir Golovnev (Glassez)
989a70fe60
Redesign RSS subsystem
8 years ago
Vladimir Golovnev (Glassez)
22178f9997
Fix strip torrent root folder
8 years ago
sledgehammer999
4b2d8a7941
Setting for creating subfolder on multifile torrents. Closes #588 .
8 years ago
Chocobo1
812bd4c83a
Uncrustify
8 years ago
Chocobo1
86e82c71e5
Setup parent pointer
...
Rely on Qt to do the delete, since the parent ownership is setup
correctly.
8 years ago
thalieht
2bb2d3fc89
change all existing shortcuts to use Qt::Keys
8 years ago
sledgehammer999
4128f01aa8
Don't revert save path value in the Dialog when metadata are received. Closes #5482 .
8 years ago
sledgehammer999
829425831f
Properly fix the handling of default save path store/load. Bug introduced in dd34663224
8 years ago