Commit 0ad9e0a1 authored by Zren (Chris Holland)'s avatar Zren (Chris Holland)

Fix ActionItem Label width, minimumWidth=300, DPI scaled minimum size

Also includes a commented out mockup vaultsModel for use in plasmoidviewer.

BUG: 385794

Differential Revision: https://phabricator.kde.org/D8324
parent de273f8d
......@@ -58,11 +58,11 @@ MouseArea {
anchors {
left: actionIcon.right
right: parent.right
verticalCenter: parent.verticalCenter
margins: units.smallSpacing
}
width: parent.width
height: undefined
elide: Text.ElideRight
}
......
......@@ -26,6 +26,21 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
Item {
// For quick mockups in plasmoidviewer
// property var vaultsModel: ListModel {
// ListElement {
// name: "TestVault"
// icon: "folder-decrypted"
// device: ""
// mountPoint: ""
// isBusy: false
// isOpened: true
// activities: []
// status: 1 // VaultInfo::Opened
// message: ""
// }
// }
property var vaultsModel: plasmoid.nativeInterface.vaultsModel
property var vaultsModelActions: plasmoid.nativeInterface.vaultsModel.source()
......@@ -50,8 +65,8 @@ Item {
fill: parent
}
Layout.minimumWidth: 200
Layout.minimumHeight: 200
Layout.minimumWidth: 300 * units.devicePixelRatio
Layout.minimumHeight: 200 * units.devicePixelRatio
// PlasmaExtras.Heading {
// text: i18nd("plasmavault-kde", "Encrypted vaults")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment