Page MenuHomePhorge

ReactToEventPopup.qml
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

ReactToEventPopup.qml

/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import org.kde.kirigami 2.13 as Kirigami
import '.' as Kazv
Kazv.SelfDestroyableOverlaySheet {
id: popup
signal accepted(string text)
title: l10n.get('event-react-popup-title')
property var acceptAction: Kirigami.Action {
text: l10n.get('event-react-accept-action')
onTriggered: {
accepted(reactionTextInput.text);
popup.close();
}
}
property var cancelAction: Kirigami.Action {
text: l10n.get('event-react-cancel-action')
onTriggered: {
popup.close();
}
}
ColumnLayout {
Label {
Layout.fillWidth: true
text: l10n.get('event-react-with-prompt')
}
TextField {
id: reactionTextInput
Layout.fillWidth: true
}
RowLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
Button {
action: acceptAction
}
Button {
action: cancelAction
}
}
}
}

File Metadata

Mime Type
text/plain
Expires
Wed, May 14, 7:19 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
99849
Default Alt Text
ReactToEventPopup.qml (1 KB)

Event Timeline