Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2578080
MessageNotification.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1013 B
Referenced Files
None
Subscribers
None
MessageNotification.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2021-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.15
import
moe
.
kazv
.
mxc
.
kazv
0.0
as
MK
import
'.'
// in KF6, this will override our own NotificationAction.qml
import
org
.
kde
.
notification
1.0
Notification
{
id: notification
componentName:
'kazv'
eventId:
'message'
text:
'test text'
title:
'test title'
property
var
roomId
property
var
defaultActionText:
l10n
.
get
(
'notification-open'
)
property
var
defaultActionV6:
NotificationAction
{
label:
defaultActionText
}
defaultAction:
MK
.
KazvUtil
.
kfQtMajorVersion
===
5
?
defaultActionText :
defaultActionV6
function
switchToRoom
()
{
switchToRoomRequested
(
roomId
);
}
property
var
conn:
Connections
{
target:
MK
.
KazvUtil
.
kfQtMajorVersion
===
5
?
notification :
notification
.
defaultAction
function
onActivated
()
{
switchToRoom
();
}
function
onDefaultActivated
()
{
switchToRoom
();
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 24, 8:20 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
235003
Default Alt Text
MessageNotification.qml (1013 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment