qt6-bb10/src/widgets
Giuseppe D'Angelo 8920200c97 QColumnView: don't set an invalid index as the current one
When any item in a QColumnView gets selected, the next column gets
normally set to show the children of that index. When we are on a leaf
of a tree model, the next column will have an invalid root index, yet
we set that root index as the "current index" for the current column.

Due to the special handling for invalid indexes in
QAbstractItemView::setCurrentIndex, this ends up breaking the current
item AND the current selection in that column. Further clicks inside
the column for instance trigger the entire column (up to the clicked
index) to get selected, because of that broken first setCurrentIndex.

The simple fix is to stop doing that when the next column has
an invalid root index.

Task-number: QTBUG-2329
Change-Id: Icd10c0b958e25cd868536e1315561787977b68bd
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2014-12-05 07:57:46 +01:00
..
accessible Compile fix for QT_NO_TEXTHTMLPARSER in QtWidgets 2014-11-11 12:39:05 +01:00
dialogs New Qt logo 2014-11-05 08:10:42 +01:00
doc QAbstractItemView: call canDropMimeData, as one would expect. 2014-11-24 08:05:51 +01:00
effects Update license headers and add new license files 2014-09-24 12:26:19 +02:00
graphicsview QGraphicsTextItem: document that adjustSize can center/right align text 2014-11-12 16:06:48 +01:00
itemviews QColumnView: don't set an invalid index as the current one 2014-12-05 07:57:46 +01:00
kernel Revert "Use single finger pan to scroll text edits on touch screens." 2014-12-04 18:51:39 +01:00
statemachine Update license headers and add new license files 2014-09-24 12:26:19 +02:00
styles fix the build with animation omitted 2014-11-27 09:36:04 +01:00
util Don't use QStringLiteral in comparisons 2014-10-09 09:42:00 +02:00
widgets QDockWidget: Prevent repetitive unplugging of floating dock widgets. 2014-12-04 20:18:21 +01:00
Qt5WidgetsConfigExtras.cmake.in CMake: Include the definition of the Qt5::AccessibleFactory target. 2014-04-16 15:21:50 +02:00
Qt5WidgetsMacros.cmake
QtWidgets.dynlist
widgets.pro Merge remote-tracking branch 'origin/5.3' into dev 2014-07-22 20:21:19 +02:00