diff options
author | Katja Marttila <katja.marttila@qt.io> | 2022-03-25 15:38:50 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2022-04-28 15:18:34 +0300 |
commit | a28cf55b5a5007c0dd952b3012c076d9da329f0f (patch) | |
tree | aba86d92da394969acfcf2eb6d7b7578c9432c36 /src/libs/installer/packagemanagercore.h | |
parent | 23ec1e91f4e0c567f5953de149b2ab3496490e87 (diff) |
Speed up component selection in component selection pages
If a lot of components are installed, maintenancetool was slow to
select/unselect a single component. This was caused because the whole
tree's components were recalculated. Fixed so that only the
selected/unselected components and their dependencies and
autodependencies are recalculated instead of whole tree.
This change speeds up clicking tree item from zero to 90 percent,
depending on how much components are already installed. The more
components are installed as autodependency, the slower it gets to
select the items.
Task-number: QTIFW-2522
Change-Id: I5e824aed8787fd7ecdce72b15a1b13848f0a3923
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore.h')
-rw-r--r-- | src/libs/installer/packagemanagercore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagercore.h b/src/libs/installer/packagemanagercore.h index 7cce3f7be..bebfc191d 100644 --- a/src/libs/installer/packagemanagercore.h +++ b/src/libs/installer/packagemanagercore.h @@ -352,6 +352,7 @@ public Q_SLOTS: void setCompleteUninstallation(bool complete); void cancelMetaInfoJob(); void componentsToInstallNeedsRecalculation(); + void calculateUserSelectedComponentsToInstall(const QList<QModelIndex> &indexes); void clearComponentsToInstallCalculated(); Q_SIGNALS: @@ -437,6 +438,7 @@ private: PackageManagerCorePrivate *const d; friend class PackageManagerCorePrivate; QHash<QString, QString> m_fileDialogAutomaticAnswers; + QHash<QString, QStringList> m_localVirtualWithDependants; private: // remove once we deprecate isSelected, setSelected etc... |