forked from qt-creator/qt-creator
EffectComposer: Add help button to the code editor
Task-number: QDS-14251 Change-Id: Ifc09c4e6eca75a2db14c809ccea87c0e197254cb Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -6,6 +6,7 @@ import QtQuick.Layouts
|
|||||||
import StudioControls as StudioControls
|
import StudioControls as StudioControls
|
||||||
import StudioTheme as StudioTheme
|
import StudioTheme as StudioTheme
|
||||||
import ModelModules as ModelModules
|
import ModelModules as ModelModules
|
||||||
|
import HelperWidgets as HelperWidgets
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
@@ -24,6 +25,7 @@ Rectangle {
|
|||||||
|
|
||||||
StudioControls.TopLevelComboBox {
|
StudioControls.TopLevelComboBox {
|
||||||
id: nodesComboBox
|
id: nodesComboBox
|
||||||
|
|
||||||
style: StudioTheme.Values.toolbarStyle
|
style: StudioTheme.Values.toolbarStyle
|
||||||
Layout.preferredWidth: nodeNamesWidthCalculator.maxWidth
|
Layout.preferredWidth: nodeNamesWidthCalculator.maxWidth
|
||||||
+ nodesComboBox.indicator.width
|
+ nodesComboBox.indicator.width
|
||||||
@@ -31,9 +33,11 @@ Rectangle {
|
|||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
model: editableCompositionsModel
|
model: editableCompositionsModel
|
||||||
textRole: "display"
|
textRole: "display"
|
||||||
|
|
||||||
Binding on currentIndex {
|
Binding on currentIndex {
|
||||||
value: editableCompositionsModel.selectedIndex
|
value: editableCompositionsModel.selectedIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
onActivated: (idx) => {
|
onActivated: (idx) => {
|
||||||
editableCompositionsModel.openCodeEditor(idx)
|
editableCompositionsModel.openCodeEditor(idx)
|
||||||
}
|
}
|
||||||
@@ -58,6 +62,17 @@ Rectangle {
|
|||||||
style: StudioTheme.Values.viewBarControlStyle
|
style: StudioTheme.Values.viewBarControlStyle
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HelperWidgets.AbstractButton {
|
||||||
|
id: openHelpButton
|
||||||
|
|
||||||
|
objectName: "btnEffectComposerHelp"
|
||||||
|
style: StudioTheme.Values.viewBarButtonStyle
|
||||||
|
buttonIcon: StudioTheme.Constants.help
|
||||||
|
tooltip: qsTr("Open Effect Composer Help.")
|
||||||
|
|
||||||
|
onClicked: Qt.openUrlExternally("https://doc.qt.io/qtdesignstudio/qtquick-effect-composer-view.html")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CodeEditorUniformsView {
|
CodeEditorUniformsView {
|
||||||
|
Reference in New Issue
Block a user