diff options
author | link2xt <link2xt@testrun.org> | 2021-02-28 00:11:07 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-02-28 00:11:07 +0300 |
commit | 3931e2843bd01740a861e98c39cd8f133867b989 (patch) | |
tree | ab249d5b54fff997d5aea8ce72f85d892ee2a2e2 /qml/ChatlistPage.qml | |
parent | 078bb839ea328e137a97576ded8717cca68135c7 (diff) | |
download | kdeltachat-3931e2843bd01740a861e98c39cd8f133867b989.tar.gz kdeltachat-3931e2843bd01740a861e98c39cd8f133867b989.zip |
Add Settings page
Diffstat (limited to 'qml/ChatlistPage.qml')
-rw-r--r-- | qml/ChatlistPage.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index ce81602..a025015 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -30,6 +30,20 @@ Kirigami.Page { updateChatlist() } + contextualActions: [ + Kirigami.Action { + text: "Settings" + iconName: "configure" + onTriggered: { + let settingsPageComponent = Qt.createComponent("qrc:/qml/SettingsPage.qml") + if (settingsPageComponent.status == Component.Ready) { + let settingsPage = settingsPageComponent.createObject(chatlistPage, {context: chatlistPage.context}) + pageStack.layers.push(settingsPage) + } + } + } + ] + ListModel { id: chatlistModel } |