Vladimir Golovnev (Glassez)
399d3ad85a
Replace QStringRef with QStringView
3 years ago
Chocobo1
4b0a2d050a
Display tooltip for all columns in torrent content widget
...
It is primary useful for showing long file names.
3 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
Vladimir Golovnev (Glassez)
102cc684dd
Replace Qt Windows Extras features with native ones
4 years ago
Chocobo1
a78929dadf
Simplify progress bar painting
4 years ago
Vladimir Golovnev (Glassez)
a078633a32
Don't use deprecated features
4 years ago
jagannatharjun
36d7fce909
Correctly set items flags in TorrentContentModel
...
Only set editable flag on item's where editing is handled in the delegate
closes #13515
4 years ago
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
4 years ago
jagannatharjun
fdbc3a692f
Align integer data to right in torrent content view
4 years ago
jagannatharjun
02f19bfbee
Use ProgressbarDelegate for drawing progressbar in PropListDelegate
...
Also directly provide display data from model rather then generating it in delegate
4 years ago
Vladimir Golovnev (Glassez)
6a0a78f3f7
Drop ".unwanted folder" feature
5 years ago
Chocobo1
f6eb341b32
Clean up code
5 years ago
Chocobo1
16a76eee9f
Add final specifier to GUI classes
...
Follow up d3d3f7dbb3
.
5 years ago
Chocobo1
0d5b0b9542
Replace deprecated macro
...
Q_OS_MAC is deprecated and the replacement is Q_OS_MACOS.
5 years ago
Chocobo1
7e0daf1663
Setup pixmap cache in a proper place
...
There is no need to reset the cache limit to previous value as
QPixmapCache is an application wide cache.
Also raise the cache size to 64MB.
5 years ago
Chocobo1
9c964cdd97
Fix using out-of-bounds of indexes
5 years ago
Chocobo1
b5b678c58f
Replace QString::split() by faster alternatives
5 years ago
Chocobo1
e90a2c00a5
Replace QList by QVector
5 years ago
Prince Gupta
8267a4fef9
Incorporate GuiIconProvider inside UIThemeManager
5 years ago
Vladimir Golovnev (Glassez)
8e65317d61
Rename "fromNativePath" to "toUniformPath"
...
Unlike "toNativePath" which name clearly reflects the function result
"fromNativePath" has no such clear meaning.
Since this function converts path into uniform format "toUniformPath"
is better name.
6 years ago
thalieht
9995967fbf
Remove some unused #include
6 years ago
thalieht
4370a7eb12
Forward declare in a few places
6 years ago
Chocobo1
f52dcc08eb
Use native folder icon in content tree
...
This icon is used in content tree where all icons should be OS native
and not the ones from qbt.
6 years ago
Chocobo1
375de4f8a6
Replace QMap with QHash when sensible
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
thalieht
8c944bd4e1
Avoid repeating the return type
6 years ago
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
6 years ago
thalieht
8a3f942385
Don't use 'else' after return/break
6 years ago
Chocobo1
6d29a3af60
Make use of std algorithms
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
d668a4fe6d
Fix coding style for various things
6 years ago
thalieht
94613c2fa2
Fix some warnings
6 years ago
thalieht
eb508d67ef
Fix coding style
7 years ago
thalieht
4022799881
Fix coding style
7 years ago
Chocobo1
4751b79f42
Initialize variables properly
...
The warnings are emitted when compiling on msys2, mingw
The warning was:
gui/torrentcontentmodel.cpp:135:33: warning: missing initializer for
member '_SHFILEINFOW::iIcon' [-Wmissing-field-initializers]
..\..\qBittorrent\src\app\stacktrace_win.h:141:30: warning: missing
initializer for member '_IMAGEHLP_LINE64::Key'
[-Wmissing-field-initializers]
7 years ago
vit9696
d7fa5b6b6b
Put macOS specific functions to MacUtils namespace
7 years ago
Eugene Shalygin
3331526865
Use pixmap cache for file icons on Mac OS and Windows. Closes #7264 .
7 years ago
sledgehammer999
c87c1d2359
Use simpler ifdef style.
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
Brian Kendall
62b956946f
Fixed mac specific compiler errors and cleaned up Objective C code
...
Created new file src/gui/macutilities.mm, moved code from mainwindow.cpp and torrentcontentmodel.cpp that used the Objective C runtime into it and converted it to actual Objective C. Rewrote pixmapForExtension() so that it doesn't call into private Qt functions.
7 years ago
vit9696
6c3ab99e3c
Fix file type icons not displaying on macOS
7 years ago
Eugene Shalygin
57493c5556
Add QFileIconProvider implementation using mime database
...
If built-in QFileIconProvider does not seem to work, use custom
implementation which queries mime database.
8 years ago
Eugene Shalygin
30bf6e958f
Use system file type specific icons in contents tab
...
The icon is determined via QFileIconProvider using filename extension only.
8 years ago
Eugene Shalygin
74cecb1b6c
Replace C-style casts with C++ ones
8 years ago
Eugene Shalygin
5c10a24923
Add availability column to torrent properties window
8 years ago
Eugene Shalygin
d5af8722a6
Add availability column to torrent content model
8 years ago
Chocobo1
4ad541d066
Fix coverity issues
...
torrentcontentmodel: Use a variable to store filesCount
optionsdlg: add fallthrough comment to suppress warning
speedPlotview: initialize member
misc: fix wrong type used, add spaces
8 years ago
sledgehammer999
88b2b26007
Don't use hardcoded numbers to refer to columns.
8 years ago