Changeset View
Changeset View
Standalone View
Standalone View
src/contents/ui/Bubble.qml
| /* | /* | ||||
| * This file is part of kazv. | * This file is part of kazv. | ||||
| * SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe> | * SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe> | ||||
| * SPDX-License-Identifier: AGPL-3.0-or-later | * SPDX-License-Identifier: AGPL-3.0-or-later | ||||
| */ | */ | ||||
| import QtQuick 2.15 | import QtQuick 2.15 | ||||
| import QtQuick.Layouts 1.15 | import QtQuick.Layouts 1.15 | ||||
| import QtQuick.Controls 2.15 | import QtQuick.Controls 2.15 | ||||
| import QtQuick.Window 2.15 | |||||
| import org.kde.kirigami 2.13 as Kirigami | import org.kde.kirigami 2.13 as Kirigami | ||||
| import '.' as Kazv | import '.' as Kazv | ||||
| import 'matrix-helpers.js' as Helpers | import 'matrix-helpers.js' as Helpers | ||||
| ItemDelegate { | ItemDelegate { | ||||
| id: upper | id: upper | ||||
| Show All 13 Lines | ItemDelegate { | ||||
| background: compactMode ? null : backgroundItem | background: compactMode ? null : backgroundItem | ||||
| property var eventSourcePopupComp: Component { | property var eventSourcePopupComp: Component { | ||||
| Kazv.SelfDestroyableOverlaySheet { | Kazv.SelfDestroyableOverlaySheet { | ||||
| shouldSelfDestroy: true | shouldSelfDestroy: true | ||||
| title: l10n.get('event-source-popup-title') | title: l10n.get('event-source-popup-title') | ||||
| Kazv.EventSourceView { | Kazv.EventSourceView { | ||||
| Layout.preferredWidth: Math.min(Kirigami.Units.gridUnit * 40, Window.width) | |||||
| event: upper.currentEvent | event: upper.currentEvent | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| property var reactionPopupComp: Component { | property var reactionPopupComp: Component { | ||||
| Kazv.ReactToEventPopup { | Kazv.ReactToEventPopup { | ||||
| shouldSelfDestroy: true | shouldSelfDestroy: true | ||||
| ▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines | |||||