diff options
author | kh1 <karsten.heimrich@nokia.com> | 2012-09-28 10:50:46 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2012-10-01 12:12:51 +0200 |
commit | a1b2010ce87bd878f78acf01a5677875f34254ef (patch) | |
tree | 7200733299d690d2fea19ae7776b7c0270e7c4a1 /src/libs/installer/component.h | |
parent | c266f5bdd600c07924e4b2ceca45c4ce2aae3ff2 (diff) |
Sort the child components.
The higher the value, the higher up in the list the component
is ordered. Currently we handled it the opposite, thus we had
to assign every component a value to get sorting work.
Change-Id: I6003cb95b69ba4160eb822565edf120dd0f0543f
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/component.h')
-rw-r--r-- | src/libs/installer/component.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/installer/component.h b/src/libs/installer/component.h index 6ea05f397..f99ee8cd7 100644 --- a/src/libs/installer/component.h +++ b/src/libs/installer/component.h @@ -88,6 +88,14 @@ public: } }; + struct SortingPriorityGreaterThan + { + bool operator() (const Component *lhs, const Component *rhs) const + { + return lhs->value(scSortingPriority).toInt() > rhs->value(scSortingPriority).toInt(); + } + }; + void loadDataFromPackage(const Package &package); void loadDataFromPackage(const LocalPackage &package); |