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
Network
KDE Connect
Commits
4b6caf9a
Verified
Commit
4b6caf9a
authored
Sep 21, 2022
by
ivan tkachenko
Browse files
Port away from deprecated QML features
parent
03a58c66
Pipeline
#235238
passed with stage
in 4 minutes
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
app/qml/MprisSlider.qml
View file @
4b6caf9a
...
...
@@ -57,7 +57,7 @@ Loader {
Connections
{
target
:
plugin
onNowPlayingChanged
:
{
function
onNowPlayingChanged
()
{
item
.
value
=
lastPosition
}
}
...
...
app/qml/mousepad.qml
View file @
4b6caf9a
...
...
@@ -61,9 +61,10 @@ Kirigami.Page
Connections
{
target
:
PointerLocker
onPointerMoved
:
{
if
(
!
PointerLocker
.
isLocked
)
function
onPointerMoved
()
{
if
(
!
PointerLocker
.
isLocked
)
{
return
;
}
mousepad
.
pluginInterface
.
moveCursor
(
Qt
.
point
(
delta
.
x
,
delta
.
y
));
}
}
...
...
declarativeplugin/qml/RemoteKeyboard.qml
View file @
4b6caf9a
...
...
@@ -20,13 +20,13 @@ TextField {
pluginName
:
"
remotekeyboard
"
}
property
var
iant
remoteKeyboard
:
null
property
var
remoteKeyboard
:
null
readonly
property
bool
remoteState
:
available
?
remoteKeyboard
.
remoteState
:
false
Connections
{
target
:
remoteKeyboard
onKeyPressReceived
:
{
function
onKeyPressReceived
()
{
//console.log("XXX received keypress key=" + key + " special=" + specialKey + " shift=" + shift + " ctrl=" + ctrl + " text=" + text + " cursorPos=" + cursorPosition);
// interpret some special keys:
if
(
specialKey
==
12
||
specialKey
==
14
)
// Return/Esc -> clear
...
...
smsapp/qml/MessageAttachments.qml
View file @
4b6caf9a
...
...
@@ -135,7 +135,7 @@ Item {
Connections
{
target
:
conversationModel
onFilePathReceived
:
{
function
onFilePathReceived
()
{
if
(
root
.
uniqueIdentifier
==
fileName
&&
root
.
sourcePath
==
""
)
{
root
.
sourcePath
=
"
file:
"
+
filePath
...
...
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