Skip to content
Snippets Groups Projects
Commit 988f8b64 authored by jonymt's avatar jonymt
Browse files

[*] fixed enter pressed and added split component

parent 6db75978
No related branches found
No related tags found
1 merge request!14Features 2448,2533
Pipeline #848 passed with stage
in 3 minutes and 13 seconds
...@@ -2,23 +2,26 @@ import QtQuick 2.13 ...@@ -2,23 +2,26 @@ import QtQuick 2.13
import QtQml 2.12 import QtQml 2.12
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import QtQuick.Layouts 1.12 import QtQuick.Layouts 1.12
import QtQuick.Controls 1.4
Page { Page {
SplitView {
anchors.fill: parent
orientation: Qt.Horizontal
anchors.leftMargin: 30 * pt
handleDelegate: Item { }
DapUiQmlWidgetConsoleForm {
id: dapConsoleForm
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: lastActionsPanel.left
anchors.topMargin: 30 * pt DapUiQmlWidgetConsoleForm {
anchors.leftMargin: 30 * pt id: dapConsoleForm
anchors.rightMargin: 30 * pt Layout.fillWidth: true
} Layout.topMargin: 30 * pt
Layout.rightMargin: 30 * pt
}
DapUiQmlWidgetConsoleLastActionsForm { DapUiQmlWidgetConsoleLastActionsForm {
id: lastActionsPanel id: lastActionsPanel
consoleData: dapConsoleForm.textAreaCmdHistory consoleData: dapConsoleForm.textAreaCmdHistory
}
} }
} }
...@@ -71,6 +71,10 @@ Rectangle { ...@@ -71,6 +71,10 @@ Rectangle {
consoleCmd.text = dapConsoleModel.getCommandDown(); consoleCmd.text = dapConsoleModel.getCommandDown();
} }
Keys.onEnterPressed: {
Keys.onReturnPressed(event);
}
Keys.onReturnPressed: { Keys.onReturnPressed: {
txtCommand.append("> " + consoleCmd.text); txtCommand.append("> " + consoleCmd.text);
if(consoleCmd.text === "") return; if(consoleCmd.text === "") return;
......
...@@ -7,7 +7,5 @@ DapUiQmlWidgetLastActions { ...@@ -7,7 +7,5 @@ DapUiQmlWidgetLastActions {
id: lastActionsPanel id: lastActionsPanel
viewModel: dapConsoleModel viewModel: dapConsoleModel
viewDelegate: DapUiQmlWidgetConsoleLastActionsDelegateForm { viewDelegate: DapUiQmlWidgetConsoleLastActionsDelegateForm { }
}
} }
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