Warning, /network/neochat/src/qml/AccountMenu.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 James Graham <james.h.graham@protonmail.com> 0002 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0003 0004 import QtQuick 0005 import QtQuick.Controls as QQC2 0006 import QtQuick.Layouts 0007 0008 import org.kde.kirigami as Kirigami 0009 0010 import org.kde.neochat 0011 import org.kde.neochat.config 0012 0013 QQC2.Menu { 0014 id: root 0015 0016 required property NeoChatConnection connection 0017 0018 margins: Kirigami.Units.smallSpacing 0019 0020 QQC2.MenuItem { 0021 text: i18n("Edit this account") 0022 icon.name: "document-edit" 0023 onTriggered: pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/AccountEditorPage.qml", { 0024 connection: root.connection 0025 }, { 0026 title: i18n("Account editor") 0027 }) 0028 } 0029 QQC2.MenuItem { 0030 text: i18n("Notification settings") 0031 icon.name: "notifications" 0032 onTriggered: pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/SettingsPage.qml", { 0033 defaultPage: "notifications", 0034 connection: root.connection 0035 }, { 0036 title: i18n("Configure") 0037 }) 0038 } 0039 QQC2.MenuItem { 0040 text: i18n("Devices") 0041 icon.name: "computer-symbolic" 0042 onTriggered: pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/SettingsPage.qml", { 0043 defaultPage: "devices", 0044 connection: root.connection 0045 }, { 0046 title: i18n("Configure") 0047 }) 0048 } 0049 QQC2.MenuItem { 0050 text: i18n("Logout") 0051 icon.name: "list-remove-user" 0052 onTriggered: confirmLogoutDialogComponent.createObject(applicationWindow().overlay).open() 0053 } 0054 0055 Component { 0056 id: confirmLogoutDialogComponent 0057 ConfirmLogoutDialog { 0058 connection: root.connection 0059 } 0060 } 0061 }