Changeset View
Changeset View
Standalone View
Standalone View
utils.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | StrutRect::StrutRect(const StrutRect& other) | 66 | StrutRect::StrutRect(const StrutRect& other) | ||
67 | : QRect(other) | 67 | : QRect(other) | ||
68 | , m_area(other.area()) | 68 | , m_area(other.area()) | ||
69 | { | 69 | { | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | StrutRect &StrutRect::operator=(const StrutRect &other) | ||||
73 | { | ||||
74 | if (this != &other) { | ||||
75 | QRect::operator=(other); | ||||
76 | m_area = other.area(); | ||||
77 | } | ||||
78 | return *this; | ||||
79 | } | ||||
80 | | ||||
72 | #endif | 81 | #endif | ||
73 | 82 | | |||
74 | #ifndef KCMRULES | 83 | #ifndef KCMRULES | ||
75 | void updateXTime() | 84 | void updateXTime() | ||
76 | { | 85 | { | ||
77 | kwinApp()->platform()->updateXTime(); | 86 | kwinApp()->platform()->updateXTime(); | ||
78 | } | 87 | } | ||
79 | 88 | | |||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |