Changed DataBase to BusinessModel
This commit is contained in:
42
Gui/main.qml
42
Gui/main.qml
@@ -12,6 +12,7 @@ ApplicationWindow
|
||||
height: Screen.height * .7
|
||||
visible: true
|
||||
title: "PYQCRM"
|
||||
property string confile: ""
|
||||
|
||||
TopBar
|
||||
{
|
||||
@@ -71,10 +72,45 @@ ApplicationWindow
|
||||
{
|
||||
|
||||
id: settingsFiledialog
|
||||
title: qsTr("pyqcrm Einstellungen")
|
||||
title: qsTr("PYQCRM Einstellungen")
|
||||
currentFolder: StandardPaths.standardLocations(StandardPaths.DocumentsLocation)[0]
|
||||
modality: "ApplicationModal"
|
||||
nameFilters: ["pyqcrm Einstellungen (*.toml)"]
|
||||
onAccepted: config.importConfig(selectedFile)
|
||||
nameFilters: [qsTr("PYQCRM Einstellungen (*.pyqcrm)")]
|
||||
onAccepted:
|
||||
{
|
||||
encryptPwDialog.open()
|
||||
confile = selectedFile
|
||||
}
|
||||
}
|
||||
Dialog
|
||||
{
|
||||
id: encryptPwDialog
|
||||
modal: true
|
||||
title: qsTr("PYQCRM Einstellungen")
|
||||
anchors.centerIn: parent
|
||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||
onAccepted: config.importConfig(confile, encryptPassword.text)
|
||||
ColumnLayout
|
||||
{
|
||||
RowLayout
|
||||
{
|
||||
Label
|
||||
{
|
||||
text: qsTr("Passwort eingeben:")
|
||||
}
|
||||
|
||||
TextField
|
||||
{
|
||||
id: encryptPassword
|
||||
echoMode: TextInput.Password
|
||||
implicitWidth: 300
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user