Commit Graph

7232 Commits

Author SHA1 Message Date
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Mat Sutcliffe
5443701e09 Fixed return by const value. 2019-02-22 20:23:45 +00:00
Mat Sutcliffe
1b4ed84e1b CListModelBase and CViewBase: reduce the number of template parameters
by relying on what can easily be deduced from the first parameter(s).
2019-02-22 20:23:44 +00:00
Mat Sutcliffe
5295473c4f Added fixme comments marking undefined behaviour in CColumn. 2019-02-22 20:23:44 +00:00
Mat Sutcliffe
99ad324503 Added fixme comments to change dynamic_cast to qobject_cast. 2019-02-22 20:23:43 +00:00
Mat Sutcliffe
cfcee4bed0 Fixed clazy warning: const signal. 2019-02-22 20:23:43 +00:00
Mat Sutcliffe
ca813a1814 Fixed clazy warning: missing emit keyword. 2019-02-22 20:23:42 +00:00
Mat Sutcliffe
db928c8b0e Fixed clazy warnings: QString::arg. 2019-02-22 20:23:42 +00:00
Mat Sutcliffe
b4724996c6 Fixed clazy warnings: unused QString. 2019-02-22 20:23:42 +00:00
Mat Sutcliffe
a65be602bb Fixed clazy warnings: provide receiver object argument to signal/slot connection. 2019-02-22 20:23:40 +00:00
Mat Sutcliffe
fc23a25ce1 Fixed clazy warnings: new-style signal/slot connect syntax. 2019-02-22 20:23:40 +00:00
Mat Sutcliffe
26376a5fa1 Macro definitions should be after includes, not before. 2019-02-22 20:23:39 +00:00
Mat Sutcliffe
4344ca1a77 Suppressed clazy false positives: method potentially mismarked as slot. 2019-02-22 20:23:39 +00:00
Mat Sutcliffe
926082e756 Fixed clazy warning: signal CLineReader::quit hides signal QThread::quit. 2019-02-22 20:23:38 +00:00
Mat Sutcliffe
cecec6107c Fixed clazy warnings: use QStringRef. 2019-02-22 20:23:38 +00:00
Mat Sutcliffe
c71d358648 Fixed clazy warnings: unnecessary containers and containers being detached. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
462172a87f Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
684ffeb671 Fixed clazy warnings: rule of zero/three/five. 2019-02-22 20:23:35 +00:00
Mat Sutcliffe
20d4575c55 Suppressed clazy false positive: qHash namespace. 2019-02-22 20:23:35 +00:00
Mat Sutcliffe
8979b5257e Fixed clazy warnings: returning void expression. 2019-02-22 20:23:34 +00:00
Mat Sutcliffe
e32ea65a27 Fixed clazy warnings: fully-qualified signal parameter types. 2019-02-22 20:23:34 +00:00
Mat Sutcliffe
9f85a7b560 Fixed clazy warnings: pass large objects by reference to const. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
e40af8132c Fixed clazy warnings: missing Q_OBJECT. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00
Mat Sutcliffe
268d858e2d Parse errors in CAircraftModelLoaderXPlane should be errors, not warnings. 2019-02-22 20:23:32 +00:00
Mat Sutcliffe
228ab8602c Ref T459 Using 8.33 kHz spacing COM radio datarefs. 2019-02-22 20:23:30 +00:00
Mat Sutcliffe
ceb6ff7451 Ref T459 Update xswiftbus dataref classes to the latest available and use C++11. 2019-02-22 20:23:30 +00:00
Mat Sutcliffe
acdbf9d43d Ref T470 CTraffic::getRemoteAircraftData uses NaN to represent
an unknown vertical offset.
2019-02-22 20:23:30 +00:00
Mat Sutcliffe
73ec162f62 Update libxplanemp for T469 and T470. 2019-02-22 20:23:29 +00:00
Mat Sutcliffe
036d608a74 Update to new clazy warnings. 2019-02-22 20:23:29 +00:00
Mat Sutcliffe
b82ab1e3c2 Added support for using address sanitizer with clang-cl. 2019-02-22 20:23:28 +00:00
Mat Sutcliffe
4c3aba20dd With clang-cl use /W4 instead of -Wall -Wextra.
This is due to a change in the behaviour of clang-cl in LLVM 6.0
where `-Wall` became a synonym for `-Weverything` to be more like
the behaviour of `/Wall` in the Microsoft compiler. `/W4` is the
new way to spell `-Wall -Wextra`.
2019-02-22 20:23:27 +00:00
Mat Sutcliffe
4c0bbbae25 Fixed warnings reported by Clang on Windows. 2019-02-22 20:23:27 +00:00
Mat Sutcliffe
9d7af08f3d Removed workarounds no longer needed. 2019-02-22 20:23:26 +00:00
Mat Sutcliffe
307e170d5f Integrate swift version numbering into the json config system. 2019-02-22 20:23:26 +00:00
Mat Sutcliffe
82679a3010 Replace qmake variable BLACK_CONFIG with a system based on json files.
The config is loaded from json files by qmake, and we define the qmake
function `swiftConfig` for checking whether a feature is enabled.
This function can be directly used in `buildconfig_gen.cpp.in`,
so the trick with C++ comment tokens in variables is not needed.
2019-02-22 20:23:25 +00:00
Mat Sutcliffe
188d3d914e Added constexpr specifier where possible in CBuildConfig.
This necessitated moving some function definitions into a .inc file
that is included by buildconfig.h, as constexpr functions must be defined
in the header. This new file is added to the list of QMAKE_SUBSTITUTES.
2019-02-22 20:23:23 +00:00
Mat Sutcliffe
87552c2327 Fixed off-by-one error in calculating eolMonth. 2018-12-24 14:08:18 +00:00
Klaus Basan
a09d7191f3 Ref T456, user statistics monitored at backend
* values for simulator/network
* changed concept a bit so crash handler values are used for statistics as well
RELEASE_0.8.7
2018-12-16 00:22:33 +01:00
Klaus Basan
d5ebd91c55 Use combobox simulator selector in mapping component as it allows "smaller" columns 2018-12-16 00:22:33 +01:00
Klaus Basan
5f252530cd Minor fixes in simulator selector 2018-12-16 00:22:33 +01:00
Klaus Basan
e185759a42 Formatting and singleShot "myself" guard 2018-12-16 00:22:00 +01:00
Roland Rossgotterer
686f8a478e Update crashpad
crashpad is now also supported on Linux. Therefore build it everywhere except under Windows MinGW.
2018-12-16 00:22:00 +01:00
Klaus Basan
59343c6c24 Minor style fixes 2018-12-14 19:57:31 +01:00
Klaus Basan
e5eeb43031 Shutdown guard 2018-12-14 19:57:30 +01:00
Klaus Basan
8ec5735185 Ref T456, remove "{}" from UUID 2018-12-14 19:57:30 +01:00
Mat Sutcliffe
71de01065b Ref T464 Implement removal of one sequence from another in O(n),
assuming that elements in both sequences are in the same order in both.
2018-12-14 19:57:29 +01:00
Klaus Basan
40ae7174a7 Ref T470, detect NULL cg 2018-12-14 19:57:29 +01:00
Klaus Basan
f841d57448 Avoid crash by checking disconnected before requesting elevation 2018-12-11 21:34:14 +01:00
Roland Rossgotterer
7a8ae85b5a Do not require root privileges when installing on MacOS
Requiring general root privileges raised some trust concerns by MacOS users. This reverts the latest changes to require root to install DBus machine-id into /etc. Now the user has to do that manually via sudo. A check will be added before running into an assert.
2018-12-11 17:42:54 +01:00