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 Workspace
Commits
bc565e4c
Commit
bc565e4c
authored
Nov 05, 2020
by
Nate Graham
Browse files
Fix some code issues with the previous commit
parent
5e24f1c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/systemtray/package/contents/ui/items/AbstractItem.qml
View file @
bc565e4c
...
...
@@ -137,20 +137,16 @@ PlasmaCore.ToolTipArea {
readonly
property
int
size
:
abstractItem
.
inVisibleLayout
?
root
.
itemSize
:
units
.
iconSizes
.
medium
Layout.alignment
:
Qt
.
Bottom
|
Qt
.
AlignHCenter
// use 50% of available height
Layout.preferredHeight
:
abstractItem
.
inHiddenLayout
?
50
:
undefined
Layout.fillHeight
:
abstractItem
.
inHiddenLayout
?
true
:
false
implicitWidth
:
root
.
vertical
&&
abstractItem
.
inVisibleLayout
?
abstractItem
.
width
:
size
implicitHeight
:
!
root
.
vertical
&&
abstractItem
.
inVisibleLayout
?
abstractItem
.
height
:
size
Layout.topMargin
:
abstractItem
.
inHiddenLayout
?
units
.
smallSpacing
:
0
Layout.topMargin
:
abstractItem
.
inHiddenLayout
?
Math
.
round
(
units
.
smallSpacing
*
1.5
)
:
0
}
PlasmaComponents3.Label
{
id
:
label
Layout.fillWidth
:
true
// use 50% of available height
Layout.preferredHeight
:
50
Layout.fillHeight
:
true
Layout.fillHeight
:
abstractItem
.
inHiddenLayout
?
true
:
false
Layout.leftMargin
:
abstractItem
.
inHiddenLayout
?
units
.
smallSpacing
:
0
Layout.rightMargin
:
abstractItem
.
inHiddenLayout
?
units
.
smallSpacing
:
0
Layout.bottomMargin
:
abstractItem
.
inHiddenLayout
?
units
.
smallSpacing
:
0
...
...
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