Warning, /office/klevernotes/src/contents/ui/textEditor/BottomToolBar.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2022 Louis Schul <schul9louis@gmail.com>
0003 
0004 
0005 import QtQuick 2.15
0006 import QtQuick.Dialogs
0007 
0008 import org.kde.kirigami 2.19 as Kirigami
0009 
0010 Kirigami.NavigationTabBar {
0011     id: tool
0012 
0013     property bool showNoteEditor: true
0014 
0015     actions: [
0016         Kirigami.Action {
0017             icon.name: "document-edit"
0018             text: i18nc("@label:button, as in 'A note'", "Note")
0019 
0020             onTriggered: {
0021                 showNoteEditor = true
0022             }
0023         },
0024         Kirigami.Action {
0025             icon.name: "view-task"
0026             text: i18nc("@label:button", "TODO")
0027 
0028             onTriggered: {
0029                 showNoteEditor = false
0030             }
0031         }
0032     ]
0033 }