Implemented key importing/generation for the GUI

This commit is contained in:
Maran
2014-04-10 14:53:12 -04:00
parent 834e43622c
commit e2bf5d1270
5 changed files with 237 additions and 11 deletions

View File

@@ -25,6 +25,35 @@ ApplicationWindow {
}
}
Menu {
title: "Test"
MenuItem {
text: "Test test"
shortcut: "Ctrl+t"
onTriggered: {
var win
function finishedLoading(){
console.log("Trigged")
win = wizard.createObject(root)
}
console.log("Loading wizard")
var wizard = Qt.createComponent("first_run.qml")
if(wizard.status== Component.Ready){
console.log("Component is ready")
finishedLoading()
}else if( wizard.status == Component.Error){
console.log("Error loading component:", wizard.errorString())
}
else{
wizard.statusChanged.connect(finishedLoading)
console.log("Component is NOT ready")
win = wizard.createObject(root)
}
}
}
}
Menu {
title: "Network"
MenuItem {