Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Workspace
Commits
bc565e4c
Commit
bc565e4c
authored
Nov 05, 2020
by
Nate Graham
🔩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some code issues with the previous commit
parent
5e24f1c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
applets/systemtray/package/contents/ui/items/AbstractItem.qml
...ets/systemtray/package/contents/ui/items/AbstractItem.qml
+2
-6
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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