Changeset View
Changeset View
Standalone View
Standalone View
utils.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | |||||
106 | }; | 106 | }; | ||
107 | Q_DECLARE_FLAGS(StrutAreas, StrutArea) | 107 | Q_DECLARE_FLAGS(StrutAreas, StrutArea) | ||
108 | 108 | | |||
109 | class StrutRect : public QRect | 109 | class StrutRect : public QRect | ||
110 | { | 110 | { | ||
111 | public: | 111 | public: | ||
112 | explicit StrutRect(QRect rect = QRect(), StrutArea area = StrutAreaInvalid); | 112 | explicit StrutRect(QRect rect = QRect(), StrutArea area = StrutAreaInvalid); | ||
113 | StrutRect(const StrutRect& other); | 113 | StrutRect(const StrutRect& other); | ||
114 | StrutRect &operator=(const StrutRect& other); | ||||
114 | inline StrutArea area() const { | 115 | inline StrutArea area() const { | ||
115 | return m_area; | 116 | return m_area; | ||
116 | } | 117 | } | ||
117 | private: | 118 | private: | ||
118 | StrutArea m_area; | 119 | StrutArea m_area; | ||
119 | }; | 120 | }; | ||
120 | typedef QVector<StrutRect> StrutRects; | 121 | typedef QVector<StrutRect> StrutRects; | ||
121 | 122 | | |||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |