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 Desktop
Commits
f5484997
Commit
f5484997
authored
Dec 14, 2020
by
Jan Blackquill
🌈
Browse files
[kcms/users]: port from avatar nested in button to avatar with own action
parent
4d54c1ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/users/package/contents/ui/UserDetailsPage.qml
View file @
f5484997
...
...
@@ -119,34 +119,24 @@ SimpleKCM {
}
RowLayout
{
Layout.alignment
:
Qt
.
AlignHCenter
QQC2.RoundButton
{
id
:
userPfp
Kirigami.Avatar
{
source
:
usersDetailPage
.
user
.
face
cache
:
false
name
:
user
.
realName
readonly
property
int
size
:
6
*
Kirigami
.
Units
.
gridUnit
implicitWidth
:
size
implicitHeight
:
size
flat
:
true
Kirigami.Avatar
{
source
:
usersDetailPage
.
user
.
face
cache
:
false
// user picture path doesn't change after updating
name
:
user
.
realName
anchors
{
fill
:
parent
margins
:
Kirigami
.
Units
.
smallSpacing
}
}
Layout.alignment
:
Qt
.
AlignHCenter
Layout.maximumHeight
:
size
+
Kirigami
.
smallSpacing
Layout.minimumHeight
:
size
+
Kirigami
.
smallSpacing
Layout.maximumWidth
:
size
+
Kirigami
.
smallSpacing
Layout.minimumWidth
:
size
+
Kirigami
.
smallSpacing
Layout.preferredWidth
:
size
Layout.preferredHeight
:
size
onClicked
:
{
picturesSheet
.
open
()
stackSwitcher
.
forceActiveFocus
()
actions
{
main
:
Kirigami.Action
{
text
:
i18n
(
"
Change avatar
"
)
onTriggered
:
{
picturesSheet
.
open
()
stackSwitcher
.
forceActiveFocus
()
}
}
}
}
QQC2.TextField
{
...
...
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