diff --git a/examples/TaoQuickShow/Qml/Pane/LeftPane.qml b/examples/TaoQuickShow/Qml/Pane/LeftPane.qml index 3ff93b8..ca3ad12 100644 --- a/examples/TaoQuickShow/Qml/Pane/LeftPane.qml +++ b/examples/TaoQuickShow/Qml/Pane/LeftPane.qml @@ -2,6 +2,7 @@ import QtQuick 2.9 import QtQuick.Controls 2.2 import TaoQuick 1.0 import "../Biz" + Item { id: leftPaneItem signal loadContent(string path) @@ -97,10 +98,12 @@ Item { color: ListView.isCurrentItem ? CusConfig.controlBorderColor_pressed : "transparent" opacity: 0.8 CusTextButton { + id: btn anchors { left: parent.left leftMargin: 20 } + width: parent.width text: qsTr(model.name) + trans.transString backgroundColor: "transparent" borderColor: "transparent" @@ -108,6 +111,16 @@ Item { listView.currentIndex = index loadContent(model.source) } + contentItem: Item { + width: btn.width + height: btn.height + BasicText { + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignLeft + text: btn.text + color: btn.textColor + } + } } } }