diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-12-19 17:51:19 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-12-24 22:17:19 +0000 |
commit | 32897fd0b98966d22ecbd475a0e6a77ca8b1108d (patch) | |
tree | 89b202ba300adcbf858ced7469d924014e711614 /src/qdoc | |
parent | e9f39c40d98213877317a42d30b78cba102e2017 (diff) | |
download | qttools-32897fd0b98966d22ecbd475a0e6a77ca8b1108d.tar.gz |
QList/Tree/TableWidgetEdit: use correct default flags
The AbstractItemEditor was using the default flags from an
QListWidgetItem as the default values for QList/Tree/tableWidgetItem
which is wrong because the different classes have different default
flags. This lead to an inconsistent behavior during runtime. E.g. a
QTableWidgetItem was not editable but during runtime it was editable.
This fix adds a new function to retrieve the correct default flags
dependending on the selected widget type.
Change-Id: I96e1dec5a459a4d746b469bd773ddb7526e65357
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/qdoc')
0 files changed, 0 insertions, 0 deletions