// SPDX-FileCopyrightText: 2021 Tobias Fella // SPDX-License-Identifier: GPL-2.0-or-later import QtQuick 2.15 import QtQuick.Layouts 1.15 import org.kde.kirigami 2.15 as Kirigami import org.kde.neochat 1.0 /** * @brief A timeline delegate for an encrypted message that can't be decrypted. * * @inherit TimelineContainer */ TimelineContainer { id: encryptedDelegate innerObject: TextEdit { text: i18n("This message is encrypted and the sender has not shared the key with this device.") color: Kirigami.Theme.disabledTextColor selectedTextColor: Kirigami.Theme.highlightedTextColor selectionColor: Kirigami.Theme.highlightColor font.pointSize: Kirigami.Theme.defaultFont.pointSize selectByMouse: !Kirigami.Settings.isMobile readOnly: true wrapMode: Text.WordWrap textFormat: Text.RichText Layout.maximumWidth: encryptedDelegate.contentMaxWidth Layout.leftMargin: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing : 0 } }