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
3ed70c1f
Commit
3ed70c1f
authored
Sep 17, 2020
by
Nate Graham
Browse files
Port to new connection syntax
parent
95918cd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
cuttlefish/package/contents/ui/IconGridDelegate.qml
View file @
3ed70c1f
...
...
@@ -69,7 +69,7 @@ MouseArea {
Connections
{
target
:
iconGrid
onCurrentItemChanged
:
{
function
onCurrentItemChanged
()
{
if
(
delegateRoot
.
GridView
.
isCurrentItem
)
{
delegateRoot
.
setAsPreview
();
}
...
...
cuttlefish/package/contents/ui/Menu.qml
View file @
3ed70c1f
...
...
@@ -19,7 +19,7 @@ Item {
}
Connections
{
target
:
cuttlefish
onItemRightClicked
:
{
function
onItemRightClicked
()
{
menuLoader
.
item
.
popup
()
}
}
...
...
cuttlefish/package/contents/ui/cuttlefish.qml
View file @
3ed70c1f
...
...
@@ -53,10 +53,10 @@ Kirigami.ApplicationWindow {
}
Connections
{
target
:
loader
.
item
onQuit
:
{
cuttlefish
.
close
()
}
onZoomIn
:
{
tools
.
slider
.
value
+=
1
}
onZoomOut
:
{
tools
.
slider
.
value
-=
1
}
onMontage
:
{
function
onQuit
()
{
cuttlefish
.
close
()
}
function
onZoomIn
()
{
tools
.
slider
.
value
+=
1
}
function
onZoomOut
()
{
tools
.
slider
.
value
-=
1
}
function
onMontage
()
{
switch
(
type
)
{
case
0
:
previewPane
.
iconPreview
.
shot
(
"
active
"
)
...
...
@@ -141,19 +141,19 @@ Kirigami.ApplicationWindow {
}
Connections
{
target
:
tools
onColorschemeChanged
:
(
index
)
=>
{
function
onColorschemeChanged
(
index
)
{
toolsResponsive
.
currentIndex
=
index
}
onSliderValueChanged
:
(
val
)
=>
{
function
onSliderValueChanged
(
val
)
{
toolsResponsive
.
value
=
val
}
}
Connections
{
target
:
toolsResponsive
onColorschemeChanged
:
(
index
)
=>
{
function
onColorschemeChanged
(
index
)
{
tools
.
currentIndex
=
index
}
onSliderValueChanged
:
(
val
)
=>
{
function
onSliderValueChanged
(
val
)
{
tools
.
value
=
val
}
}
...
...
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