Chocobo1
c6b772da11
Improve function interface
...
`SettingsStorage` methods require `QString` so make `SettingValue` follow it.
`Path::operator+` can use `QStringView` to accept wider audience.
3 years ago
Chocobo1
4ca6de2b54
Revise string literal usage
...
PR #16703 .
3 years ago
Chocobo1
bbd936fdfa
Don't use explicit memory management
...
And avoid dangling pointers.
3 years ago
Vladimir Golovnev
c029122a8e
Avoid integer overflow when calculating working set size
3 years ago
Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
3 years ago
Chocobo1
f888fb4ac7
Remove unused code
3 years ago
Chocobo1
f0dd7b7dae
Use QString literals
...
This patch covers src/app and src/base folders.
Follow up of ab64ee872b
.
3 years ago
Chocobo1
ab64ee872b
Use QString literals
...
The plan is to define `QT_NO_CAST_FROM_ASCII` eventually.
PR #16561 .
3 years ago
Vladimir Golovnev
299f981441
Allow to limit max memory working set size
...
PR #16485 .
3 years ago
Vladimir Golovnev
dd1bd8ad10
Implement class for handling filesystem paths
...
PR #15915 .
3 years ago
Prince Gupta
96965ae347
CMake: Call UIC on the .ui files manually
...
Fixes unnecessary recompilation when editing GUI files.
PR #16151 .
3 years ago
sledgehammer999
a7c5826e05
Migrate proxy settings
...
Q_ENUM_NS(ProxyType) was introduced in 4.4.0.
Before that wrapping QMetaEnum used the int value itself for loading/storing.
Closes #15994
3 years ago
Chocobo1
9f6130cbaa
Move new line character out of translation string
...
PR #15948 .
3 years ago
sledgehammer999
702c79a92f
Don't delete old config keys yet
...
It will allow users to go back to previous versions without
losing their settings.
3 years ago
sledgehammer999
a27822b557
Correct the order of the migrated settings' mappings
3 years ago
Vladimir Golovnev (Glassez)
fdbf8cb0ee
Correctly concatenate path components
3 years ago
Chocobo1
e7ebbffbfd
Set appropriate migration version number for new installations
3 years ago
Chocobo1
39f054eef6
Migrate "setting key mappings" to upgrade code
3 years ago
Chocobo1
aa3da942cb
Use correct URL scheme when https is enabled
...
Closes #15844 .
PR #15847 .
3 years ago
Chocobo1
b8a7ecfe69
Introduce versioning on main configuration file
3 years ago
Chocobo1
cbc2de6b85
Use proper method for checking value existence
3 years ago
Chocobo1
e3fe66d3ec
Store enum type in settings directly
...
Affected settings will be migrated to new keys so nothing should break.
PR #15800 .
3 years ago
Chocobo1
71270260bf
Reformat code
3 years ago
Chocobo1
32698fe0be
Migrate away from low-level `SettingsStorage` class
...
Also add `QFlags<T>` support to `SettingsStorage`.
PR #15693 .
3 years ago
Chocobo1
a5c531f0a4
Create lock file in config folder instead of temp folder
...
Some linux distros seem to alter TMPDIR environment variable and
therefore hamper qbt ability to find the lock files. So use config
folder instead of TMPDIR folder to create/locate the lock files.
Note that this change will also make qbt become one instance per-user
instead of one instance per-system.
Closes #15646 .
3 years ago
Chocobo1
ca28fc27dc
Disable deprecated Qt functions
...
Also Qt6 by default set these attributes to our preferred value.
3 years ago
Vladimir Golovnev (Glassez)
86b1ac5d7c
CMake: Allow to build with Qt6
3 years ago
Chocobo1
46394a7c0f
Combine stream statements
3 years ago
Chocobo1
03012cc175
Revise description wordings
3 years ago
Chocobo1
21f72baae2
Use QSaveFile wherever applicable
...
expected.hpp was fetched from:
b803e3c07b/include/nonstd/expected.hpp
3 years ago
Chocobo1
81139c0098
Improve error detection when saving files
3 years ago
Chocobo1
0a1865d0dd
Don't use old style cast
3 years ago
Chocobo1
49aab492e0
Use spinbox special value to represent "Use any available port"
...
WebAPI functionality is preserved (deprecated) for now and should be
removed in the future.
3 years ago
Vladimir Golovnev (Glassez)
399d3ad85a
Replace QStringRef with QStringView
3 years ago
Vladimir Golovnev (glassez)
27baa55443
Raise minimum Qt version to 5.15.2
3 years ago
Chocobo1
70d1cb86fd
Disable move constructor where it is sensible
3 years ago
Vladimir Golovnev
37f227ae74
Provide v1 and v2 infohashes in UI ( #15097 )
3 years ago
Vladimir Golovnev (Glassez)
50ddfea617
Remove lockfile only when last app instance is destroyed
3 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
brvphoenix
aebb9f89d1
Remove the lockfile on exit ( #14997 )
4 years ago
Vladimir Golovnev (Glassez)
2993fdb169
Improve "Watched folders" feature
...
Make "file system watcher" an application core component
and separate it from its presentation model.
4 years ago
Vladimir Golovnev (Glassez)
9565b695ef
Unify custom exceptions
4 years ago
Chocobo1
fdc186c92f
Revise tag related implementations
...
Fix #12690 .
4 years ago
Nick Korotysh
28ef33b0a0
Improve Info.plist generation with CMake
...
- drop configure_file() and file(GENERATE) calls
- fill missed MACOSX_DEPLOYMENT_TARGET variable
4 years ago
Nick Korotysh
29e6b229ac
Don't use executable name as CFBundleName value
4 years ago
Chocobo1
a64bb1a990
Simplify natural sort classes interface
...
Now the comparison function/class should be constructed before usage.
This change also make it easier to plug in into various containers which
will require a compare function type (such as std::set).
4 years ago
Vladimir Golovnev (Glassez)
135cad576c
Don't use removed QApplication attribute
4 years ago
Vladimir Golovnev (Glassez)
561fbf2cca
Don't use removed QTextStream::setCodec()
...
QTextStream encodes as UTF-8 by default.
4 years ago
Vladimir Golovnev (Glassez)
61d2ff359b
Use QRegularExpression instead of deprecated QRegExp
...
Now it follows closely the definition of wildcard for glob patterns.
The backslash (\) character is not an escape char in this context.
In order to match one of the special characters, place it in square
brackets (for example, [?]).
4 years ago
Chocobo1
d74df935f4
Replace parameters in one step
...
This would avoid the unwanted effect of replacing parameter coming from
another parameter.
4 years ago