forked from qt-creator/qt-creator
QmlDesigner.StatesEditor: Shorter button names
This commit is contained in:
@@ -315,7 +315,7 @@ Rectangle {
|
|||||||
id: addStateButton
|
id: addStateButton
|
||||||
color: "#4f4f4f"
|
color: "#4f4f4f"
|
||||||
width: addStateText.width
|
width: addStateText.width
|
||||||
height: addStateText.height+1
|
height: addStateText.height+3
|
||||||
anchors.left: listView.left
|
anchors.left: listView.left
|
||||||
anchors.bottom: root.bottom
|
anchors.bottom: root.bottom
|
||||||
|
|
||||||
@@ -359,9 +359,10 @@ Rectangle {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: addStateText
|
id: addStateText
|
||||||
text: " Duplicate State "
|
text: " Clone "
|
||||||
color: "#cfcfcf"
|
color: "#cfcfcf"
|
||||||
font.pixelSize:12
|
font.pixelSize:10
|
||||||
|
y:1
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -386,7 +387,7 @@ Rectangle {
|
|||||||
border.color: "black"
|
border.color: "black"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
width: renameStateText.width
|
width: renameStateText.width
|
||||||
height: renameStateText.height+1
|
height: renameStateText.height+3
|
||||||
anchors.left: addStateButton.right
|
anchors.left: addStateButton.right
|
||||||
anchors.bottom: root.bottom
|
anchors.bottom: root.bottom
|
||||||
|
|
||||||
@@ -431,9 +432,10 @@ Rectangle {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: renameStateText
|
id: renameStateText
|
||||||
text: " Rename State "
|
text: " Rename "
|
||||||
color: "#cfcfcf"
|
color: "#cfcfcf"
|
||||||
font.pixelSize:12
|
font.pixelSize:10
|
||||||
|
y:1
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -451,7 +453,7 @@ Rectangle {
|
|||||||
border.color: "black"
|
border.color: "black"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
width: removeStateText.width
|
width: removeStateText.width
|
||||||
height: removeStateText.height+1
|
height: removeStateText.height+3
|
||||||
anchors.left: renameStateButton.right
|
anchors.left: renameStateButton.right
|
||||||
anchors.bottom: root.bottom
|
anchors.bottom: root.bottom
|
||||||
|
|
||||||
@@ -496,9 +498,10 @@ Rectangle {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: removeStateText
|
id: removeStateText
|
||||||
text: " Erase State "
|
text: " Erase "
|
||||||
color: "#cfcfcf"
|
color: "#cfcfcf"
|
||||||
font.pixelSize:12
|
font.pixelSize:10
|
||||||
|
y:1
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -514,7 +517,6 @@ Rectangle {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: horizontalScrollbar
|
id: horizontalScrollbar
|
||||||
// Current listView implementation sometimes has negative width or contentWidth
|
|
||||||
property int viewPosition: 0;
|
property int viewPosition: 0;
|
||||||
property int viewLength: ( listView.width>=0 ? listView.width : 0 );
|
property int viewLength: ( listView.width>=0 ? listView.width : 0 );
|
||||||
property int totalLength: ( listView.contentWidth>=0 ? listView.contentWidth : 0 );
|
property int totalLength: ( listView.contentWidth>=0 ? listView.contentWidth : 0 );
|
||||||
|
|||||||
Reference in New Issue
Block a user