diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml index cb68524..f58e496 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectLists.qml @@ -47,7 +47,7 @@ ScrollView { ListView { id: objectsListView model: Object.keys(Objects.types) - width: implicitWidth //objectListList.width - (implicitHeight > objectListList.parent.height ? 20 : 0) + //width: implicitWidth //objectListList.width - (implicitHeight > objectListList.parent.height ? 20 : 0) implicitHeight: contentItem.childrenRect.height + footer.height + 10 delegate: ListView { diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml index 13cb9df..617b67f 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/ObjectRow.qml @@ -83,10 +83,11 @@ Item { anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left visible: LatexJS.enabled - property var ltxInfo: visible ? Latex.render(obj.getLatexLabel(), 2*parent.font.pixelSize, parent.color).split(",") : ["","0","0"] + property double depth: 2 + property var ltxInfo: visible ? Latex.render(obj.getLatexLabel(), depth*parent.font.pixelSize, parent.color).split(",") : ["","0","0"] source: visible ? ltxInfo[0] : "" - width: parseInt(ltxInfo[1])/2 - height: parseInt(ltxInfo[2])/2 + width: parseInt(ltxInfo[1])/depth + height: parseInt(ltxInfo[2])/depth } MouseArea { diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml index d1b7b58..518aca0 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Setting/Icon.qml @@ -48,6 +48,7 @@ Item { width: parent.width //smooth: true visible: false + sourceSize.width: width*2 sourceSize.height: sourceSize.width } ColorOverlay {