Chocobo1
f1243871b0
Remove redundant HTML escaping
...
The text widget is already set to plaintext and doing HTML escaping will
not give us more security but only makes it harder to read.
5 years ago
Chocobo1
0d5b0b9542
Replace deprecated macro
...
Q_OS_MAC is deprecated and the replacement is Q_OS_MACOS.
5 years ago
Chocobo1
e90a2c00a5
Replace QList by QVector
5 years ago
Chocobo1
7ab3479a34
Replace static_cast by qOverload
5 years ago
Chocobo1
e74b984a0a
Rely on Qt ownership to delete class members
5 years ago
Prince Gupta
8267a4fef9
Incorporate GuiIconProvider inside UIThemeManager
5 years ago
Chocobo1
cc663746eb
Forward declare some classes
5 years ago
Chocobo1
599bfc0735
Use Qt object ownership to handle QShortcut deletions
5 years ago
Chocobo1
412e326cf2
Avoid allocating a new menu/action manually
6 years ago
Chocobo1
4880dc812c
Use appropriate type
6 years ago
Chocobo1
516c968373
Support year unit in userFriendlyDuration()
6 years ago
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
62ccfd37b2
Move renameSelectedFile(BitTorrent::TorrentHandle *)
6 years ago
thalieht
4370a7eb12
Forward declare in a few places
6 years ago
Chocobo1
e288de7ec1
Forward declare as much as possible
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
Chocobo1
adbd34c795
Move helper functions to Utils::Gui namespace
6 years ago
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
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
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