Add browser action shortcut to our custom desktop

This commit is contained in:
Brad Davis 2016-01-23 12:44:20 -08:00
parent 12cc873716
commit 8e57f06de2

View file

@ -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{}
}
}
}