Browse Source

fix #1472

cl-refactor
Ali Mashatan 10 years ago
parent
commit
9d2a23b51e
  1. 27
      mix/qml/Debugger.qml
  2. 2
      mix/qml/StatesComboBox.qml
  3. 33
      mix/qml/TransactionLog.qml

27
mix/qml/Debugger.qml

@ -219,6 +219,33 @@ Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
id: jumpButtons
spacing: 3
StepActionImage
{
id: playAction
enabledStateImg: "qrc:/qml/img/play_button.png"
disableStateImg: "qrc:/qml/img/play_button.png"
onClicked: console.log("play");
width: 30
height: 30
buttonShortcut: "Ctrl+Shift+F8"
buttonTooltip: qsTr("Play")
visible: true
}
StepActionImage
{
id: pauseAction
enabledStateImg: "qrc:/qml/img/pause_button.png"
disableStateImg: "qrc:/qml/img/pause_button.png"
onClicked: console.log("pause");
width: 30
height: 30
buttonShortcut: "Ctrl+Shift+F9"
buttonTooltip: qsTr("Pause")
visible: true
}
StepActionImage
{
id: runBackAction;

2
mix/qml/StatesComboBox.qml

@ -117,7 +117,6 @@ Rectangle {
anchors.margins: 2;
color: statesComboBox.color
ColumnLayout {
spacing: 2
TableView {
@ -156,7 +155,6 @@ Rectangle {
anchors.top: parent.top;
anchors.left: parent.left;
anchors.margins: 5;
}
Image {
id: imageItemid

33
mix/qml/TransactionLog.qml

@ -10,38 +10,6 @@ Item {
property ListModel transactionModel: ListModel{}
property ListModel callModel: ListModel{}
Action {
id: addStateAction
text: "Add State"
shortcut: "Ctrl+Alt+T"
enabled: codeModel.hasContract && !clientModel.running;
onTriggered: projectModel.stateListModel.addState();
}
Action {
id: editStateAction
text: "Edit State"
shortcut: "Ctrl+Alt+T"
enabled: codeModel.hasContract && !clientModel.running && statesCombo.selectedIndex >= 0 && projectModel.stateListModel.count > 0;
onTriggered: projectModel.stateListModel.editState(statesCombo.selectedIndex);
}
Action {
id: playAndPauseAction
checkable: true;
checked: false;
iconSource: "qrc:/qml/img/play_button.png"
onToggled: {
if (checked)
{
this.iconSource = "qrc:/qml/img/pause_button2x.png"
console.log("play");
}else{
this.iconSource = "qrc:/qml/img/play_button2x.png"
console.log("pause");
}
}
enabled: true
}
ColumnLayout {
anchors.fill: parent
RowLayout {
@ -81,7 +49,6 @@ Item {
{
id: statesCombo
items: projectModel.stateListModel
//onSelectItem: console.log("Combobox Select Item: " + item )
onSelectCreate: projectModel.stateListModel.addState();
onEditItem: projectModel.stateListModel.editState(item)
colorItem: "black"

Loading…
Cancel
Save