Commit Graph

3226 Commits

Author SHA1 Message Date
Mat Sutcliffe
5a17f43a5b Ref T488 Update cppcheck suppressions. 2019-02-22 20:34:56 +00:00
Mat Sutcliffe
3b07618830 Ref T482 Enable makeKeysRange and makePairsRange for non-const lvalues. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
cba820cbce Ref T485 Update for efficient QString usage in CLogMessage:
- `debug()`, `warning()`, `error()` etc. overloaded on `const char16_t[]` to accept UTF-16 string literals.
- Overloads on `const char *` are deleted to avoid accidents.
- Message is stored as QString and/or QStringView depending which overload is used.
- The multiplexing between QString and QStringView is handled by a special value class, to keep the metaclass simple.
- QStringView does not have `arg()` method, so had to implement our own.
2019-02-22 20:34:54 +00:00
Mat Sutcliffe
dd655bcb25 Ref T486 Using QRandomGenerator. 2019-02-22 20:34:53 +00:00
Mat Sutcliffe
bd9948bbff Ref T486 Using QMetaObject::invokeMethod with pointer-to-member-function (or functor). 2019-02-22 20:34:53 +00:00
Klaus Basan
b648960b59 Ref T451, utility functions 2019-02-22 20:24:04 +00:00
Klaus Basan
93cf349a04 Ref T451, context menu in views (simulated aircraft/model) to disable model 2019-02-22 20:24:03 +00:00
Klaus Basan
0efb24f7fc Minor tweaks, style 2019-02-22 20:24:01 +00:00
Klaus Basan
da0e021332 Ref T265, Ref T430, Ref T473 parts added to mapping UI 2019-02-22 20:23:58 +00:00
Klaus Basan
ecb77191e5 Ref T265, Ref T430, Ref T473 "supported parts" in model
* added part member
* unified parsing from DB "CAircraftModel::fromDatabaseJsonBaseImpl"
2019-02-22 20:23:57 +00:00
Klaus Basan
2d3e2e2d99 Ref T265, Ref T430, Ref T473 functions renamed 2019-02-22 20:23:55 +00:00
Klaus Basan
6bd3a50ed8 Ref T265, Ref T430, Ref T473 improved validator for parts 2019-02-22 20:23:54 +00:00
Klaus Basan
d89b217e9b PQ parsing using "best guess" strategy as default plus renamings 2019-02-22 20:23:54 +00:00
Klaus Basan
7ded12a965 Ref T265, Ref T430, Ref T473 DB model changes/JSON changes 2019-02-22 20:23:52 +00:00
Klaus Basan
a40e37e59b Ref T473, added version attribute for DB based value objects.
So all DB objects could have version.
2019-02-22 20:23:51 +00:00
Mat Sutcliffe
d651a9ee95 Fixed mistake in CAircraftIcaoCode::guessModelParameters 2019-02-22 20:23:50 +00:00
Mat Sutcliffe
d6b5dca6b2 Return a default-constructed QString instead of implicitly converting an empty string literal. 2019-02-22 20:23:49 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
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
b4724996c6 Fixed clazy warnings: unused QString. 2019-02-22 20:23:42 +00:00
Mat Sutcliffe
4344ca1a77 Suppressed clazy false positives: method potentially mismarked as slot. 2019-02-22 20:23:39 +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
4c0bbbae25 Fixed warnings reported by Clang on Windows. 2019-02-22 20:23:27 +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
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
2018-12-16 00:22:33 +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
9f408e8319 Fixes in model set form as described by RP
https://swift-project.slack.com/archives/G96QTUBEG/p1544353355002400

* fixed missing radio button groups
* return values for some functions to detect "changes"
* minor style fixes
2018-12-10 03:41:16 +01:00
Klaus Basan
8d3d5743d3 Ref T455, preselect simulator in wizard if there are models 2018-12-10 03:41:16 +01:00
Klaus Basan
eacb554053 Ref T365, use not-wrapping tooltips 2018-12-10 03:41:16 +01:00
Klaus Basan
50cc9c32d6 Ref T365, find add-on SimObjects
* utility function to compare directories
* parse "add-on.xml"
* use add-on SimObject paths for P3D as default
2018-12-10 03:41:15 +01:00
Klaus Basan
ca3345bbe0 Ref T455, utility file functions 2018-12-07 02:37:16 +01:00
Klaus Basan
136d161bf0 Ref T430, simulator settings for FG 2018-12-07 02:37:15 +01:00
Klaus Basan
363b7c9966 Ref T430, style 2018-12-07 02:37:15 +01:00
Klaus Basan
4dae61c171 Ref T442, ATC station list split per suffix 2018-12-05 04:03:44 +01:00
Klaus Basan
d7026dbf42 Ref T442, directly return image/icon types from CVariant 2018-12-05 04:03:44 +01:00
Klaus Basan
6ef10b92ab Fixed non-saving crashdump setting and some improvements for setup
Registration for "Settings::CCrashSettings::registerMetadata()" was missing
2018-12-02 18:26:49 +01:00
Klaus Basan
7fc6fcb867 Improved version of "Allow to delete data directory from application view"
- split functions into dynamic loading and const versions (loading at startup)
- reload other versions from wizard in case they changed
- some renaming/formatting
2018-12-02 04:27:59 +01:00
Mat Sutcliffe
8a058202ed Fixed buggy CSequence::sortBy when sorting by multiple members.
Implementation of Predicates::MemberLess was wrong, so replaced it with a
simpler one. Also added a regression test and removed unused code.
2018-11-30 22:02:04 +01:00