Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
3 years ago
Chocobo1
dff39ffd20
Fix typo
...
https://doc.qt.io/qt-6/qmake-variable-reference.html#qt-major-version
3 years ago
Vladimir Golovnev (glassez)
b51197936b
QMake: Don't use WinExtras module with Qt6
3 years ago
Vladimir Golovnev (glassez)
925bf7715c
Disable functions deprecated in Qt 5.15.2 and earlier
3 years ago
Vladimir Golovnev (Glassez)
2bd2490539
Disable functions deprecated in Qt 5.14 and earlier
3 years ago
Vladimir Golovnev (Glassez)
383eaf44ac
Implement DBResumeDataStorage class
4 years ago
Vladimir Golovnev (Glassez)
35032d7eed
Don't use "Qt Mac Extras" module
...
"Qt Mac Extras" module is removed in Qt6.
4 years ago
Chocobo1
89559eae2b
Disable clang "range loop analysis" compiler warning
...
See: https://github.com/qbittorrent/qBittorrent/pull/13915#issuecomment-739449084
4 years ago
FranciscoPombal
a1809a43f8
Add QT_NO_CAST_FROM_BYTEARRAY to compile definitions
...
Prevents bugs like #13029 , even if the ternary expression operands
have different types.
4 years ago
brvphoenix
05bd0e5570
Improve qmake configuration file for cross compilation
4 years ago
Chocobo1
c33284fa8c
Add compile flag to show Qt deprecation warnings
6 years ago
Vladimir Golovnev (Glassez)
7b3eed323b
QMake: Compile translations at build time
6 years ago
Chocobo1
819a84eb7a
Implement proper C++11 mode detection
...
Newer compilers have C++14 mode as default and package maintainers tend
to not specifying a C++ version when building a package, this causes
compatibility issues when (for example) qbt is compiled in C++11 and
dependency lib is in C++14. See issue #9485 .
What this commit does:
1. Checks if compiler supports at least C++11
2. Checks if compiler is set in at least C++11 mode
6 years ago
Chocobo1
1c7abfdf46
Avoid regenerating .qm files unnecessarily
...
Translations included at top level is to avoid regenerating the .qm files every
time when src.pro is processed.
Partially revert 5b7c089dd2
.
6 years ago
Chocobo1
8be949fec3
Revise usage of BOOST_NO_CXX11_RVALUE_REFERENCES
...
Now the flag will be present when building with boost version <= 1.59.
Closes #8990 .
7 years ago
Chocobo1
5b7c089dd2
Move qm_gen.pri
7 years ago
Chocobo1
26a4703398
Move .qrc files into its own directory
7 years ago
Nick Korotysh
7712d0ada0
Allow to disable Stacktrace support
...
Enable backtrace stuff only if GNU C library used, because current
backtrace implementation based on <execinfo.h> , which is not a
part of standard C library, it is a GNU extension.
This will be usefull when building with custom POSIX-compilant C
library (like musl) and no <execinfo.h> available.
Note: configure script will detect presence of <execinfo.h> and
enable/disable feature depending on it.
Feature is enabled by default.
7 years ago
Luís Pereira
ea1b0b26b1
Don't implicitly cast iterator to const_iterator
...
It prevents detachments:
To illustrate:
QMap<QString, QString> map;
/* code compiles and works fine but find() returns the non-const
QMap::iterator that detaches!
*/
QMap<QString, QString>::const_iterator it = map.find("girish");
but also some subtle bugs:
QHash<int, int> wrong;
if (wrong.find(1) == wrong.cend()) {
qDebug() << "Not found";
} else {
/* find() detached the container before cend() was called, so it
prints "Found"
*/
qDebug() << "Found";
}
QHash<int, int> right;
if (right.constFind(1) == right.cend()) {
qDebug() << "Not found"; // This is correct now !
} else {
qDebug() << "Found";
}
Enforced by QT_STRICT_ITERATORS definition.
7 years ago
Chocobo1
ec337a8a84
Sort filename lists in .pri files
7 years ago
dzmat
9d0ab0ae5f
speedwidget class: excess QtConcurent usage removal
7 years ago
sledgehammer999
5d3b9d2f22
Drop OS/2 support.
7 years ago
Chocobo1
ee9caa4305
Cleanup src.pro
7 years ago
Chocobo1
39b56ac598
Move NOMINMAX define
7 years ago
Chocobo1
551ffb88ab
Define QT_USE_QSTRINGBUILDER.
...
The old defines are deprecated.
QT_USE_QSTRINGBUILDER also supports QByteArray which we use extensively
in WebUI.
7 years ago
vit9696
d25467d3e6
Various macOS UI improvements
7 years ago
Eugene Shalygin
c614c66535
Install required plugins into bundle
...
Install platform and svg plugins into bundle. Update dependencies in
Travis.
7 years ago
Eugene Shalygin
30bf6e958f
Use system file type specific icons in contents tab
...
The icon is determined via QFileIconProvider using filename extension only.
7 years ago
Vladimir Golovnev (Glassez)
d5d946dd66
Drop Qt4 related settings from QMake project
8 years ago
Eugene Shalygin
e64bb1de8c
Drop Qt 4 support
8 years ago
Vladimir Golovnev (Glassez)
c002f30848
Implement category filter widget
...
Show categories in tree mode when subcategories are enabled.
8 years ago
SeigneurSerpent
7398e7f0ad
Improve stack trace for windows by including source filenames and line numbers
9 years ago
sledgehammer999
35c51ad3b1
Update definition of QBT_USES_QT5 to be true for qt >= 5.2.0
9 years ago
Chocobo1
71143d1417
Use qmake built-in test function `files` to locate translation files
9 years ago
sledgehammer999
0da4bfa0cf
Fix selection of Portuguese translation files.
...
Qt returns "Brazil" as country of QLocale("pt") instead of "Portugal". This conflicts with QLocale("pt_BR").
Rename the pt.ts to pt_PT and put a language mapping in tx's config for that locale.
Closes #4776 .
9 years ago
Vladimir Golovnev (Glassez)
dbf430ac2e
Allow GeoIP in NoGUI builds
9 years ago
sledgehammer999
abcdd105e3
Don't require GUI libs for qt4 nox build. Closes #4404 .
9 years ago
Vladimir Golovnev (Glassez)
54979e6b53
Move basic search-related code into Core.
...
Also use qBittorrent torrent file download routines instead of
nova2dl.py script.
9 years ago
Vladimir Golovnev (Glassez)
8754fd5646
Move Search-related files into Gui.
9 years ago
Vladimir Golovnev (Glassez)
9db93e5d8f
Rename Core to Base ( Closes #3733 ).
9 years ago
sledgehammer999
17ac4b90be
Use simpler DEFINE for detecting Qt5 so moc will work too.
9 years ago
sledgehammer999
18f3517efa
New translation: Esperanto
...
Also re-run lupdate.
9 years ago
Vladimir Golovnev (Glassez)
1a67282dd3
Fix Qt4 qmake warning (unknown QT: concurrent).
9 years ago
Vladimir Golovnev (Glassez)
12d9898b5d
Enable c++11 support.
9 years ago
sledgehammer999
f893131b8d
Less verbose compilation output. Closes #3565 .
9 years ago
sledgehammer999
2ec1d9e39e
New translation: Slovenian
...
Also re-run lupdate.
9 years ago
sledgehammer999
8f1f57afe4
Remove obsolete Boost configurations.
9 years ago
sledgehammer999
5281593bb6
Fix qt5 compilation with QtConcurrent.
9 years ago
sledgehammer999
61705fdd42
Partially revert fb7ba92f6
and split the Chinese locales into 3.
...
Chinese Simplified, Chinese Traditional(Taiwan), Chinese Traditional(Hong Kong).
Closes #3262 .
10 years ago
sledgehammer999
fb7ba92f69
Rename Chinese translation files. Closes #2936 .
10 years ago