Files
qt-creator/share/qtcreator/qmldesigner/textureEditorQmlSource/TextureEditorToolBar.qml
Henning Gruendl 316e48fc50 QmlDesigner: Remove version number from imports
Task-number: QDS-11177
Change-Id: I94a537af1d55d503aa04dd79c6194ef1a0647e83
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2024-01-17 08:01:32 +00:00

57 lines
2.1 KiB
QML

// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import QtQuick
import HelperWidgets as HelperWidgets
import StudioTheme as StudioTheme
import TextureToolBarAction
Rectangle {
id: root
color: StudioTheme.Values.themeToolbarBackground
height: StudioTheme.Values.toolbarHeight
width: row.width
signal toolBarAction(int action)
Row {
id: row
spacing: StudioTheme.Values.toolbarSpacing
anchors.verticalCenter: parent.verticalCenter
leftPadding: 6
HelperWidgets.AbstractButton {
style: StudioTheme.Values.viewBarButtonStyle
buttonIcon: StudioTheme.Constants.apply_medium
enabled: hasTexture && hasSingleModelSelection && hasQuick3DImport && hasMaterialLibrary
tooltip: qsTr("Apply texture to selected model's material.")
onClicked: root.toolBarAction(ToolBarAction.ApplyToSelected)
}
HelperWidgets.AbstractButton {
style: StudioTheme.Values.viewBarButtonStyle
buttonIcon: StudioTheme.Constants.create_medium
enabled: hasQuick3DImport && hasMaterialLibrary
tooltip: qsTr("Create new texture.")
onClicked: root.toolBarAction(ToolBarAction.AddNewTexture)
}
HelperWidgets.AbstractButton {
style: StudioTheme.Values.viewBarButtonStyle
buttonIcon: StudioTheme.Constants.delete_medium
enabled: hasTexture && hasQuick3DImport && hasMaterialLibrary
tooltip: qsTr("Delete current texture.")
onClicked: root.toolBarAction(ToolBarAction.DeleteCurrentTexture)
}
HelperWidgets.AbstractButton {
style: StudioTheme.Values.viewBarButtonStyle
buttonIcon: StudioTheme.Constants.materialBrowser_medium
enabled: hasTexture && hasQuick3DImport && hasMaterialLibrary
tooltip: qsTr("Open material browser.")
onClicked: root.toolBarAction(ToolBarAction.OpenMaterialBrowser)
}
}
}