Changeset View
Changeset View
Standalone View
Standalone View
shell/strutmanager.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
53 | foreach (service, m_availableScreenRects) { | 53 | foreach (service, m_availableScreenRects) { | ||
54 | if (!service.value(id).isNull()) { | 54 | if (!service.value(id).isNull()) { | ||
55 | r &= service[id]; | 55 | r &= service[id]; | ||
56 | } | 56 | } | ||
57 | } | 57 | } | ||
58 | return r; | 58 | return r; | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | QRect StrutManager::availableScreenRect(const QString &screenName) const | ||||
62 | { | ||||
63 | return availableScreenRect(m_plasmashellCorona->screenPool()->id(screenName)); | ||||
64 | } | ||||
65 | | ||||
61 | QRegion StrutManager::availableScreenRegion(int id) const | 66 | QRegion StrutManager::availableScreenRegion(int id) const | ||
62 | { | 67 | { | ||
63 | QRegion r = m_plasmashellCorona->_availableScreenRegion(id); | 68 | QRegion r = m_plasmashellCorona->_availableScreenRegion(id); | ||
64 | QHash<int, QRegion> service; | 69 | QHash<int, QRegion> service; | ||
65 | foreach (service, m_availableScreenRegions) { | 70 | foreach (service, m_availableScreenRegions) { | ||
66 | if (!service.value(id).isNull()) { | 71 | if (!service.value(id).isNull()) { | ||
67 | r &= service[id]; | 72 | r &= service[id]; | ||
68 | } | 73 | } | ||
Show All 36 Lines |