diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-11-01 12:26:22 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-11-01 20:18:58 +0000 |
commit | 154c5e32af4d59cd04ac907d3f66cb0807ff14e9 (patch) | |
tree | 5eb940660bc640c09a83cc0a5aeb4cf6127d6531 /src/quicktemplates2/qquicktoolbar.cpp | |
parent | da150839d20a9bfae82b220b3dfe7229d1421e12 (diff) |
Doc: fix review findings for ToolButton
Change-Id: Id427520a390a2a8cb0bb4ac0f66fef5f96e5b39e
Task-number: QTBUG-55904
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicktoolbar.cpp')
-rw-r--r-- | src/quicktemplates2/qquicktoolbar.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/quicktemplates2/qquicktoolbar.cpp b/src/quicktemplates2/qquicktoolbar.cpp index 5a767c73..e6d705ad 100644 --- a/src/quicktemplates2/qquicktoolbar.cpp +++ b/src/quicktemplates2/qquicktoolbar.cpp @@ -69,14 +69,19 @@ QT_BEGIN_NAMESPACE RowLayout { anchors.fill: parent ToolButton { - text: qsTr("\u25C0 %1").arg(Qt.application.name) - enabled: stack.depth > 1 + text: qsTr("‹") onClicked: stack.pop() } - Item { Layout.fillWidth: true } - Switch { - checked: true - text: qsTr("Notifications") + Label { + text: "Title" + elide: Label.ElideRight + horizontalAlignment: Qt.AlignHCenter + verticalAlignment: Qt.AlignVCenter + Layout.fillWidth: true + } + ToolButton { + text: qsTr("⋮") + onClicked: menu.open() } } } |