diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-27 12:43:42 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-27 12:44:57 (GMT) |
commit | d683fd25512dedacdac141222db36209ef65e42d (patch) | |
tree | bf47224d501aba6f0fa1305e7f86f71777e2c677 /src/gui/itemviews | |
parent | 0897713a560700f574386499a872f59e3fc4ce7d (diff) | |
download | Qt-d683fd25512dedacdac141222db36209ef65e42d.zip Qt-d683fd25512dedacdac141222db36209ef65e42d.tar.gz Qt-d683fd25512dedacdac141222db36209ef65e42d.tar.bz2 |
Fixed QTreeView not emitting doubleCliked when 1st col is spanned
Task-number: QTBUG-976
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qtreeview.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp index e74ecfc..16b454d 100644 --- a/src/gui/itemviews/qtreeview.cpp +++ b/src/gui/itemviews/qtreeview.cpp @@ -1840,9 +1840,7 @@ void QTreeView::mouseDoubleClickEvent(QMouseEvent *event) return; // user clicked outside the items const QPersistentModelIndex firstColumnIndex = d->viewItems.at(i).index; - - int column = d->header->logicalIndexAt(event->x()); - QPersistentModelIndex persistent = firstColumnIndex.sibling(firstColumnIndex.row(), column); + const QPersistentModelIndex persistent = indexAt(event->pos()); if (d->pressedIndex != persistent) { mousePressEvent(event); |