summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/uninstallercalculator.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2022-11-03 18:08:15 +0200
committerKatja Marttila <katja.marttila@qt.io>2022-11-04 10:29:22 +0200
commitb8877d4c0e09445f8b88797cc7da1f6a38764a41 (patch)
treedf92d6de5aa9c70d8211d20badca008ddfef5daf /src/libs/installer/uninstallercalculator.h
parent83b669586bd24fab082720876ff8aea75264ec36 (diff)
Fix virtual component uninstallation
Virtual components were still wrongly calculated for uninstall depending on which order the tree was clicked and whether the component had dependencies to already installed components or components about to be installed. Change-Id: I624fd1139d15d5e16c81365064dcea2392dc13b1 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/uninstallercalculator.h')
-rw-r--r--src/libs/installer/uninstallercalculator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/installer/uninstallercalculator.h b/src/libs/installer/uninstallercalculator.h
index 76e32c6a6..57f2f926a 100644
--- a/src/libs/installer/uninstallercalculator.h
+++ b/src/libs/installer/uninstallercalculator.h
@@ -68,10 +68,11 @@ public:
QString uninstallReason(Component *component) const;
UninstallerCalculator::UninstallReasonType uninstallReasonType(Component *c) const;
QString uninstallReasonReferencedComponent(Component *component) const;
+ bool isRequiredVirtualPackage(Component *component);
+ void appendVirtualComponentsToUninstall(const bool reverse);
private:
void appendComponentToUninstall(Component *component, const bool reverse);
- void appendVirtualComponentsToUninstall(const bool reverse);
QList<Component *> m_installedComponents;
QSet<Component *> m_componentsToUninstall;