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
Discover
Commits
032d71c8
Commit
032d71c8
authored
Apr 19, 2022
by
Aleix Pol Gonzalez
🐧
Browse files
--warnings: Use Shortcut.sequences
parent
cf43b708
Pipeline
#165476
passed with stage
in 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
discover/qml/DiscoverPage.qml
View file @
032d71c8
...
...
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import
QtQuick
2.5
import
QtQuick
2.
1
5
import
org
.
kde
.
kirigami
2.14
as
Kirigami
Kirigami.ScrollablePage
...
...
@@ -20,7 +20,7 @@ Kirigami.ScrollablePage
}
readonly
property
var
s1
:
Shortcut
{
sequence
:
StandardKey
.
MoveToNextPage
sequence
s
:
[
StandardKey
.
MoveToNextPage
]
enabled
:
root
.
isCurrentPage
onActivated
:
{
root
.
flickable
.
contentY
=
Math
.
min
(
root
.
flickable
.
contentHeight
-
root
.
flickable
.
height
,
...
...
@@ -29,7 +29,7 @@ Kirigami.ScrollablePage
}
readonly
property
var
s2
:
Shortcut
{
sequence
:
StandardKey
.
MoveToPreviousPage
sequence
s
:
[
StandardKey
.
MoveToPreviousPage
]
enabled
:
root
.
isCurrentPage
onActivated
:
{
root
.
flickable
.
contentY
=
Math
.
max
(
0
,
root
.
flickable
.
contentY
-
root
.
flickable
.
height
);
...
...
@@ -37,7 +37,7 @@ Kirigami.ScrollablePage
}
readonly
property
var
sClose
:
Shortcut
{
sequence
:
StandardKey
.
Cancel
sequence
s
:
[
StandardKey
.
Cancel
]
enabled
:
root
.
isCurrentPage
&&
applicationWindow
().
pageStack
.
depth
>
1
onActivated
:
{
applicationWindow
().
pageStack
.
pop
()
...
...
@@ -45,7 +45,7 @@ Kirigami.ScrollablePage
}
readonly
property
var
sRefresh
:
Shortcut
{
sequence
:
StandardKey
.
Refresh
sequence
s
:
[
StandardKey
.
Refresh
]
enabled
:
root
.
isCurrentPage
&&
root
.
supportsRefreshing
onActivated
:
{
if
(
root
.
supportsRefreshing
)
...
...
discover/qml/DiscoverWindow.qml
View file @
032d71c8
import
QtQuick
2.5
import
QtQuick
2.
1
5
import
QtQuick
.
Layouts
1.1
import
QtQuick
.
Controls
2.14
import
org
.
kde
.
discover
2.0
...
...
@@ -113,7 +113,7 @@ Kirigami.ApplicationWindow
// Need to define an explicit Shortcut object so we can get its text
// using shortcut.nativeText
shortcut
:
Shortcut
{
sequence
:
StandardKey
.
Refresh
sequence
s
:
[
StandardKey
.
Refresh
]
onActivated
:
refreshAction
.
trigger
()
}
}
...
...
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