Huge changes in profiles management and added support for user defined ones.

This commit is contained in:
Filippo Scognamiglio
2014-05-18 22:23:19 +02:00
parent 3440ef0e45
commit 12f09ddf52
4 changed files with 191 additions and 62 deletions
+42
View File
@@ -0,0 +1,42 @@
import QtQuick 2.1
import QtQuick.Window 2.0
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
Window{
id: insertnamedialog
width: 400
height: 100
modality: Qt.ApplicationModal
title: qsTr("Save current profile")
signal nameSelected(string name)
ColumnLayout{
anchors.margins: 10
anchors.fill: parent
RowLayout{
Label{text: qsTr("Name")}
TextField{
id: namefield
Layout.fillWidth: true
Component.onCompleted: forceActiveFocus()
}
}
RowLayout{
anchors.right: parent.right
anchors.bottom: parent.bottom
Button{
text: qsTr("OK")
onClicked: {
nameSelected(namefield.text);
close();
}
}
Button{
text: qsTr("Cancel")
onClicked: close()
}
}
}
}