Chocobo1
7276a79cef
Call Windows API directly
...
We already bumped the OS requirement to Windows 7 and those functions
can be called directly without the need to load them first.
5 years ago
Chocobo1
17e4902519
Don't define variable when not building GUI
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
47b9d8dbc6
Clean up Application class constructor
5 years ago
Chocobo1
e3483c62ca
Remove explicit conversion to QVariant
5 years ago
Chocobo1
a610c8567e
Prevent command injection via "Run external program" function
...
Closes #10925 .
5 years ago
Prince Gupta
8267a4fef9
Incorporate GuiIconProvider inside UIThemeManager
5 years ago
Prince Gupta
a24925c858
Allow styling with QSS stylesheets
5 years ago
Vladimir Golovnev (Glassez)
c7f3693ad1
Implement "Application instances manager"
6 years ago
sledgehammer999
f403fdb2e8
Remove wrong ifdef
6 years ago
Chocobo1
b7d739ab3f
Fix build error
...
Apparently the function is not available on Windows platforms.
6 years ago
Chocobo1
adbd34c795
Move helper functions to Utils::Gui namespace
6 years ago
sledgehammer999
5c63ad3b95
Raise minimum Qt version to 5.9.0
6 years ago
Peter Eszlari
9f250713d2
Linux/Wayland: make window title bar icon work
6 years ago
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
6 years ago
thalieht
ca3ce87e06
Add const to many vars and arguments
...
Also remove const in declarations' arguments that are passed by value
6 years ago
Chocobo1
6d7e5f82ae
Include the correct header
...
And remove the unused ones
6 years ago
Chocobo1
cf4db1b418
Remove useless exception handling
6 years ago
Vladimir Golovnev (Glassez)
89deccd9b5
Show error message when Session failed to start
6 years ago
Chocobo1
593052dd93
Revise startup message in nox version
...
Only print the WebUI username when password is still the default.
6 years ago
Chocobo1
05d6a29416
Apply PBKDF2 when storing passwords
6 years ago
thalieht
6b1d26d555
Convert all foreach() to range-based for()
6 years ago
Thomas Piccirello
4885fe6b4c
Only instantiate SearchPluginManager as needed
6 years ago
Chocobo1
0217d5b4c0
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
6 years ago
Thomas Piccirello
b2ffd6e03b
Instantiate SearchPluginManager with other application components
6 years ago
thalieht
456270bbb1
Delete several unused #include
7 years ago
thalieht
d34ddb2e3c
Change file names and classes names to match them
7 years ago
thalieht
356d6a6589
Fix coding style
7 years ago
Chocobo1
ceaf755ac6
Make use of QStringLiteral
...
Only changed instances that are initialized at program start.
7 years ago
Chocobo1
263524e856
Improve "Run External Program" behavior
...
This follows utorrent behavior: they don't append backslash character at
the end of path variables.
Closes #8836 .
7 years ago
thalieht
4cfa163bbd
Use qt5 syntax for a few remaining SLOT()
7 years ago
thalieht
6b4455e13d
Use qt5 connect() syntax
7 years ago
Chocobo1
b0e3d77975
Add helper for loading Windows system functions
7 years ago
Chocobo1
c07cd440cd
Split args manually in runExternalProgram()
...
Need to split arguments manually because QProcess::startDetached(QString)
will strip off empty parameters.
E.g. `python.exe "1" "" "3"` will become `python.exe "1" "3"`.
Closes #8454 .
7 years ago
Chocobo1
37ea01bd44
Use lightweight printf instead of iostream
...
Using iostream usually adds a lot of other operators (<<, endl), whereas
*printf takes only 1 function call.
Also use qUtf8Printable whenever possible.
7 years ago
Chocobo1
88881de8c6
Add Tags parameter to "Run External Program"
...
Closes #8586 .
Also sort headers.
7 years ago
Chocobo1
0457fd260e
Avoid temporary QString allocations
...
This fixes clazy warning: Use multi-arg instead [-Wclazy-qstring-arg]
7 years ago
Luís Pereira
0e421ae415
Don't create temporary substrings
...
Avoid temporary string allocations. They are only used to convert to
something else.
QString::xxxRef() returns a QStringRef. QStringRef avoids the memory
allocation and reference counting overhead of a standard QString by simply
referencing a part of the original string.
7 years ago
sledgehammer999
024df8c53f
Set default file log size to 65 KiB and delete backup logs older than 1 month.
7 years ago
Luís Pereira
5154d431f6
Don't set application name twice
...
It's an artifact introduced by commit b3c73b7868
.
7 years ago
Chocobo1
76c95d8c6c
Revert "Run external program" function
...
This revert df95efe33e
partially
7 years ago
Heiko Becker
af898e9117
Fix build with --disable-webui
...
"app/application.cpp:108:7: error: class 'Application' does not have
any field named 'm_webui'"
7 years ago
sledgehammer999
81f5fdda15
Correctly check if torrent passed during application start already exists.
7 years ago
Chocobo1
27090f0cfb
Remove superfluous QString::fromUtf8()
7 years ago
sledgehammer999
236abcf3f1
Fix crash on opening torrent/magnet (uninitialized pointer). Closes #7739 #7723 .
7 years ago
Vladimir Golovnev (Glassez)
71bb6538db
Fix WebUI error handling
7 years ago
Chocobo1
fc0628d35b
Allow SMTP sender to be set. Closes #7575 .
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
42c17ea5ce
Fix argument name differ in definition & declaration
8 years ago