forked from qt-creator/qt-creator
QmlDesigner: Update Tooltips for Connections, Bindings and Properties
This patch update tooltip texts for the fields within the Connections, Bindings and Properties sections of the Connections view. Fixes: QDS-10626 Change-Id: Iaf05aa8cdced051a3654ef0590cdbb36347625b6 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Pranta Ghosh Dastider
parent
47ce3beecf
commit
d1d23b09e8
@@ -25,13 +25,13 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("From")
|
text: qsTr("From")
|
||||||
tooltip: qsTr("The Property to assign from.")
|
tooltip: qsTr("Sets the component and its property from which the value is copied.")
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("To")
|
text: qsTr("To")
|
||||||
tooltip: qsTr("The Property to assign to.")
|
tooltip: qsTr("Sets the property of the selected component to which the copied value is assigned.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ ListView {
|
|||||||
|
|
||||||
HelperWidgets.ToolTipArea {
|
HelperWidgets.ToolTipArea {
|
||||||
id: toolTipArea
|
id: toolTipArea
|
||||||
tooltip: qsTr("This is a test.")
|
tooltip: qsTr("Removes the binding.")
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (itemDelegate.ListView.isCurrentItem)
|
if (itemDelegate.ListView.isCurrentItem)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ PopupDialog {
|
|||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
HelperWidgets.ToolTipArea {
|
HelperWidgets.ToolTipArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
tooltip: qsTr("Choose the target for the signal.")
|
tooltip: qsTr("Sets the Component that is connected to a <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Signal")
|
text: qsTr("Signal")
|
||||||
tooltip: qsTr("The name of the signal.")
|
tooltip: qsTr("Sets an interaction method that connects to the <b>Target</b> component.")
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Action")
|
text: qsTr("Action")
|
||||||
tooltip: qsTr("The type of the action.")
|
tooltip: qsTr("Sets an action that is associated with the selected <b>Target</b> component's <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,6 +115,7 @@ Column {
|
|||||||
style: StudioTheme.Values.connectionPopupButtonStyle
|
style: StudioTheme.Values.connectionPopupButtonStyle
|
||||||
width: 160
|
width: 160
|
||||||
buttonIcon: qsTr("Add Condition")
|
buttonIcon: qsTr("Add Condition")
|
||||||
|
tooltip: qsTr("Sets a logical condition for the selected <b>Signal</b>. It works with the properties of the <b>Target</b> component.")
|
||||||
iconSize: StudioTheme.Values.baseFontSize
|
iconSize: StudioTheme.Values.baseFontSize
|
||||||
iconFont: StudioTheme.Constants.font
|
iconFont: StudioTheme.Constants.font
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
@@ -127,6 +128,7 @@ Column {
|
|||||||
style: StudioTheme.Values.connectionPopupButtonStyle
|
style: StudioTheme.Values.connectionPopupButtonStyle
|
||||||
width: 160
|
width: 160
|
||||||
buttonIcon: qsTr("Remove Condition")
|
buttonIcon: qsTr("Remove Condition")
|
||||||
|
tooltip: qsTr("Removes the logical condition for the <b>Target</b> component.")
|
||||||
iconSize: StudioTheme.Values.baseFontSize
|
iconSize: StudioTheme.Values.baseFontSize
|
||||||
iconFont: StudioTheme.Constants.font
|
iconFont: StudioTheme.Constants.font
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
@@ -177,6 +179,7 @@ Column {
|
|||||||
style: StudioTheme.Values.connectionPopupButtonStyle
|
style: StudioTheme.Values.connectionPopupButtonStyle
|
||||||
width: 160
|
width: 160
|
||||||
buttonIcon: qsTr("Add Else Statement")
|
buttonIcon: qsTr("Add Else Statement")
|
||||||
|
tooltip: qsTr("Sets an alternate condition for the previously defined logical condition.")
|
||||||
iconSize: StudioTheme.Values.baseFontSize
|
iconSize: StudioTheme.Values.baseFontSize
|
||||||
iconFont: StudioTheme.Constants.font
|
iconFont: StudioTheme.Constants.font
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
@@ -190,6 +193,7 @@ Column {
|
|||||||
style: StudioTheme.Values.connectionPopupButtonStyle
|
style: StudioTheme.Values.connectionPopupButtonStyle
|
||||||
width: 160
|
width: 160
|
||||||
buttonIcon: qsTr("Remove Else Statement")
|
buttonIcon: qsTr("Remove Else Statement")
|
||||||
|
tooltip: qsTr("Removes the alternate logical condition for the previously defined logical condition.")
|
||||||
iconSize: StudioTheme.Values.baseFontSize
|
iconSize: StudioTheme.Values.baseFontSize
|
||||||
iconFont: StudioTheme.Constants.font
|
iconFont: StudioTheme.Constants.font
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
@@ -237,6 +241,22 @@ Column {
|
|||||||
horizontalAlignment: code.lineCount === 1 ? Text.AlignHCenter : Text.AlignLeft
|
horizontalAlignment: code.lineCount === 1 ? Text.AlignHCenter : Text.AlignLeft
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
HelperWidgets.AbstractButton {
|
||||||
|
id: editorButton
|
||||||
|
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.margins: 4
|
||||||
|
|
||||||
|
style: StudioTheme.Values.viewBarButtonStyle
|
||||||
|
buttonIcon: StudioTheme.Constants.edit_medium
|
||||||
|
tooltip: qsTr("Write the conditions for the components and the signals manually.")
|
||||||
|
onClicked: {
|
||||||
|
expressionDialogLoader.show()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ ListView {
|
|||||||
|
|
||||||
HelperWidgets.ToolTipArea {
|
HelperWidgets.ToolTipArea {
|
||||||
id: toolTipArea
|
id: toolTipArea
|
||||||
tooltip: qsTr("This is a test.")
|
tooltip: qsTr("Removes the connection.")
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (itemDelegate.ListView.isCurrentItem)
|
if (itemDelegate.ListView.isCurrentItem)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Column {
|
|||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
text: qsTr("Type")
|
text: qsTr("Type")
|
||||||
tooltip: qsTr("The type of the property")
|
tooltip: qsTr("Sets the category of the <b>Local Custom Property</b>.")
|
||||||
}
|
}
|
||||||
StudioControls.TopLevelComboBox {
|
StudioControls.TopLevelComboBox {
|
||||||
id: type
|
id: type
|
||||||
@@ -41,13 +41,13 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Name")
|
text: qsTr("Name")
|
||||||
tooltip: qsTr("The name of the property.")
|
tooltip: qsTr("Sets a name for the <b>Local Custom Property</b>.")
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Value")
|
text: qsTr("Value")
|
||||||
tooltip: qsTr("The value of the property.")
|
tooltip: qsTr("Sets a valid <b>Local Custom Property</b> value.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ ListView {
|
|||||||
|
|
||||||
HelperWidgets.ToolTipArea {
|
HelperWidgets.ToolTipArea {
|
||||||
id: toolTipArea
|
id: toolTipArea
|
||||||
tooltip: qsTr("This is a test.")
|
tooltip: qsTr("Removes the property.")
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (itemDelegate.ListView.isCurrentItem)
|
if (itemDelegate.ListView.isCurrentItem)
|
||||||
|
|||||||
@@ -28,13 +28,13 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Item")
|
text: qsTr("Item")
|
||||||
tooltip: qsTr("The target item of the function.")
|
tooltip: qsTr("Sets the component that is affected by the action of the <b>Target</b> component's <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Method")
|
text: qsTr("Method")
|
||||||
tooltip: qsTr("The name of the function.")
|
tooltip: qsTr("Sets the item component's method that is affected by the <b>Target</b> component's <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,12 +74,12 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("From")
|
text: qsTr("From")
|
||||||
tooltip: qsTr("The Property to assign from.")
|
tooltip: qsTr("Sets the component and its property from which the value is copied when the <b>Target</b> component initiates the <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("To")
|
text: qsTr("To")
|
||||||
tooltip: qsTr("The Property to assign to.")
|
tooltip: qsTr("Sets the component and its property to which the copied value is assigned when the <b>Target</b> component initiates the <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,13 +151,13 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("State Group")
|
text: qsTr("State Group")
|
||||||
tooltip: qsTr("The State Group.")
|
tooltip: qsTr("Sets a <b>State Group</b> that is accessed when the <b>Target</b> component initiates the <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("State")
|
text: qsTr("State")
|
||||||
tooltip: qsTr("The State .")
|
tooltip: qsTr("Sets a <b>State</b> within the assigned <b>State Group</b> that is accessed when the <b>Target</b> component initiates the <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,13 +197,13 @@ Column {
|
|||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Item")
|
text: qsTr("Item")
|
||||||
tooltip: qsTr("The Item.")
|
tooltip: qsTr("Sets the component that is affected by the action of the <b>Target</b> component's <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
|
|
||||||
PopupLabel {
|
PopupLabel {
|
||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
text: qsTr("Property")
|
text: qsTr("Property")
|
||||||
tooltip: qsTr("The property of the item.")
|
tooltip: qsTr("Sets the property of the component that is affected by the action of the <b>Target</b> component's <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,6 +240,7 @@ Column {
|
|||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
visible: root.actionType === ConnectionModelStatementDelegate.SetProperty
|
visible: root.actionType === ConnectionModelStatementDelegate.SetProperty
|
||||||
text: qsTr("Value")
|
text: qsTr("Value")
|
||||||
|
tooltip: qsTr("Sets the value of the property of the component that is affected by the action of the <b>Target</b> component's <b>Signal</b>.")
|
||||||
}
|
}
|
||||||
|
|
||||||
StudioControls.TextField {
|
StudioControls.TextField {
|
||||||
@@ -260,7 +261,7 @@ Column {
|
|||||||
width: root.columnWidth
|
width: root.columnWidth
|
||||||
visible: root.actionType === ConnectionModelStatementDelegate.PrintMessage
|
visible: root.actionType === ConnectionModelStatementDelegate.PrintMessage
|
||||||
text: qsTr("Message")
|
text: qsTr("Message")
|
||||||
tooltip: qsTr("The message that is printed.")
|
tooltip: qsTr("Sets a text that is printed when the <b>Signal</b> of the <b>Target</b> component initiates.")
|
||||||
}
|
}
|
||||||
|
|
||||||
StudioControls.TextField {
|
StudioControls.TextField {
|
||||||
|
|||||||
Reference in New Issue
Block a user