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
libksysguard
Commits
d1d91226
Commit
d1d91226
authored
Nov 28, 2020
by
Yaroslav Beltukov
Committed by
Arjen Hiemstra
Jan 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move minimumWidth from PieChart to FullRepresentation
parent
03724f8d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
faces/facepackages/piechart/contents/ui/CompactRepresentation.qml
...cepackages/piechart/contents/ui/CompactRepresentation.qml
+1
-2
faces/facepackages/piechart/contents/ui/FullRepresentation.qml
.../facepackages/piechart/contents/ui/FullRepresentation.qml
+1
-0
faces/facepackages/piechart/contents/ui/PieChart.qml
faces/facepackages/piechart/contents/ui/PieChart.qml
+0
-1
No files found.
faces/facepackages/piechart/contents/ui/CompactRepresentation.qml
View file @
d1d91226
...
...
@@ -36,8 +36,7 @@ Faces.SensorFace {
id
:
root
contentItem
:
ColumnLayout
{
PieChart
{
Layout.minimumWidth
:
-
1
Layout.maximumHeight
:
root
.
width
Layout.maximumHeight
:
Math
.
max
(
root
.
width
,
Layout
.
minimumHeight
)
Layout.fillWidth
:
true
Layout.fillHeight
:
!
label
.
visible
Layout.alignment
:
Qt
.
AlignCenter
...
...
faces/facepackages/piechart/contents/ui/FullRepresentation.qml
View file @
d1d91226
...
...
@@ -59,6 +59,7 @@ Faces.SensorFace {
id
:
compactRepresentation
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Layout.minimumWidth
:
root
.
formFactor
!=
Faces
.
SensorFace
.
Vertical
?
Kirigami
.
Units
.
gridUnit
*
4
:
Kirigami
.
Units
.
gridUnit
Layout.minimumHeight
:
root
.
formFactor
===
Faces
.
SensorFace
.
Constrained
?
Kirigami
.
Units
.
gridUnit
:
5
*
Kirigami
.
Units
.
gridUnit
...
...
faces/facepackages/piechart/contents/ui/PieChart.qml
View file @
d1d91226
...
...
@@ -38,7 +38,6 @@ ChartControls.PieChartControl {
property
alias
sensors
:
sensorsModel
.
sensors
property
alias
sensorsModel
:
sensorsModel
Layout.minimumWidth
:
root
.
formFactor
!=
Faces
.
SensorFace
.
Vertical
?
Kirigami
.
Units
.
gridUnit
*
4
:
Kirigami
.
Units
.
gridUnit
Layout.minimumHeight
:
root
.
formFactor
==
Faces
.
SensorFace
.
Vertical
?
width
:
Kirigami
.
Units
.
gridUnit
leftPadding
:
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