@@ -35,6 +35,7 @@ InfoPanel {
35
35
36
36
signal editShortcutRequested ()
37
37
signal execPointSelected (int index)
38
+ signal remove ()
38
39
39
40
buttonsPanel: RowLayout {
40
41
id: buttons
@@ -84,37 +85,61 @@ InfoPanel {
84
85
}
85
86
}
86
87
87
-
88
-
89
- FlatButton {
90
- id: mainButton
88
+ RowLayout {
91
89
Layout .alignment : Qt .AlignRight
90
+ spacing: 22
91
+
92
+ FlatButton {
93
+ id: removeButton
94
+
95
+ navigation .name : text + " Button"
96
+ navigation .panel : root .contentNavigation
97
+ navigation .column : 2
98
+ accessible .ignored : true
99
+ navigation .onActiveChanged : {
100
+ if (! navigation .active ) {
101
+ accessible .ignored = false
102
+ }
103
+ }
92
104
93
- navigation .name : text + " Button"
94
- navigation .panel : root .contentNavigation
95
- navigation .column : 3
96
- accessible .ignored : true
97
- navigation .onActiveChanged : {
98
- if (! navigation .active ) {
99
- accessible .ignored = false
105
+ text: qsTrc (" workspace" , " Remove" )
106
+
107
+ onClicked: {
108
+ root .remove ()
100
109
}
101
110
}
102
111
103
- text: ! root .isEnabled ? qsTrc (" extensions" , " Enable" ) : qsTrc (" extensions" , " Disable" )
104
112
105
- Component .onCompleted : {
106
- root .mainButton = mainButton
107
- }
108
113
109
- onClicked: {
110
- // ! NOTE temporary
111
- // The function with the choice of the call point is not ready yet.
112
- // Therefore, here is the previous solution with the button,
113
- // but in fact the choice is made from the list
114
- // 0 - disabled
115
- // 1 - enabled (manual call)
116
- // (here we switch to the opposite state)
117
- root .execPointSelected (root .isEnabled ? 0 : 1 )
114
+ FlatButton {
115
+ id: mainButton
116
+
117
+ navigation .name : text + " Button"
118
+ navigation .panel : root .contentNavigation
119
+ navigation .column : 3
120
+ accessible .ignored : true
121
+ navigation .onActiveChanged : {
122
+ if (! navigation .active ) {
123
+ accessible .ignored = false
124
+ }
125
+ }
126
+
127
+ text: ! root .isEnabled ? qsTrc (" extensions" , " Enable" ) : qsTrc (" extensions" , " Disable" )
128
+
129
+ Component .onCompleted : {
130
+ root .mainButton = mainButton
131
+ }
132
+
133
+ onClicked: {
134
+ // ! NOTE temporary
135
+ // The function with the choice of the call point is not ready yet.
136
+ // Therefore, here is the previous solution with the button,
137
+ // but in fact the choice is made from the list
138
+ // 0 - disabled
139
+ // 1 - enabled (manual call)
140
+ // (here we switch to the opposite state)
141
+ root .execPointSelected (root .isEnabled ? 0 : 1 )
142
+ }
118
143
}
119
144
}
120
145
}
0 commit comments