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 SDK
Commits
f1226958
Commit
f1226958
authored
Sep 25, 2020
by
Ismael Asensio
Browse files
[cuttlefish] Fix icon preview sizes
Use implicit width/height so it's also respected by the Layout
parent
acf09562
Changes
1
Hide whitespace changes
Inline
Side-by-side
cuttlefish/package/contents/ui/Preview.qml
View file @
f1226958
...
...
@@ -92,7 +92,7 @@ Rectangle {
}
}
Behavior
on
Layout.preferredHeight
{
NumberAnimation
{
NumberAnimation
{
duration
:
Kirigami
.
Units
.
longDuration
}
}
...
...
@@ -115,8 +115,8 @@ Rectangle {
Layout.alignment
:
Qt
.
AlignBottom
Kirigami.Icon
{
source
:
preview
.
iconName
w
idth
:
modelData
height
:
w
idth
implicitW
idth
:
modelData
implicitHeight
:
implicitW
idth
}
QQC2.Label
{
Layout.alignment
:
Qt
.
AlignHCenter
...
...
@@ -134,8 +134,8 @@ Rectangle {
Layout.alignment
:
Qt
.
AlignHCenter
Kirigami.Icon
{
source
:
preview
.
iconName
w
idth
:
cuttlefish
.
iconSizes
[
cuttlefish
.
iconSizes
.
length
-
1
]
height
:
w
idth
implicitW
idth
:
cuttlefish
.
iconSizes
[
cuttlefish
.
iconSizes
.
length
-
1
]
implicitHeight
:
implicitW
idth
}
QQC2.Label
{
Layout.alignment
:
Qt
.
AlignHCenter
...
...
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