1 2 3 4 5 6 7 8 9
import QtQuick 2.4 Item { readonly property bool useHeight: (implicitWidth / implicitHeight) > 1 implicitWidth: useHeight ? 96 : 102 implicitHeight: useHeight ? 90 : 96 }