qt6-bb10/examples/widgets/tools/treemodelcompleter
Joerg Bornemann 9beae46b59 Fix treemodelcompleter example
All nodes in the view were at the top level due to a spurious trimmed()
call.

The condition in the indentation calculation was flipped, leading to a
segfault.  Also, the input data does not contain tabs.  Remove the
condition that checks for tabs altogether.

This amends commit 3fede6cb54.

Fixes: QTBUG-97727
Pick-to: 6.2 5.15
Change-Id: Ic5068ead755c4dae5f0607724ac7704cce03227c
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
2021-10-27 16:34:44 +02:00
..
resources
CMakeLists.txt Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
main.cpp
mainwindow.cpp Fix treemodelcompleter example 2021-10-27 16:34:44 +02:00
mainwindow.h Cleanup QtWidgets (tools) examples 2019-09-11 20:36:17 +02:00
treemodelcompleter.cpp Cleanup QtWidgets (tools) examples 2019-09-11 20:36:17 +02:00
treemodelcompleter.h Cleanup QtWidgets (tools) examples 2019-09-11 20:36:17 +02:00
treemodelcompleter.pro
treemodelcompleter.qrc