Commit a1d66fd2 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Close app on exit

parent b90fd1cf
import QtQuick 2.0 import QtQuick 2.7
import QtQuick.Layouts 1.1 import QtQuick.Layouts 1.1
import QMLTermWidget 1.0
import QtQuick.Controls 1.2 import QtQuick.Controls 1.2
import QMLTermWidget 1.0
import org.kde.kirigami 2.3 as Kirigami import org.kde.kirigami 2.3 as Kirigami
Kirigami.ApplicationWindow { Kirigami.ApplicationWindow {
Action{ Kirigami.Action {
onTriggered: terminal.copyClipboard(); onTriggered: terminal.copyClipboard();
shortcut: "Ctrl+Shift+C" shortcut: "Ctrl+Shift+C"
} }
Action{ Kirigami.Action {
onTriggered: terminal.pasteClipboard(); onTriggered: terminal.pasteClipboard();
shortcut: "Ctrl+Shift+V" shortcut: "Ctrl+Shift+V"
} }
...@@ -28,6 +29,7 @@ Kirigami.ApplicationWindow { ...@@ -28,6 +29,7 @@ Kirigami.ApplicationWindow {
session: QMLTermSession{ session: QMLTermSession{
id: mainsession id: mainsession
initialWorkingDirectory: "$HOME" initialWorkingDirectory: "$HOME"
onFinished: Qt.quit()
onMatchFound: { onMatchFound: {
console.log("found at: %1 %2 %3 %4".arg(startColumn).arg(startLine).arg(endColumn).arg(endLine)); console.log("found at: %1 %2 %3 %4".arg(startColumn).arg(startLine).arg(endColumn).arg(endLine));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment