Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinscreenedges/kwinscreenedge.cpp
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 162 | case ElectricBottom: | |||
---|---|---|---|---|---|
163 | return Monitor::Bottom; | 163 | return Monitor::Bottom; | ||
164 | case ElectricBottomLeft: | 164 | case ElectricBottomLeft: | ||
165 | return Monitor::BottomLeft; | 165 | return Monitor::BottomLeft; | ||
166 | case ElectricLeft: | 166 | case ElectricLeft: | ||
167 | return Monitor::Left; | 167 | return Monitor::Left; | ||
168 | case ElectricTopLeft: | 168 | case ElectricTopLeft: | ||
169 | return Monitor::TopLeft; | 169 | return Monitor::TopLeft; | ||
170 | default: // ELECTRIC_COUNT and ElectricNone | 170 | default: // ELECTRIC_COUNT and ElectricNone | ||
171 | Q_ASSERT(false); | 171 | return Monitor::None; | ||
172 | } | 172 | } | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | ElectricBorder KWinScreenEdge::monitorEdgeToElectricBorder(int edge) | 175 | ElectricBorder KWinScreenEdge::monitorEdgeToElectricBorder(int edge) | ||
176 | { | 176 | { | ||
177 | const Monitor::Edges monitorEdge = static_cast<Monitor::Edges>(edge); | 177 | const Monitor::Edges monitorEdge = static_cast<Monitor::Edges>(edge); | ||
178 | switch (monitorEdge) { | 178 | switch (monitorEdge) { | ||
179 | case Monitor::Left: | 179 | case Monitor::Left: | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |