Commit Graph

322 Commits

Author SHA1 Message Date
Klaus Basan
ca452134e8 Ref T673, adjusted models 2019-09-16 22:39:58 +01:00
Klaus Basan
538ea297e4 Ref T673, hide values marked as incognito column 2019-09-16 22:39:57 +01:00
Klaus Basan
8749a7176d Model filter size and wildcard 2019-05-23 13:12:59 +02:00
Klaus Basan
e8b57f8bef Allow to rescale airline icons (actually all icons) 2019-05-13 11:21:11 +02:00
Klaus Basan
71fbe5b604 Allow to filter by combined type 2019-05-13 11:20:53 +02:00
Klaus Basan
99c6a03b6f Support for an empty column 2019-05-13 11:20:44 +02:00
Mat Sutcliffe
8fb0a009d1 Ref T579 Work around proximate cause of data race in CListModelBase.
This is still not thread-safe but at least it is less likely to crash.
A more robust fix will be attempted later.
2019-04-11 22:12:05 +01:00
Klaus Basan
057031293d Ref T578, display level and path (not just path) 2019-04-11 22:12:03 +01:00
Klaus Basan
30b65d6c36 Fixed selection of view rows when changing to filtered data
* return values for select functions
* select function must be "public override"
* reselect filtered data as well
2019-04-11 22:12:00 +01:00
Klaus Basan
3988fbdb32 Ref T430, follow ups of FG integration fixing wrong distributor handling
* fixing a bug where the radio button and check box names got mixed
* removed code for FG disabling
* style

Backend T576
2019-04-11 22:11:59 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
d5aaf24231 Ref T472, add category column 2019-02-22 20:36:30 +00:00
Klaus Basan
6e05875eab Ref T472, added id column 2019-02-22 20:36:19 +00:00
Klaus Basan
b584398482 Ref T472, added aircraft category in ICAO model 2019-02-22 20:36:19 +00:00
Klaus Basan
474207eeab Ref T472, heap issue follow up + minor clean ups
* unfortunately the issue did still persist
* reason still unknown
* not expanding all seems to solve it

Maybe using the high level API without own model would be better
https://www.bogotobogo.com/Qt/Qt5_QTreeWidget.php
2019-02-22 20:36:10 +00:00
Klaus Basan
fe840613cb Ref T529, added "IndexSeverityAsIcon", use logic sort order 2019-02-22 20:36:05 +00:00
Klaus Basan
c123c8bbca Using the same optimizations as in category tree view (Ref T472)
* isEmpty
* digest signal
2019-02-22 20:36:04 +00:00
Klaus Basan
fe05c2287b Ref T472, fixed expandAll/fullResizeToContents heap issue
* after updating the container update "expandAll" was called
* in onExpanded multiple "fullResizeToContents" occured, resulting in the healp issue below
* as it was a good idea anyway to reduce the slow "fullResizeToContents" anyway, so we are using a CDigestSignal
* this also solved the HEAP issue (for some reason I have NOT investigated)

HEAP[swiftdata.exe]: HEAP: Free Heap block 000001AB439BFFF0 modified at 000001AB439C00BC after it was freed
2019-02-22 20:36:04 +00:00
Klaus Basan
728a76fc2c Ref T529, automatically setting/restoring sorting for status messages 2019-02-22 20:36:04 +00:00
Klaus Basan
b2ec28e3cd Ref T529, model/views get sort order values 2019-02-22 20:36:03 +00:00
Klaus Basan
7cd1eb5ea5 Ref T529, automatically adjust model/view columns depening on status messages
Add/remove order column automatically
2019-02-22 20:36:02 +00:00
Klaus Basan
32985c78da Ref T529, allow to set mode in view/model
The version with the container allows to auto-detect if order is available
2019-02-22 20:36:02 +00:00
Klaus Basan
aa47d7bb03 Ref T529, style 2019-02-22 20:36:01 +00:00
Klaus Basan
3aee73840d Ref T529, allow to explicitly set no sort order in model/view 2019-02-22 20:36:00 +00:00
Klaus Basan
1b730dd0b1 Ref T472, style 2019-02-22 20:35:59 +00:00
Klaus Basan
969600b65d Ref T472, category model/view + tree view 2019-02-22 20:35:58 +00:00
Klaus Basan
74be37339e Models guard names and style 2019-02-22 20:35:56 +00:00
Klaus Basan
8c15f45007 Ref T529, deterministic sort order when column values are equal
* the Qt model sorts by column
* when multiple values have the same column value the order among those is more or less random
* added additional property indexes to determine the order among the equal values
2019-02-22 20:35:54 +00:00
Klaus Basan
17f67d6106 Style 2019-02-22 20:35:53 +00:00
Klaus Basan
019cc6259e Ref T515, highlight by models and changed naming 2019-02-22 20:35:39 +00:00
Klaus Basan
5d46017af2 Copy from other swift versions minor UI adjustments 2019-02-22 20:35:35 +00:00
Klaus Basan
25df1921eb Style 2019-02-22 20:35:33 +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
Mat Sutcliffe
1f83d677f3 Changed BLACK_FALLTHROUGH to Q_FALLTHROUGH(). 2019-02-22 20:35:12 +00:00
Klaus Basan
e85680f1b0 Improved livery filter bar and filer, accept virtual airline designators 2019-02-22 20:35:09 +00:00
Klaus Basan
48b18c7acd Resize columns of "other swift versions" to percentage 2019-02-22 20:34:59 +00:00
Klaus Basan
7baf5f238e Allow columns with percentage width 2019-02-22 20:34:59 +00:00
Klaus Basan
314c48d5d1 Filter minor style/refactoring
* use normal functions instead of slots
* some renamings
2019-02-22 20:24:02 +00:00
Klaus Basan
4aec50ccfc Ref T478, removed the critical functions + adjustments
The code was never used as we decided not to translate swift, but do it all in English. So that code branch was never executed and I have removed the above 4 function + required adjustments.

* getTranslationContextChar
* getColumnNameChar
* getColumnToolTipChar
* getTranslationContextChar
2019-02-22 20:23:59 +00:00
Klaus Basan
000a03b2c9 Ref T265, Ref T430, Ref T473 CG/parts in UI model 2019-02-22 20:23:58 +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
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
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
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