mirror of
https://github.com/QuasarApp/Qt-Secret.git
synced 2025-05-07 12:39:34 +00:00
61 lines
1.1 KiB
QML
61 lines
1.1 KiB
QML
|
import QtQuick 2.12
|
||
|
import QtQuick.Controls 2.12
|
||
|
import QtQuick.Layouts 1.12
|
||
|
import QtQml.Models 2.12
|
||
|
import QtQuick.Window 2.12
|
||
|
import QtQuick.Controls.Material 2.12
|
||
|
import Qt.labs.settings 1.0
|
||
|
|
||
|
Window {
|
||
|
id: window
|
||
|
visible: true
|
||
|
width: 640
|
||
|
height: 480
|
||
|
title: qsTr("Qt-Secret-GUI")
|
||
|
|
||
|
// Settings {
|
||
|
// id: settings
|
||
|
// property string style: "Material"
|
||
|
// }
|
||
|
|
||
|
SwipeView {
|
||
|
id: swipeView
|
||
|
anchors.fill: parent
|
||
|
currentIndex: tabBar.currentIndex
|
||
|
|
||
|
Item {
|
||
|
Loader {
|
||
|
source: "KeysGeneratePage.qml"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Item {
|
||
|
Loader {
|
||
|
source: "EncryptDecryptPage.qml"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Item {
|
||
|
Loader {
|
||
|
source: "DigitalSignaturePage.qml"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
TabBar {
|
||
|
id: tabBar
|
||
|
width: parent.width
|
||
|
currentIndex: swipeView.currentIndex
|
||
|
|
||
|
TabButton {
|
||
|
text: "Keys generate"
|
||
|
}
|
||
|
TabButton {
|
||
|
text: "Encryption and decryption"
|
||
|
}
|
||
|
TabButton {
|
||
|
text: "Digital signature"
|
||
|
}
|
||
|
}
|
||
|
}
|