qt5base-lts/examples/widgets
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
..
animation Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
desktop Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
dialogs Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
doc Regular Expression example: Brush up and add a way to preview replacements 2021-06-01 21:54:35 +00:00
draganddrop Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
effects Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
gallery Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
gestures Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
graphicsview Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
itemviews Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
layouts Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
mainwindows Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
painting Polish the painting/affine example 2021-10-16 12:52:29 +02:00
qnx/foreignwindows Use QList instead of QVector in statemachine 2020-07-06 14:06:13 +02:00
richtext Support background-color CSS styling on <hr/> 2021-10-14 17:09:20 +02:00
scroller Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
tools Fix treemodelcompleter example 2021-10-27 16:34:44 +02:00
touch Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
tutorials Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
widgets Remove checks for C++ standard versions C++17 and below 2021-10-01 02:46:09 +02:00
windowcontainer Raise cmake_minimum_required to VERSION 3.16 in examples 2021-08-17 19:18:54 +02:00
.prev_CMakeLists.txt CMake: Regenerate projects 2020-09-22 19:08:53 +02:00
CMakeLists.txt Build examples in isolated sub-builds using ExternalProject 2021-05-26 13:33:29 +02:00
widgets.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00