mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:23:36 +02:00
Add browser action shortcut to our custom desktop
This commit is contained in:
parent
12cc873716
commit
8e57f06de2
1 changed files with 14 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import QtQuick 2.5
|
||||
import QtQuick.Controls 1.4
|
||||
|
||||
import "../desktop"
|
||||
import ".."
|
||||
|
@ -9,6 +10,19 @@ Desktop {
|
|||
// The tool window, one instance
|
||||
property alias toolWindow: toolWindow
|
||||
ToolWindow { id: toolWindow }
|
||||
|
||||
Action {
|
||||
text: "Open Browser"
|
||||
shortcut: "Ctrl+B"
|
||||
onTriggered: {
|
||||
console.log("Open browser");
|
||||
browserBuilder.createObject(desktop);
|
||||
}
|
||||
property var browserBuilder: Component {
|
||||
Browser{}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue