Vladimir Golovnev (Glassez)
c631dbdaa1
Improve Properties widget
...
Drop redundant dependencies.
Refresh after BitTorrent session refreshing (instead of using timer).
6 years ago
Thomas Piccirello
f27dc977e9
Replace prio namespace with FilePriority enum class
6 years ago
thalieht
6b1d26d555
Convert all foreach() to range-based for()
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
2d0f0cb372
Allow to disable speed graphs
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
thalieht
d34ddb2e3c
Change file names and classes names to match them
7 years ago
thalieht
4022799881
Fix coding style
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
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
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
7 years ago
Chocobo1
c2c0dd2717
Fix column size too narrow on resize
...
Instead of giving a value, just resize to the content size
7 years ago
Chocobo1
27cf98a962
Resize dialog size on high DPI monitors
7 years ago
Chocobo1
aaaa67050c
Fix gui issues on high DPI monitor
...
Fix LineEdit widget size issues
Up-scale the icons on statusbar
Up-scale the icons in options dialog. Closes #7729 .
Fix small icons in cookie manager
Fix progress bar height
Fix small icons in confirm delete dialog
Fix small icons in options dialog
Fix small images in about dialog
7 years ago
vit9696
ed154d35ba
Fix Finder reveal in preview and torrent contents
7 years ago
Chocobo1
27090f0cfb
Remove superfluous QString::fromUtf8()
7 years ago
thalieht
ae1634623e
Coding style for many files
7 years ago
sledgehammer999
7b5730723d
Fix file list expansion on singlefile torrent with folder.
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
Chocobo1
08a6c75227
Refactors
...
Rename variables
Refactor to return early instead of introducing a scope
Revise dialog title & messages
Refactor code logic
8 years ago
Chocobo1
b18bf48014
Improve error message reported to user
...
Should not contain "file" or "folder", because it's not clear which type is selected.
8 years ago
Chocobo1
51e3e5438b
Code formatting
...
Refactor
8 years ago
Chocobo1
0939875ca8
Fix renaming files is not case sensitive on Windows platform. Closes #5128 .
8 years ago
Eugene Shalygin
5c10a24923
Add availability column to torrent properties window
8 years ago
thalieht
e00be240b0
PropertiesWidget: Change 0 to nullptr
8 years ago
thalieht
b360c5453b
PropertiesWidget: Some coding style
8 years ago
Vladimir Golovnev (Glassez)
335443e6a0
Drop QThread::msleep wrapper
8 years ago
Eugene Shalygin
4e1b7c3b87
Remove generated include from headers
...
Not only fixes compilation with CMake 3.8 (without messing with include
paths) but makes sources cleaner.
8 years ago
Vladimir Golovnev (Glassez)
d413bc65ef
Improve strip torrent root folder
...
Fix issue when you rename the "root item" in the "Add New Torrent" dialog
and uncheck "Create subfolder", it will create the subfolder with the
renamed name.
Fix PropertiesWidget first folder is expanded after app restart.
Strip root folder if torrent was added via magnet link.
Fix crash when you get name of torrent without metadata.
8 years ago
sledgehammer999
4b2d8a7941
Setting for creating subfolder on multifile torrents. Closes #588 .
8 years ago
Chocobo1
87384ca2a2
Replace Utils::String::toHtmlEscaped() by QString::.toHtmlEscaped()
8 years ago
Eugene Shalygin
e64bb1de8c
Drop Qt 4 support
8 years ago
Chocobo1
6ca3e4f094
Add Utils::String::toHtmlEscaped
8 years ago
thalieht
2bb2d3fc89
change all existing shortcuts to use Qt::Keys
8 years ago
Anton Lashkov
36901295b2
Simplify `if` statement
8 years ago
Chocobo1
85add9a5c8
Use "Standard Shortcuts" defined by Qt whenever possible.
8 years ago
Eugene Shalygin
b3378d4599
Show files in tooltips for pieces progress bars
...
In addition to the current tooltip, which shows color legend, if user
holds the Shift key during hovering we show another tooltip which
contains a table of contents for the piece under the moue cursor. The
table lists file sizes and names. If the cursor points to a part of a
file which spans several pieces, those pieces are highlighted.
9 years ago
Eugene Shalygin
f9c2bd3502
Follow project coding style. Issue #2192 .
9 years ago
Vladimir Golovnev (Glassez)
1760beed17
Fix MainWindow coding style (Issue #2192 )
9 years ago
sledgehammer999
2bb76bf781
Don't display warning when folder named stayed the same.
...
Copy some code from AddNewTorrent dialog and beautify a bit.
Closes #4970 .
9 years ago
Eugene Shalygin
7080d3da98
Fix typos in speed label text
...
Qt's tr() ate 'true' parameter, which was supposed to be for
friendlyUnit()
9 years ago