Commit Graph

3208 Commits

Author SHA1 Message Date
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
Klaus Basan
0da8d85999 Ref T442, utility functions for logically sorting by suffix 2018-11-30 22:02:04 +01:00
Klaus Basan
93656d0a99 Network setup not yet used, disabled 2018-11-29 20:54:26 +01:00
Roland Rossgotterer
425274d9c2 Log a message if CGenericDBusInterface::callDBusRet failed with error 2018-11-29 20:54:26 +01:00
Roland Rossgotterer
659b78832e Rewrite 7z uncompressing to work on all supported platforms
On Windows we ship 7za.exe in our binaries.
On MacOS we do the same, but the executable needs to be called with the full path.
On Linux we don't ship anything but assume it to be available from the distribution.
2018-11-29 20:54:25 +01:00
Roland Winklmeier
2843e20d54 Update xswiftbus.conf when updating connection details
ref T434
2018-11-29 20:54:25 +01:00
Klaus Basan
394147dcb9 Server handling
* added tower view as hardcoded
* renamed to predefined servers
* utility functions to add/remove FSD setup flags
2018-11-29 20:54:25 +01:00
Klaus Basan
2dd43226ba Ref T420, style 2018-11-29 20:54:25 +01:00
Klaus Basan
9f6cb9a72f Allow to delete data directory from application view
* allow to re-init applicazion list (needed because directories can be deleted)
* context menu for "delete data directory"
2018-11-29 20:54:25 +01:00
Klaus Basan
9c46cab133 Add in simulator info returns delta 2018-11-29 20:54:25 +01:00
Klaus Basan
0002752fa6 Ref T441, find model string duplicates 2018-11-26 06:26:45 +01:00
Klaus Basan
2b8d7f425e Ref T441, use distributor preferences in "reduce dialog" 2018-11-26 06:26:07 +01:00
Klaus Basan
1f1fa6d7aa Ref T441, model list utility functions 2018-11-25 18:21:52 +01:00
Klaus Basan
62860eb30b Ref T436, allow to set a global offset altitude for testing (example: ".altos ? -10m") 2018-11-23 02:43:11 +01:00
Klaus Basan
ef340e6dba FSX: Warning if file is not found 2018-11-22 19:55:04 +01:00
Klaus Basan
7f7cf2e031 Ref T436, underflow detection for FSX
* utility functions
* force gnd flag to avoid underflow
2018-11-22 19:55:04 +01:00
Klaus Basan
82467da45b Ref T436, correct file name handling (UNC) and validate FSX position 2018-11-22 19:55:03 +01:00
Klaus Basan
3434abefb0 Ref T436, init m_s[0-3] correctly 2018-11-22 19:55:03 +01:00
Klaus Basan
3f8ea99d14 FSUIPC Clang fixes 2018-11-22 19:55:02 +01:00