Skip to content
Snippets Groups Projects
Commit 6db75978 authored by jonymt's avatar jonymt
Browse files

[*] fixed choose commands from last actions list

parent 67e13484
No related branches found
No related tags found
1 merge request!14Features 2448,2533
Pipeline #845 passed with stage
in 3 minutes and 11 seconds
...@@ -6,6 +6,7 @@ import QtQuick.Layouts 1.12 ...@@ -6,6 +6,7 @@ import QtQuick.Layouts 1.12
Page { Page {
DapUiQmlWidgetConsoleForm { DapUiQmlWidgetConsoleForm {
id: dapConsoleForm
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
...@@ -18,5 +19,6 @@ Page { ...@@ -18,5 +19,6 @@ Page {
DapUiQmlWidgetConsoleLastActionsForm { DapUiQmlWidgetConsoleLastActionsForm {
id: lastActionsPanel id: lastActionsPanel
consoleData: dapConsoleForm.textAreaCmdHistory
} }
} }
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.13 import QtQuick.Layouts 1.13
Component { Component {
ColumnLayout { ColumnLayout {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.leftMargin: 18 * pt anchors.leftMargin: 18 * pt
...@@ -22,6 +24,14 @@ Component { ...@@ -22,6 +24,14 @@ Component {
font.family: "Roboto Regular" font.family: "Roboto Regular"
font.pixelSize: 14 * pt font.pixelSize: 14 * pt
clip: true clip: true
MouseArea {
anchors.fill: parent
onClicked: {
consoleData.append("> " + lastCommand);
dapConsoleModel.receiveRequest(lastCommand);
}
}
} }
Rectangle { Rectangle {
......
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.13 import QtQuick.Layouts 1.13
DapUiQmlWidgetLastActions { DapUiQmlWidgetLastActions {
property TextArea consoleData
id: lastActionsPanel id: lastActionsPanel
viewModel: dapConsoleModel viewModel: dapConsoleModel
viewDelegate: DapUiQmlWidgetConsoleLastActionsDelegateForm {} viewDelegate: DapUiQmlWidgetConsoleLastActionsDelegateForm {
}
} }
Subproject commit ff63d762657f9687173db825705b8bf4b958abee Subproject commit d2c567906d783f94e28ae2ca87acc875175da6a8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment