diff options
author | David Faure <david.faure@kdab.com> | 2015-05-06 17:57:36 +0200 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2015-05-07 09:14:18 +0000 |
commit | ae8406d82f541f6d9112bdac192e5e4e114d56aa (patch) | |
tree | ea8344f5e62950f7e94dc6061db263a9ffb9d560 /src/corelib/global/qnamespace.h | |
parent | 87155a8d651c94872207cf2a1b85a92d5c509073 (diff) |
Deprecate ItemIsTristate in favor of ItemIsAutoTristate.
This makes the behavior much more clear. You can get a tristate checkbox
just by setting the CheckStateRole to PartiallyChecked, no tristate flag needed.
The flag, on the other hand, enables the automatic-tristate behavior in
QTreeViews (and only there), hence the new name for it.
Change-Id: I18d292a8b8294c863eab806f3874d15dfb72556c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/corelib/global/qnamespace.h')
-rw-r--r-- | src/corelib/global/qnamespace.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 32b2a26992..123e2edf0e 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1458,7 +1458,10 @@ public: ItemIsDropEnabled = 8, ItemIsUserCheckable = 16, ItemIsEnabled = 32, - ItemIsTristate = 64, + ItemIsAutoTristate = 64, +#if QT_DEPRECATED_SINCE(5, 6) + ItemIsTristate = ItemIsAutoTristate, +#endif ItemNeverHasChildren = 128, ItemIsUserTristate = 256 }; |