Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/kis_node_view_color_scheme.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | |||||
144 | 144 | | |||
145 | int KisNodeViewColorScheme::indentation() const | 145 | int KisNodeViewColorScheme::indentation() const | ||
146 | { | 146 | { | ||
147 | return | 147 | return | ||
148 | 2 * thumbnailMargin() + thumbnailSize() + | 148 | 2 * thumbnailMargin() + thumbnailSize() + | ||
149 | border(); | 149 | border(); | ||
150 | } | 150 | } | ||
151 | 151 | | |||
152 | QRect KisNodeViewColorScheme::relVisibilityRect() const | ||||
153 | { | ||||
154 | return QRect(0, 0, | ||||
155 | visibilitySize() + 2 * visibilityMargin() + 2 * border(), | ||||
156 | visibilitySize() + 2 * visibilityMargin() + 1 * border()); | ||||
157 | } | ||||
158 | | ||||
152 | QRect KisNodeViewColorScheme::relThumbnailRect() const | 159 | QRect KisNodeViewColorScheme::relThumbnailRect() const | ||
153 | { | 160 | { | ||
154 | return QRect(-indentation(), | 161 | return QRect(0, 0, | ||
155 | border(), | 162 | thumbnailSize() + 2 * thumbnailMargin() + 2 * border(), | ||
156 | thumbnailSize() + 2 * thumbnailMargin(), | 163 | thumbnailSize() + 2 * thumbnailMargin() + 1 * border()); | ||
157 | thumbnailSize() + 2 * thumbnailMargin()); | | |||
158 | } | 164 | } | ||
159 | 165 | | |||
160 | QRect KisNodeViewColorScheme::relDecorationRect() const | 166 | QRect KisNodeViewColorScheme::relDecorationRect() const | ||
161 | { | 167 | { | ||
162 | return QRect(border() + decorationMargin(), | 168 | return QRect(0, 0, | ||
163 | border() + decorationMargin(), | 169 | decorationSize() + 2 * decorationMargin() + 2 * border(), | ||
164 | decorationSize(), | 170 | decorationSize() + 2 * decorationMargin() + 1 * border()); | ||
165 | decorationSize()); | | |||
166 | } | 171 | } | ||
167 | 172 | | |||
168 | QRect KisNodeViewColorScheme::relExpandButtonRect() const | 173 | QRect KisNodeViewColorScheme::relExpandButtonRect() const | ||
169 | { | 174 | { | ||
170 | const int newY = rowHeight() - decorationMargin() - decorationSize(); | 175 | const int newY = rowHeight() - decorationMargin() - decorationSize(); | ||
171 | QRect rc = relDecorationRect(); | 176 | QRect rc = relDecorationRect(); | ||
172 | rc.moveTop(newY); | 177 | rc.moveTop(newY); | ||
173 | return rc; | 178 | return rc; | ||
Show All 21 Lines |