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 Add-ons
Commits
50564061
Commit
50564061
authored
Sep 24, 2020
by
Jan Blackquill
🌈
Committed by
Jan Blackquill
Oct 07, 2020
Browse files
Port from context properties to singletons
parent
221fc775
Changes
8
Hide whitespace changes
Inline
Side-by-side
applets/binary-clock/package/contents/ui/Dot.qml
View file @
50564061
...
...
@@ -12,6 +12,7 @@
*/
import
QtQuick
2.0
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
Item
{
property
int
val
...
...
@@ -33,7 +34,7 @@ Item {
x
:
0
y
:
main
.
dotSize
width
:
main
.
dotSize
height
:
u
nits
.
smallSpacing
height
:
PlasmaCore
.
U
nits
.
smallSpacing
color
:
main
.
gridColor
}
...
...
@@ -42,8 +43,8 @@ Item {
visible
:
main
.
showGrid
x
:
main
.
dotSize
y
:
0
width
:
u
nits
.
smallSpacing
height
:
main
.
dotSize
+
u
nits
.
smallSpacing
width
:
PlasmaCore
.
U
nits
.
smallSpacing
height
:
main
.
dotSize
+
PlasmaCore
.
U
nits
.
smallSpacing
color
:
main
.
gridColor
}
}
applets/binary-clock/package/contents/ui/DotColumn.qml
View file @
50564061
...
...
@@ -12,6 +12,7 @@
*/
import
QtQuick
2.0
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
Item
{
property
int
val
...
...
@@ -23,19 +24,19 @@ Item {
}
Dot
{
x
:
0
y
:
(
dotSize
+
u
nits
.
smallSpacing
)
y
:
(
dotSize
+
PlasmaCore
.
U
nits
.
smallSpacing
)
val
:
parent
.
val
bit
:
4
}
Dot
{
x
:
0
y
:
2
*
(
dotSize
+
u
nits
.
smallSpacing
)
y
:
2
*
(
dotSize
+
PlasmaCore
.
U
nits
.
smallSpacing
)
val
:
parent
.
val
bit
:
2
}
Dot
{
x
:
0
y
:
3
*
(
dotSize
+
u
nits
.
smallSpacing
)
y
:
3
*
(
dotSize
+
PlasmaCore
.
U
nits
.
smallSpacing
)
val
:
parent
.
val
bit
:
1
}
...
...
applets/dict/package/contents/ui/ConfigDictionaries.qml
View file @
50564061
...
...
@@ -39,7 +39,7 @@ ColumnLayout {
background
:
Rectangle
{
id
:
highlight
implicitWidth
:
root
.
width
-
u
nits
.
largeSpacing
implicitWidth
:
root
.
width
-
Kirigami
.
U
nits
.
largeSpacing
visible
:
model
.
id
==
root
.
cfg_dictionary
color
:
Kirigami
.
Theme
.
highlightColor
}
...
...
applets/mediaframe/package/contents/ui/ConfigGeneral.qml
View file @
50564061
...
...
@@ -103,7 +103,7 @@ Kirigami.FormLayout {
id
:
comboBox
Kirigami.FormData.label
:
i18nc
(
"
@label:listbox
"
,
"
Image fill mode:
"
)
// Layout.minimumWidth:
u
nits.gridUnit * 10
// Layout.minimumWidth:
Kirigami.U
nits.gridUnit * 10
currentIndex
:
fillModeToIndex
(
fillMode
)
textRole
:
"
text
"
model
:
[
...
...
applets/weather/package/contents/ui/DetailsView.qml
View file @
50564061
...
...
@@ -8,6 +8,7 @@ import QtQuick 2.9
import
QtQuick
.
Layouts
1.3
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
components
3.0
as
PlasmaComponents
ColumnLayout
{
...
...
@@ -18,7 +19,7 @@ ColumnLayout {
GridLayout
{
Layout.alignment
:
Qt
.
AlignTop
|
Qt
.
AlignHCenter
rowSpacing
:
u
nits
.
smallSpacing
rowSpacing
:
PlasmaCore
.
U
nits
.
smallSpacing
Repeater
{
id
:
labelRepeater
...
...
applets/weather/package/contents/ui/FullRepresentation.qml
View file @
50564061
...
...
@@ -9,12 +9,13 @@ import QtQuick 2.9
import
QtQuick
.
Layouts
1.3
import
org
.
kde
.
plasma
.
plasmoid
2.0
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
components
3.0
as
PlasmaComponents
ColumnLayout
{
id
:
fullRoot
Layout.margins
:
u
nits
.
smallSpacing
Layout.margins
:
PlasmaCore
.
U
nits
.
smallSpacing
property
alias
generalModel
:
topPanel
.
generalModel
property
alias
observationModel
:
topPanel
.
observationModel
...
...
applets/weather/package/contents/ui/NoticesView.qml
View file @
50564061
...
...
@@ -9,6 +9,7 @@ import QtQuick 2.9
import
QtQuick
.
Layouts
1.3
import
org
.
kde
.
plasma
.
components
3.0
as
PlasmaComponents
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
ColumnLayout
{
...
...
@@ -17,7 +18,7 @@ ColumnLayout {
property
alias
model
:
categoryRepeater
.
model
readonly
property
bool
hasContent
:
model
&&
model
.
length
>
0
&&
(
model
[
0
].
length
>
0
||
model
[
1
].
length
>
0
)
spacing
:
u
nits
.
largeSpacing
spacing
:
PlasmaCore
.
U
nits
.
largeSpacing
Repeater
{
id
:
categoryRepeater
...
...
applets/webbrowser/package/contents/ui/main.qml
View file @
50564061
...
...
@@ -11,6 +11,7 @@ import QtWebEngine 1.5
import
QtQuick
.
Layouts
1.1
import
org
.
kde
.
plasma
.
components
2.0
as
PlasmaComponents
// for Menu+MenuItem
import
org
.
kde
.
plasma
.
components
3.0
as
PlasmaComponents3
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
ColumnLayout
{
...
...
@@ -85,8 +86,8 @@ ColumnLayout {
Layout.fillHeight
:
true
// TODO use contentsSize but that crashes, now mostly for some sane initial size
Layout.preferredWidth
:
u
nits
.
gridUnit
*
36
Layout.preferredHeight
:
u
nits
.
gridUnit
*
18
Layout.preferredWidth
:
PlasmaCore
.
U
nits
.
gridUnit
*
36
Layout.preferredHeight
:
PlasmaCore
.
U
nits
.
gridUnit
*
18
// Binding it to e.g. width will be super slow on resizing
Timer
{
...
...
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