Changeset View
Changeset View
Standalone View
Standalone View
liblegacytaskmanager/strategies/alphasortingstrategy.h
- This file was moved from libtaskmanager/strategies/alphasortingstrategy.h.
Show All 22 Lines | |||||
23 | 23 | | |||
24 | #ifndef ALPHASORTINGSTRATEGY_H | 24 | #ifndef ALPHASORTINGSTRATEGY_H | ||
25 | #define ALPHASORTINGSTRATEGY_H | 25 | #define ALPHASORTINGSTRATEGY_H | ||
26 | 26 | | |||
27 | #include <QtCore/QObject> | 27 | #include <QtCore/QObject> | ||
28 | 28 | | |||
29 | #include <abstractsortingstrategy.h> | 29 | #include <abstractsortingstrategy.h> | ||
30 | 30 | | |||
31 | namespace TaskManager | 31 | namespace LegacyTaskManager | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | /** Sorts the tasks alphabetically by programname found in Task::classClass()*/ | 34 | /** Sorts the tasks alphabetically by programname found in Task::classClass()*/ | ||
35 | class AlphaSortingStrategy : public AbstractSortingStrategy | 35 | class AlphaSortingStrategy : public AbstractSortingStrategy | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | public: | 38 | public: | ||
39 | AlphaSortingStrategy(QObject *parent); | 39 | AlphaSortingStrategy(QObject *parent); | ||
40 | 40 | | |||
41 | private: | 41 | private: | ||
42 | /** Sorts list of items according to strategy*/ | 42 | /** Sorts list of items according to strategy*/ | ||
43 | void sortItems(ItemList&) override; | 43 | void sortItems(ItemList&) override; | ||
44 | }; | 44 | }; | ||
45 | 45 | | |||
46 | } // TaskManager namespace | 46 | } // LegacyTaskManager namespace | ||
47 | #endif | 47 | #endif |