diff options
| author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-08-29 14:09:55 +0200 |
|---|---|---|
| committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-09-06 13:06:05 +0000 |
| commit | 77aefc95cf3fbae342004513fd8c9f3a0184eba9 (patch) | |
| tree | 4310042298458dd94aac126d833f395ea227d00b /src/qml/compiler/qv4compilerscanfunctions.cpp | |
| parent | 638f80c317a42d51ff312c077cc84f60538e5498 (diff) | |
QQmlTableInstanceModel: don't fall back to use DelegateChooser as delegate
If the application uses a DelegateChooser, but the chooser fails to
resolve a delegate for a certain index, it should not use itself
as the delegate instead. This will cause the application to crash.
Instead, we just print a warning, and return nullptr, which will let
TableView handle the situation gracefully.
Change-Id: Ibaf9da09fd11149362f5b674fc61db47593de10c
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
0 files changed, 0 insertions, 0 deletions
