Commit Graph

3055 Commits

Author SHA1 Message Date
Klaus Basan
c67ca53aa1 Ref T509, utility function 2019-02-22 20:35:28 +00:00
Klaus Basan
3c0c61ae19 Ref T489, better progress indication in DB load dialog 2019-02-22 20:35:27 +00:00
Klaus Basan
58cfdd1bb9 Ref T492, alias in model lists and model
Search for alias and modelstring in matching
2019-02-22 20:35:22 +00:00
Klaus Basan
80e925fe80 Ref T492, added model alias 2019-02-22 20:35:22 +00:00
Roland Rossgotterer
845c7ddf59 Add swift_crashpad_handler to Linux installer
Summary:
swift_crashpad_handler for Linux was part of externals but was never copied to out/
and also never copied into the installer.

Reviewers: #gatekeepers

Differential Revision: https://dev.swift-project.org/D96
2019-02-22 20:35:22 +00:00
Mat Sutcliffe
0eed065e84 Fixed typo in filename. 2019-02-22 20:35:20 +00:00
Roland Rossgotterer
94c2859e18 Replace QDBusConnection::localMachineId with QSysInfo::machineUniqueId()
QSysInfo::machineUniqueId() was added in Qt 5.11 and is using DBus independent unique machine ids everywhere except on Linux. This prevents running into an assert in case DBus is not properly installed at a very early stage of the application without any chance to give the user a warning and handle it gracefully.
2019-02-22 20:35:16 +00:00
Mat Sutcliffe
e7582f2f3c Move function-scope static QThreadStorage objects to namespace scope
to ensure destruction after all function-scope statics and avoid warning
"thread exited after QThreadStorage destroyed".
2019-02-22 20:35:15 +00:00
Mat Sutcliffe
1493106970 Style: removed outdated comments and includes. 2019-02-22 20:35:15 +00:00
Mat Sutcliffe
1f83d677f3 Changed BLACK_FALLTHROUGH to Q_FALLTHROUGH(). 2019-02-22 20:35:12 +00:00
Mat Sutcliffe
0c5442d59c Fixed unintentional fallthrough in switch statement. 2019-02-22 20:35:12 +00:00
Mat Sutcliffe
afd9541eb3 Removed workaround for MinGW 5.3. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
66a06427f9 Ref T495 Using QThreadStorage because thread_local caused a static destruction order fiasco. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
80308b85d5 Changed QOverload to qOverload. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
03e68de890 Removed workarounds for old versions of MSVC. 2019-02-22 20:35:10 +00:00
Klaus Basan
7be54fde87 Display number of included/DB models in "1st model set wizard" 2019-02-22 20:35:10 +00:00
Klaus Basan
90b893c62a Ref T494, moved audio settings Trait directly info BlackMisc settings file 2019-02-22 20:35:07 +00:00
Klaus Basan
3137af30bb Ref T494, detect callsign in text message 2019-02-22 20:35:07 +00:00
Klaus Basan
f8c17e10e8 Ref T494, CNotificationSounds refactring
* use Q_DECLARE_FLAGS NotificationFlag/Notification for sounds, not the weird version from very early swift days
* splt into h/cpp files
* added new sounds
2019-02-22 20:35:06 +00:00
Klaus Basan
80ed972e53 Ref T494, style
* removed some old "foreach" loops
* fixed some CLANG warnings
2019-02-22 20:35:05 +00:00
Klaus Basan
cb084427ec Unified "simplification" to ASCII only for text messages
Based on the codepage discussion of text messages

* in text message value object still store the unicode string
* the text is only "cleaned" up and Qt "simplified" (do not confuse with conversion to ASCII)
* only place where we simplify to ASCII only is
** in VATLIB
** or the utility
2019-02-22 20:35:05 +00:00
Klaus Basan
1e35519a0d Added some resources (URLs) after the text message discussion 2019-02-22 20:35:05 +00:00
Klaus Basan
788f827110 Ref T489, Ref T484, string improvements 2019-02-22 20:35:03 +00:00
Klaus Basan
efb1ac46f2 Ref T489, added "parsing" state for entity read states 2019-02-22 20:35:02 +00:00
Klaus Basan
5c785643c7 Ref T484, string improvements 2019-02-22 20:35:00 +00:00
Klaus Basan
b6844e4a44 Fixed bug, some values not considered 2019-02-22 20:35:00 +00:00
Mat Sutcliffe
4f2579b812 Ref T275 testaircraftsituation: detach lists to get meaningful benchmark results. 2019-02-22 20:34:58 +00:00
Mat Sutcliffe
d088a9bec4 Minor adjustments in CLogMessage implementation. 2019-02-22 20:34:58 +00:00
Mat Sutcliffe
e709d27e05 Ref T488 Fixed mistake in CStatusMessage::severitiesToString. 2019-02-22 20:34:57 +00:00
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