From 0f261598201698f73cf28541294b5027455d0f76 Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Tue, 22 Nov 2022 15:33:17 +0200 Subject: Fix updater view behavior for non-checkable components As the components can still be selected with the selection buttons above the view, it makes little sense to artificially limit selecting individual items for update and hiding their check state. Also the documented use case for the property - making a parent component non-checkable so only some of its children should be checked - does not apply for the updater view. Apply similar fix to forced installation components, which should be also toggleable for updates. Task-number: QTIFW-836 Change-Id: I18f34c4e8ee1e24e761e50edd3066ec4aea3432e Reviewed-by: Katja Marttila --- tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp b/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp index 338157cba..ef3163980 100644 --- a/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp +++ b/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp @@ -295,7 +295,7 @@ private slots: componentResourcesAfterUpdate.append(ComponentResource("componentA", "1.0.0content.txt")); componentResourcesAfterUpdate.append(ComponentResource("componentB", "2.0.0content.txt")); componentResourcesAfterUpdate.append(ComponentResource("componentD", "2.0.0content.txt"));//AutodepenOn componentA,componentB - componentResourcesAfterUpdate.append(ComponentResource("componentE", "2.0.0content.txt"));//ForcedInstall + componentResourcesAfterUpdate.append(ComponentResource("componentE", "1.0.0content.txt"));//ForcedInstall, not updated without user selection componentResourcesAfterUpdate.append(ComponentResource("componentG", "1.0.0content.txt")); deletedComponentResources.clear(); @@ -316,7 +316,7 @@ private slots: << componentResourcesAfterUpdate << (QStringList() << "components.xml" << "installcontent.txt" << "installcontentA.txt" << "installcontentD_update.txt" << "installcontentB_update.txt" - << "installcontentE_update.txt" << "installcontentG.txt") + << "installcontentE.txt" << "installcontentG.txt") << deletedComponentResources; } -- cgit v1.2.3