Changeset View
Changeset View
Standalone View
Standalone View
src/activities/balancebox/Balancebox.qml
Context not available. | |||||
163 | Rectangle { | 163 | Rectangle { | ||
---|---|---|---|---|---|
164 | id: mapWrapper | 164 | id: mapWrapper | ||
165 | 165 | | |||
166 | property double margin: 20 | | |||
167 | property int columns: 0 | 166 | property int columns: 0 | ||
168 | property int rows: 0 | 167 | property int rows: 0 | ||
169 | property double length: Math.min(background.height - | 168 | property double length: Math.min(background.height - | ||
170 | 2*mapWrapper.margin, background.width - 2*mapWrapper.margin); | 169 | 1.2*bar.height, background.width - 1.2*bar.height) | ||
171 | 170 | | |||
172 | color: "#E3DEDB" | 171 | color: "#E3DEDB" | ||
173 | 172 | | |||
174 | width: length | 173 | width: length | ||
175 | height: length | 174 | height: length | ||
176 | 175 | | |||
177 | anchors.horizontalCenter: parent.horizontalCenter | 176 | anchors.horizontalCenter: parent.horizontalCenter | ||
178 | anchors.verticalCenter: parent.verticalCenter | 177 | anchors.verticalCenter: parent.verticalCenter | ||
178 | anchors.top: parent.top | ||||
179 | | ||||
180 | | ||||
181 | | ||||
182 | | ||||
179 | 183 | | |||
180 | transform: [ | 184 | transform: [ | ||
181 | Rotation { | 185 | Rotation { | ||
Context not available. | |||||
219 | anchors.leftMargin: - items.wallSize/2 | 223 | anchors.leftMargin: - items.wallSize/2 | ||
220 | anchors.top: parent.bottom | 224 | anchors.top: parent.bottom | ||
221 | anchors.topMargin: -items.wallSize/2 | 225 | anchors.topMargin: -items.wallSize/2 | ||
226 | | ||||
222 | 227 | | |||
223 | shadow: false | 228 | shadow: false | ||
224 | shadowHorizontalOffset: Math.min(items.tilt.yRotation, items.wallSize) | 229 | shadowHorizontalOffset: Math.min(items.tilt.yRotation, items.wallSize) | ||
Context not available. | |||||
304 | 309 | | |||
305 | pixelsPerMeter: Activity.box2dPpm // default: 32 | 310 | pixelsPerMeter: Activity.box2dPpm // default: 32 | ||
306 | timeStep: Activity.step/1000 // default: 1/60 | 311 | timeStep: Activity.step/1000 // default: 1/60 | ||
312 | | ||||
307 | 313 | | |||
308 | } | 314 | } | ||
309 | 315 | | |||
Context not available. |