Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Vault
Commits
05a2eb9e
Commit
05a2eb9e
authored
Mar 07, 2022
by
Nate Graham
Browse files
Port to capital P version of the Plasmoid property
The lowercase p context property version is not available in Qt 6.
parent
4c059806
Pipeline
#146474
passed with stage
in 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plasma/package/contents/ui/VaultItem.qml
View file @
05a2eb9e
...
...
@@ -13,7 +13,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras
PlasmaExtras.ExpandableListItem
{
id
:
expandableListItem
property
var
vaultsModelActions
:
p
lasmoid
.
nativeInterface
.
vaultsModel
.
actionsModel
()
property
var
vaultsModelActions
:
P
lasmoid
.
nativeInterface
.
vaultsModel
.
actionsModel
()
icon
:
model
.
icon
iconEmblem
:
model
.
message
.
length
!==
0
?
"
emblem-error
"
:
...
...
plasma/package/contents/ui/main.qml
View file @
05a2eb9e
...
...
@@ -13,8 +13,8 @@ import org.kde.plasma.components 3.0 as PlasmaComponents3
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
Item
{
property
var
vaultsModel
:
p
lasmoid
.
nativeInterface
.
vaultsModel
property
var
vaultsModelActions
:
p
lasmoid
.
nativeInterface
.
vaultsModel
.
actionsModel
()
property
var
vaultsModel
:
P
lasmoid
.
nativeInterface
.
vaultsModel
property
var
vaultsModelActions
:
P
lasmoid
.
nativeInterface
.
vaultsModel
.
actionsModel
()
property
var
expandedItem
:
null
...
...
@@ -25,7 +25,7 @@ Item {
Plasmoid.status
:
vaultsModelActions
.
count
>
0
?
PlasmaCore
.
Types
.
ActiveStatus
:
PlasmaCore
.
Types
.
PassiveStatus
Plasmoid.onExpandedChanged
:
{
p
lasmoid
.
nativeInterface
.
vaultsModel
.
reloadDevices
();
P
lasmoid
.
nativeInterface
.
vaultsModel
.
reloadDevices
();
}
function
action_createNewVault
()
{
...
...
@@ -33,7 +33,7 @@ Item {
}
Component.onCompleted
:
{
p
lasmoid
.
setAction
(
"
createNewVault
"
,
i18nd
(
"
plasmavault-kde
"
,
"
Create a New Vault…
"
),
"
list-add
"
);
P
lasmoid
.
setAction
(
"
createNewVault
"
,
i18nd
(
"
plasmavault-kde
"
,
"
Create a New Vault…
"
),
"
list-add
"
);
}
Plasmoid.fullRepresentation
:
PlasmaExtras.Representation
{
...
...
@@ -83,10 +83,10 @@ Item {
text
:
i18nd
(
"
plasmavault-kde
"
,
"
No Vaults have been set up
"
)
helpfulAction
:
QQC2.Action
{
text
:
p
lasmoid
.
action
(
"
createNewVault
"
).
text
text
:
P
lasmoid
.
action
(
"
createNewVault
"
).
text
icon.name
:
"
list-add
"
onTriggered
:
{
p
lasmoid
.
action
(
"
createNewVault
"
).
trigger
()
}
onTriggered
:
{
P
lasmoid
.
action
(
"
createNewVault
"
).
trigger
()
}
}
}
}
...
...
@@ -96,12 +96,12 @@ Item {
PlasmaComponents3.Button
{
id
:
buttonCreateNewVault
visible
:
vaultsList
.
count
>
0
&&
!
(
p
lasmoid
.
containmentDisplayHints
&
PlasmaCore
.
Types
.
ContainmentDrawsPlasmoidHeading
)
visible
:
vaultsList
.
count
>
0
&&
!
(
P
lasmoid
.
containmentDisplayHints
&
PlasmaCore
.
Types
.
ContainmentDrawsPlasmoidHeading
)
text
:
p
lasmoid
.
action
(
"
createNewVault
"
).
text
text
:
P
lasmoid
.
action
(
"
createNewVault
"
).
text
icon.name
:
"
list-add
"
onClicked
:
{
p
lasmoid
.
action
(
"
createNewVault
"
).
trigger
()
}
onClicked
:
{
P
lasmoid
.
action
(
"
createNewVault
"
).
trigger
()
}
Layout.alignment
:
Qt
.
AlignLeft
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment