Chocobo1
7764169aa3
Disallow narrowing conversions in signal connection
2022-05-19 12:55:07 +08:00
Chocobo1
5c3c6b63ba
Migrate to Boost.Stacktrace
...
PR #17014 .
2022-05-12 11:06:05 +08:00
Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
2022-03-20 13:33:40 +08:00
Chocobo1
dff39ffd20
Fix typo
...
https://doc.qt.io/qt-6/qmake-variable-reference.html#qt-major-version
2021-10-12 14:16:53 +08:00
Vladimir Golovnev (glassez)
b51197936b
QMake: Don't use WinExtras module with Qt6
2021-10-02 09:23:15 +03:00
Vladimir Golovnev (glassez)
925bf7715c
Disable functions deprecated in Qt 5.15.2 and earlier
2021-07-15 10:56:49 +03:00
Vladimir Golovnev (Glassez)
2bd2490539
Disable functions deprecated in Qt 5.14 and earlier
2021-06-16 17:56:40 +03:00
Vladimir Golovnev (Glassez)
383eaf44ac
Implement DBResumeDataStorage class
2021-05-01 12:30:53 +03:00
Vladimir Golovnev (Glassez)
35032d7eed
Don't use "Qt Mac Extras" module
...
"Qt Mac Extras" module is removed in Qt6.
2021-04-14 15:41:46 +03:00
Chocobo1
89559eae2b
Disable clang "range loop analysis" compiler warning
...
See: https://github.com/qbittorrent/qBittorrent/pull/13915#issuecomment-739449084
2021-01-09 12:59:07 +08:00
Vladimir Golovnev
06e1b07274
Merge pull request #13042 from FranciscoPombal/fix_request_parser
...
Fix truncation when parsing HTTP request query
2020-06-24 11:15:54 +03:00
FranciscoPombal
a1809a43f8
Add QT_NO_CAST_FROM_BYTEARRAY to compile definitions
...
Prevents bugs like #13029 , even if the ternary expression operands
have different types.
2020-06-23 11:45:38 +01:00
brvphoenix
05bd0e5570
Improve qmake configuration file for cross compilation
2020-06-22 23:21:29 -07:00
Chocobo1
c33284fa8c
Add compile flag to show Qt deprecation warnings
2019-02-28 12:01:36 +08:00
Vladimir Golovnev (Glassez)
7b3eed323b
QMake: Compile translations at build time
2018-12-22 16:02:17 +03:00
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
2018-11-13 23:06:41 +08:00
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
.
2018-08-02 17:44:06 +08:00
Mike Tzou
40f4223d02
Merge pull request #9083 from Chocobo1/qrc
...
Move files to where it belongs
2018-06-18 00:51:19 +08:00
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 .
2018-06-13 13:51:58 +08:00
Chocobo1
5b7c089dd2
Move qm_gen.pri
2018-06-11 21:02:45 +08:00
Chocobo1
26a4703398
Move .qrc files into its own directory
2018-06-11 20:01:33 +08:00
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.
2018-04-10 20:51:11 +03:00
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.
2018-02-17 17:02:52 +00:00
Chocobo1
ec337a8a84
Sort filename lists in .pri files
2017-12-31 11:53:45 +08:00
dzmat
9d0ab0ae5f
speedwidget class: excess QtConcurent usage removal
2017-10-12 20:59:13 +07:00
sledgehammer999
5d3b9d2f22
Drop OS/2 support.
2017-10-09 18:11:14 +03:00
Chocobo1
ee9caa4305
Cleanup src.pro
2017-08-29 13:39:02 +08:00
Chocobo1
39b56ac598
Move NOMINMAX define
2017-08-29 13:39:01 +08:00
Chocobo1
551ffb88ab
Define QT_USE_QSTRINGBUILDER.
...
The old defines are deprecated.
QT_USE_QSTRINGBUILDER also supports QByteArray which we use extensively
in WebUI.
2017-08-29 13:37:29 +08:00
vit9696
d25467d3e6
Various macOS UI improvements
2017-07-15 20:49:40 +03:00
Eugene Shalygin
c614c66535
Install required plugins into bundle
...
Install platform and svg plugins into bundle. Update dependencies in
Travis.
2017-07-14 17:42:02 +02:00
Eugene Shalygin
30bf6e958f
Use system file type specific icons in contents tab
...
The icon is determined via QFileIconProvider using filename extension only.
2017-07-03 16:49:14 +02:00
Vladimir Golovnev (Glassez)
d5d946dd66
Drop Qt4 related settings from QMake project
2017-04-26 08:53:47 +03:00
Eugene Shalygin
e64bb1de8c
Drop Qt 4 support
2017-03-05 22:24:59 +01:00
Vladimir Golovnev (Glassez)
c002f30848
Implement category filter widget
...
Show categories in tree mode when subcategories are enabled.
2017-01-20 20:55:01 +03:00
sledgehammer999
fed2609cb2
Merge pull request #4888 from SeigneurSerpent/source_line
...
Stack trace for windows now contains source filenames and line numbers
2016-05-23 16:49:17 -05:00
SeigneurSerpent
7398e7f0ad
Improve stack trace for windows by including source filenames and line numbers
2016-05-23 22:37:24 +03:00
sledgehammer999
35c51ad3b1
Update definition of QBT_USES_QT5 to be true for qt >= 5.2.0
2016-05-08 19:28:02 +03:00
Chocobo1
71143d1417
Use qmake built-in test function files
to locate translation files
2016-05-08 21:47:28 +08:00
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 .
2016-03-18 03:20:20 +02:00
Vladimir Golovnev (Glassez)
dbf430ac2e
Allow GeoIP in NoGUI builds
2016-01-17 10:11:55 +03:00
sledgehammer999
abcdd105e3
Don't require GUI libs for qt4 nox build. Closes #4404 .
2016-01-07 01:41:40 +02:00
Vladimir Golovnev (Glassez)
54979e6b53
Move basic search-related code into Core.
...
Also use qBittorrent torrent file download routines instead of
nova2dl.py script.
2015-12-20 19:20:59 +03:00
Vladimir Golovnev (Glassez)
8754fd5646
Move Search-related files into Gui.
2015-12-06 21:25:40 +03:00
Vladimir Golovnev (Glassez)
9db93e5d8f
Rename Core to Base ( Closes #3733 ).
2015-12-06 14:27:00 +03:00
sledgehammer999
17ac4b90be
Use simpler DEFINE for detecting Qt5 so moc will work too.
2015-12-05 22:20:49 +02:00
sledgehammer999
18f3517efa
New translation: Esperanto
...
Also re-run lupdate.
2015-11-22 22:08:10 +02:00
sledgehammer999
8d025949d9
Merge pull request #3838 from glassez/wswitch
...
Fix compiler warnings (Closes #3826 ).
2015-10-10 13:01:27 -05:00
Vladimir Golovnev (Glassez)
1a67282dd3
Fix Qt4 qmake warning (unknown QT: concurrent).
2015-09-22 19:34:07 +03:00
Vladimir Golovnev (Glassez)
12d9898b5d
Enable c++11 support.
2015-09-18 08:33:12 +03:00