Warning, /graphics/spectacle/src/Gui/LocationCopiedMessage.qml is written in an unsupported language. File is not indexed.
0001 /* SPDX-FileCopyrightText: 2022 Noah Davis <noahadvs@gmail.com> 0002 * SPDX-License-Identifier: LGPL-2.0-or-later 0003 */ 0004 0005 import QtQuick 0006 import QtQuick.Controls as QQC 0007 import org.kde.kirigami as Kirigami 0008 0009 InlineMessage { 0010 id: root 0011 type: Kirigami.MessageType.Information 0012 text: video ? 0013 i18nc("@info", "The video location has been copied to the clipboard.") 0014 : i18nc("@info", "The screenshot location has been copied to the clipboard.") 0015 // Not using showCloseButton because it toggles visible on this item, 0016 // making it harder to use with loaders. 0017 actions: Kirigami.Action { 0018 displayComponent: QQC.ToolButton { 0019 icon.name: "dialog-close" 0020 onClicked: root.loader.state = "inactive" 0021 } 0022 } 0023 Timer { 0024 running: true 0025 interval: 10000 0026 onTriggered: root.loader.state = "inactive" 0027 } 0028 }