diff options
author | Christian Stenger <christian.stenger@qt.io> | 2022-10-20 09:56:54 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2022-12-16 17:11:11 +0200 |
commit | 26a9ffc00c567db5c9343ff1fa78bc8e358fd36e (patch) | |
tree | f4a093a60e769c87051627729122bebc19eb60f0 /src/libs/installer/component_p.cpp | |
parent | 4470d3b6a67e27068c95bdc02982db7ccea06d1b (diff) |
Adapt to differences between Qt5 and Qt6
Task-number: QTIFW-1829
Change-Id: Ieae92a7736784784bc548433eda8b073b1a4b8f8
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/component_p.cpp')
-rw-r--r-- | src/libs/installer/component_p.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/component_p.cpp b/src/libs/installer/component_p.cpp index 42a4c5277..7cf47c925 100644 --- a/src/libs/installer/component_p.cpp +++ b/src/libs/installer/component_p.cpp @@ -153,7 +153,7 @@ void ComponentModelHelper::setEnabled(bool enabled) */ bool ComponentModelHelper::isTristate() const { - return (flags() & Qt::ItemIsTristate) != 0; + return (flags() & Qt::ItemIsAutoTristate) != 0; } /*! @@ -164,7 +164,7 @@ bool ComponentModelHelper::isTristate() const */ void ComponentModelHelper::setTristate(bool tristate) { - changeFlags(tristate, Qt::ItemIsTristate); + changeFlags(tristate, Qt::ItemIsAutoTristate); } /*! |