Commit Graph

311 Commits

Author SHA1 Message Date
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
Roland Rossgotterer
beec08f70c Fix doubled period in source filename 2018-12-11 10:54:44 +01:00
Roland Rossgotterer
11f328b5c3 Split up listmodelbase
This is to reduce the number of symbols per single object file which caused MinGW 32 bit build to fail.
- Moved CListModelBaseNonTemplate into its own file
- Separated the template instantiations into domain specific source files
2018-12-11 10:54:43 +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
82324cb512 Ref T442, ATC station treeview
* store expand/collapsed state
* resize
* clear
2018-12-07 02:37:14 +01:00
Klaus Basan
6116797727 Ref T442, getColumns from view/model 2018-12-07 02:37:14 +01:00
Klaus Basan
02213e860d Ref T442, style 2018-12-07 02:37:14 +01:00
Klaus Basan
45e34001a8 Ref T442, moved tree model into own class
* columns can be used as with list model
* own class/file
2018-12-05 04:03:59 +01:00
Klaus Basan
8c74d8c386 Ref T442, column formatter utility functions 2018-12-05 04:03:44 +01:00
Klaus Basan
34cb0abdf0 Ref T442, style 2018-12-05 04:03:43 +01:00
Klaus Basan
b48e059930 Model style 2018-12-01 19:23:08 +01:00
Klaus Basan
0da8d85999 Ref T442, utility functions for logically sorting by suffix 2018-11-30 22:02:04 +01:00