pragma Singleton import QtQuick // Shared facts about the drawing, so every window sizes the cat the same way. QtObject { // Cat.qml draws in a 100 x 90 box inside a 120 x 106 window box. The slack // holds the whiskers, the tail and the glyphs that float above the head. readonly property real aspect: 106 / 120 // Chip.qml draws in a 52 x 58 box, large enough to hold the tumbling curl. readonly property real chipAspect: 58 / 52 readonly property var moodNames: ["walking", "running", "sitting", "grooming", "stretching", "sleeping", "loving", "alert", "chasing", "batting", "drinking"] function mood(value) { return moodNames[value] !== undefined ? moodNames[value] : "sitting" } }