Changeset View
Changeset View
Standalone View
Standalone View
tabbox/clientmodel.cpp
Show All 19 Lines | |||||
20 | 20 | | |||
21 | // own | 21 | // own | ||
22 | #include "clientmodel.h" | 22 | #include "clientmodel.h" | ||
23 | // tabbox | 23 | // tabbox | ||
24 | #include "tabboxconfig.h" | 24 | #include "tabboxconfig.h" | ||
25 | #include "tabboxhandler.h" | 25 | #include "tabboxhandler.h" | ||
26 | // Qt | 26 | // Qt | ||
27 | #include <QIcon> | 27 | #include <QIcon> | ||
28 | #include <QUuid> | ||||
28 | // TODO: remove with Qt 5, only for HTML escaping the caption | 29 | // TODO: remove with Qt 5, only for HTML escaping the caption | ||
29 | #include <QTextDocument> | 30 | #include <QTextDocument> | ||
30 | #include <QTextStream> | 31 | #include <QTextStream> | ||
31 | // other | 32 | // other | ||
32 | #include <math.h> | 33 | #include <math.h> | ||
33 | 34 | | |||
34 | namespace KWin | 35 | namespace KWin | ||
35 | { | 36 | { | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 75 | case CaptionRole: { | |||
79 | return caption; | 80 | return caption; | ||
80 | } | 81 | } | ||
81 | case ClientRole: | 82 | case ClientRole: | ||
82 | return qVariantFromValue((void*)client.data()); | 83 | return qVariantFromValue((void*)client.data()); | ||
83 | case DesktopNameRole: { | 84 | case DesktopNameRole: { | ||
84 | return tabBox->desktopName(client.data()); | 85 | return tabBox->desktopName(client.data()); | ||
85 | } | 86 | } | ||
86 | case WIdRole: | 87 | case WIdRole: | ||
87 | return qulonglong(client->window()); | 88 | return client->internalId(); | ||
88 | case MinimizedRole: | 89 | case MinimizedRole: | ||
89 | return client->isMinimized(); | 90 | return client->isMinimized(); | ||
90 | case CloseableRole: | 91 | case CloseableRole: | ||
91 | //clients that claim to be first are not closeable | 92 | //clients that claim to be first are not closeable | ||
92 | return client->isCloseable() && !client->isFirstInTabBox(); | 93 | return client->isCloseable() && !client->isFirstInTabBox(); | ||
93 | case IconRole: | 94 | case IconRole: | ||
94 | return client->icon(); | 95 | return client->icon(); | ||
95 | default: | 96 | default: | ||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |