summaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@idiap.ch>2020-08-20 09:32:12 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-08-30 01:06:15 +0000
commitb3cd725f639255d181f1c4fc191cfa747b27c286 (patch)
tree49ae8f5627fa6a8e98169bd68d39a7051dc7b8cf /examples/widgets
parent60c691a39b958dba62cc1f4eb086ee2205be1b58 (diff)
QAbstractItemView: make clipboard copy less constrained
Currently when copying from an item view, only QString value types are considered. This severely limits the usefulness of the feature as it does not even allow to copy number nor dates that can be translated to text. This merge request changes that by checking if the content being copied can be converted to a string rather that just being a string. This will also allow for custom types to be handled. Fixes: QTBUG-86166 Change-Id: If57c986ef5831d59eeb59f9c4b900fa126ec31ea Reviewed-by: David Faure <david.faure@kdab.com> (cherry picked from commit a646bcf2be23a65c6ee0a0efdeb6e787c80ac457) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/widgets')
0 files changed, 0 insertions, 0 deletions