Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/KoInsets.h
Show All 31 Lines | |||||
32 | public: | 32 | public: | ||
33 | /** | 33 | /** | ||
34 | * Constructor. | 34 | * Constructor. | ||
35 | * @param top the inset at the top. | 35 | * @param top the inset at the top. | ||
36 | * @param left the inset at the left | 36 | * @param left the inset at the left | ||
37 | * @param bottom the inset at the bottom | 37 | * @param bottom the inset at the bottom | ||
38 | * @param right the inset at the right | 38 | * @param right the inset at the right | ||
39 | */ | 39 | */ | ||
40 | KoInsets(qreal top, qreal left, qreal bottom, qreal right) { | 40 | KoInsets(qreal top, qreal left, qreal bottom, qreal right) | ||
41 | this->top = top; | 41 | : top(top) | ||
42 | this->left = left; | 42 | , bottom(bottom) | ||
43 | this->bottom = bottom; | 43 | , left(left) | ||
44 | this->right = right; | 44 | , right(right) | ||
45 | { | ||||
45 | } | 46 | } | ||
46 | /** | 47 | /** | ||
47 | * Constructor. | 48 | * Constructor. | ||
48 | * Initializes all values to 0 | 49 | * Initializes all values to 0 | ||
49 | */ | 50 | */ | ||
50 | KoInsets() : top(0.), bottom(0.), left(0.), right(0.) { | 51 | KoInsets() : top(0.), bottom(0.), left(0.), right(0.) { | ||
51 | } | 52 | } | ||
52 | 53 | | |||
Show All 19 Lines |