Commit 533b4535 authored by Caroline Chao's avatar Caroline Chao Committed by The Qt Project
Browse files

TableView: Fix activated() not emitted


The mousearea in TableView has to accept mouse event in onPressed to
receive upcoming double click event.

Regression introduced by Iff3e5c1.

Instead of not accepting the event in onPressed, set the MouseArea
property propagateComposedEvents to true and does not accept the onClicked
event.

Also uses QStyle::SH_ItemView_ActivateItemOnSingleClick to check if the
table is activated on single or double-clicking. By default, it is activated
on double-clicking.

Change-Id: I744174d7b31efebfae5e8db4db7b99a544ecf50f
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
parent a6deb27b
Showing with 110 additions and 4 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment