mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-25 06:52:28 +00:00
Fix style command
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import "../styles"
|
||||
import Lomiri.Components 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Item {
|
||||
id: copyText
|
||||
property string text
|
||||
|
||||
property string text
|
||||
property bool commonBorder: true
|
||||
property int lBorderwidth: 0
|
||||
property int rBorderwidth: 0
|
||||
@ -39,20 +39,21 @@ Item {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onPressed: {
|
||||
parent.color = LomiriColors.warmGrey
|
||||
parent.color = LomiriColors.warmGrey;
|
||||
}
|
||||
onClicked: {
|
||||
var mimeData = Clipboard.newData()
|
||||
mimeData.text = copyText.text
|
||||
Clipboard.push(mimeData)
|
||||
var mimeData = Clipboard.newData();
|
||||
mimeData.text = copyText.text;
|
||||
Clipboard.push(mimeData);
|
||||
}
|
||||
onReleased: {
|
||||
parent.color = theme.palette.normal.background
|
||||
parent.color = theme.palette.normal.background;
|
||||
}
|
||||
}
|
||||
|
||||
CustomBorder {
|
||||
id: cb
|
||||
|
||||
commonBorder: copyText.commonBorder
|
||||
lBorderwidth: copyText.lBorderwidth
|
||||
rBorderwidth: copyText.rBorderwidth
|
||||
@ -60,5 +61,7 @@ Item {
|
||||
bBorderwidth: copyText.bBorderwidth
|
||||
borderColor: copyText.borderColor
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,13 +1,12 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import "../styles"
|
||||
import Lomiri.Components 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Item {
|
||||
id: externalLink
|
||||
|
||||
property string url
|
||||
property string text
|
||||
|
||||
property bool commonBorder: true
|
||||
property int lBorderwidth: 0
|
||||
property int rBorderwidth: 0
|
||||
@ -42,12 +41,13 @@ Item {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
Qt.openUrlExternally(externalLink.url)
|
||||
Qt.openUrlExternally(externalLink.url);
|
||||
}
|
||||
}
|
||||
|
||||
CustomBorder {
|
||||
id: cb
|
||||
|
||||
commonBorder: externalLink.commonBorder
|
||||
lBorderwidth: externalLink.lBorderwidth
|
||||
rBorderwidth: externalLink.rBorderwidth
|
||||
@ -55,5 +55,7 @@ Item {
|
||||
bBorderwidth: externalLink.bBorderwidth
|
||||
borderColor: externalLink.borderColor
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,13 +1,14 @@
|
||||
import QtQuick 2.4
|
||||
import "../dialogs"
|
||||
import "../styles"
|
||||
import Lomiri.Components 1.3
|
||||
import Lomiri.Components.Popups 1.3
|
||||
import Pass 1.0
|
||||
import "../styles"
|
||||
import "../dialogs"
|
||||
import QtQuick 2.4
|
||||
|
||||
Component {
|
||||
Rectangle {
|
||||
id: fileDir
|
||||
|
||||
property string activePasswordName
|
||||
|
||||
anchors.right: parent.right
|
||||
@ -34,24 +35,20 @@ Component {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
if (fileIsDir) {
|
||||
folderModel.folder = folderModel.folder + "/" + fileName
|
||||
backAction.visible = true
|
||||
folderModel.folder = folderModel.folder + "/" + fileName;
|
||||
backAction.visible = true;
|
||||
} else {
|
||||
fileDir.activePasswordName = fileBaseName
|
||||
|
||||
Pass.onDecrypted.connect(function (text) {
|
||||
pageStack.push(Qt.resolvedUrl("../pages/Password.qml"),
|
||||
{
|
||||
"plainText": text,
|
||||
"title": fileDir.activePasswordName
|
||||
})
|
||||
})
|
||||
|
||||
Pass.onDecryptFailed.connect(function () {
|
||||
PopupUtils.open(passwordPageDecryptError)
|
||||
})
|
||||
|
||||
Pass.decrypt(folderModel.folder + "/" + fileName)
|
||||
fileDir.activePasswordName = fileBaseName;
|
||||
Pass.onDecrypted.connect(function(text) {
|
||||
pageStack.push(Qt.resolvedUrl("../pages/Password.qml"), {
|
||||
"plainText": text,
|
||||
"title": fileDir.activePasswordName
|
||||
});
|
||||
});
|
||||
Pass.onDecryptFailed.connect(function() {
|
||||
PopupUtils.open(passwordPageDecryptError);
|
||||
});
|
||||
Pass.decrypt(folderModel.folder + "/" + fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -67,9 +64,13 @@ Component {
|
||||
|
||||
Component {
|
||||
id: passwordPageDecryptError
|
||||
|
||||
ErrorDialog {
|
||||
textError: i18n.tr("Decryption failed !")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,16 +1,14 @@
|
||||
import QtQuick 2.4
|
||||
import Lomiri.Components 1.3
|
||||
import "../styles"
|
||||
import Lomiri.Components 1.3
|
||||
import QtQuick 2.4
|
||||
|
||||
Item {
|
||||
id: pageStackLink
|
||||
|
||||
property string page
|
||||
property var params: {
|
||||
|
||||
}
|
||||
property string text
|
||||
|
||||
property bool commonBorder: true
|
||||
property int lBorderwidth: 0
|
||||
property int rBorderwidth: 0
|
||||
@ -45,12 +43,13 @@ Item {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
pageStack.push(page, params)
|
||||
pageStack.push(page, params);
|
||||
}
|
||||
}
|
||||
|
||||
CustomBorder {
|
||||
id: cb
|
||||
|
||||
commonBorder: pageStackLink.commonBorder
|
||||
lBorderwidth: pageStackLink.lBorderwidth
|
||||
rBorderwidth: pageStackLink.rBorderwidth
|
||||
@ -58,5 +57,7 @@ Item {
|
||||
bBorderwidth: pageStackLink.bBorderwidth
|
||||
borderColor: pageStackLink.borderColor
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user