diff options
Diffstat (limited to 'src/quickcontrols/doc/snippets/qtquickcontrols-toolbar-custom.qml')
-rw-r--r-- | src/quickcontrols/doc/snippets/qtquickcontrols-toolbar-custom.qml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/quickcontrols/doc/snippets/qtquickcontrols-toolbar-custom.qml b/src/quickcontrols/doc/snippets/qtquickcontrols-toolbar-custom.qml new file mode 100644 index 0000000000..e4ea2c8b04 --- /dev/null +++ b/src/quickcontrols/doc/snippets/qtquickcontrols-toolbar-custom.qml @@ -0,0 +1,35 @@ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls + +//! [file] +ToolBar { + id: control + + background: Rectangle { + implicitHeight: 40 + color: "#eeeeee" + + Rectangle { + width: parent.width + height: 1 + anchors.bottom: parent.bottom + color: "transparent" + border.color: "#21be2b" + } + } + + RowLayout { + anchors.fill: parent + ToolButton { + text: qsTr("Undo") + } + ToolButton { + text: qsTr("Redo") + } + } +} +//! [file] |