Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/tasktools.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | |||||
96 | /** | 96 | /** | ||
97 | * Determines whether tasks model entries belong to the same app. | 97 | * Determines whether tasks model entries belong to the same app. | ||
98 | * | 98 | * | ||
99 | * @param a The first model index. | 99 | * @param a The first model index. | ||
100 | * @param b The second model index. | 100 | * @param b The second model index. | ||
101 | * @returns @c true if the model entries belong to the same app. | 101 | * @returns @c true if the model entries belong to the same app. | ||
102 | **/ | 102 | **/ | ||
103 | TASKMANAGER_EXPORT bool appsMatch(const QModelIndex &a, const QModelIndex &b); | 103 | TASKMANAGER_EXPORT bool appsMatch(const QModelIndex &a, const QModelIndex &b); | ||
104 | | ||||
105 | /** | ||||
106 | * Given global coordinates, returns the geometry of the screen they are | ||||
107 | * on, or the geometry of the screen they are closest to. | ||||
108 | * | ||||
109 | * @param pos Coordinates in global space. | ||||
110 | * @return The geometry of the screen containing pos or closest to pos. | ||||
111 | */ | ||||
112 | TASKMANAGER_EXPORT QRect screenGeometry(const QPoint &pos); | ||||
104 | } | 113 | } | ||
105 | 114 | | |||
106 | #endif | 115 | #endif |