Merge linuxero
This commit is contained in:
17
Gui/CompanyConf.qml
Normal file
17
Gui/CompanyConf.qml
Normal file
@@ -0,0 +1,17 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
|
||||
Item
|
||||
{
|
||||
property string name: "company"
|
||||
anchors.fill: parent
|
||||
|
||||
Label
|
||||
{
|
||||
text: qsTr("Das Unternehmen")
|
||||
anchors.centerIn: parent
|
||||
font.pixelSize: 57
|
||||
font.bold: true
|
||||
}
|
||||
}
|
||||
@@ -231,6 +231,25 @@ GridLayout
|
||||
}
|
||||
}
|
||||
|
||||
Component
|
||||
{
|
||||
id: highlight
|
||||
Rectangle
|
||||
{
|
||||
width: 230; height: 15
|
||||
color: "lightsteelblue"; radius: 5
|
||||
y: contactView.currentItem.y
|
||||
Behavior on y
|
||||
{
|
||||
SpringAnimation
|
||||
{
|
||||
spring: 3
|
||||
damping: 0.2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: mainRect
|
||||
@@ -242,6 +261,7 @@ GridLayout
|
||||
ListView
|
||||
{
|
||||
id: contactView
|
||||
|
||||
implicitHeight: parent.height
|
||||
implicitWidth: parent.width
|
||||
model: contactModel
|
||||
@@ -249,10 +269,13 @@ GridLayout
|
||||
highlight: Rectangle { color: "grey"}
|
||||
highlightFollowsCurrentItem: false
|
||||
|
||||
|
||||
onActiveFocusChanged: if(!focus) currentIndex = -1
|
||||
delegate: Item
|
||||
|
||||
{
|
||||
width: contactView.width
|
||||
|
||||
height: 15
|
||||
MouseArea
|
||||
{
|
||||
@@ -264,6 +287,7 @@ GridLayout
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Row
|
||||
{
|
||||
//spacing: 9
|
||||
@@ -297,6 +321,8 @@ GridLayout
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
95
Gui/PyqcrmConf.qml
Normal file
95
Gui/PyqcrmConf.qml
Normal file
@@ -0,0 +1,95 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
Item
|
||||
{
|
||||
anchors.fill: parent
|
||||
TabBar
|
||||
{
|
||||
id: bar
|
||||
width: parent.width
|
||||
TabButton
|
||||
{
|
||||
text: qsTr("Benutzer")
|
||||
}
|
||||
TabButton
|
||||
{
|
||||
text: qsTr("Datenbank")
|
||||
}
|
||||
TabButton
|
||||
{
|
||||
text: qsTr("Das Unternehmen")
|
||||
}
|
||||
}
|
||||
|
||||
StackLayout
|
||||
{
|
||||
id: confContainer
|
||||
anchors.fill: parent
|
||||
currentIndex: bar.currentIndex
|
||||
Item
|
||||
{
|
||||
id: userTab
|
||||
UsersPage
|
||||
{
|
||||
id: usersPage
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
Item
|
||||
{
|
||||
id: dbTab
|
||||
DbConfiguration
|
||||
{
|
||||
id: dbConf
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
Item
|
||||
{
|
||||
id: companyTab
|
||||
CompanyConf
|
||||
{
|
||||
id: companyConf
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout
|
||||
{
|
||||
width: parent.width
|
||||
anchors.bottom: parent.bottom
|
||||
Item
|
||||
{
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
text: qsTr("Ablehnen")
|
||||
onClicked: appLoader.source = "Dashboard.qml"
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
text: qsTr("Speichern")
|
||||
onClicked:
|
||||
{
|
||||
switch (confContainer.currentIndex)
|
||||
{
|
||||
case 1:
|
||||
console.log("Need to update DB paramenters")
|
||||
break
|
||||
|
||||
case 2:
|
||||
console.log("Need to update company's info.")
|
||||
break
|
||||
default:
|
||||
console.log("Need to handle users")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -178,8 +178,15 @@ RowLayout
|
||||
id: mainMenu
|
||||
MenuItem
|
||||
{
|
||||
text: qsTr("Benutzer-Verwaltung")
|
||||
onTriggered: appLoader.source = "UsersPage.qml"
|
||||
//text: qsTr("Benutzer-Verwaltung")
|
||||
//onTriggered: appLoader.source = "UsersPage.qml"
|
||||
text: qsTr("Einstellungen")
|
||||
onTriggered:
|
||||
{
|
||||
// TODO: Check if logged-in user is admin first!!
|
||||
|
||||
appLoader.source = "PyqcrmConf.qml"
|
||||
}
|
||||
}
|
||||
MenuSeparator {}
|
||||
MenuItem { text: qsTr("Als PDF exportieren") }
|
||||
|
||||
@@ -4,6 +4,7 @@ import QtQuick.Controls
|
||||
|
||||
Item
|
||||
{
|
||||
property string name: "users"
|
||||
anchors.fill: parent
|
||||
|
||||
Label
|
||||
|
||||
1
enc_key_backup.txt
Normal file
1
enc_key_backup.txt
Normal file
@@ -0,0 +1 @@
|
||||
Lj30yFOP7hJmY5Cub1Go8fJz0UE+Zyo9cEqNxfY23Sc=
|
||||
Reference in New Issue
Block a user