Warning, /office/klevernotes/src/contents/ui/settings/TabBar.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 // SPDX-FileCopyrightText: 2023 Louis Schul <schul9louis@gmail.com> 0003 0004 import org.kde.kirigami 2.19 as Kirigami 0005 0006 Kirigami.NavigationTabBar { 0007 id: root 0008 0009 property string currentTab: "general" 0010 0011 actions: [ 0012 Kirigami.Action { 0013 text: i18nc("@label, tab (inside tab bar), general settings of the app", "General") 0014 icon.name: "settings-configure" 0015 checked: root.currentTab === "general" 0016 onTriggered: { 0017 root.currentTab = "general" 0018 } 0019 }, 0020 Kirigami.Action { 0021 text: i18nc("@label, tab (inside tab bar), all settings related to the general appearance of the app", "Appearance") 0022 icon.name: "preferences-desktop-theme-global" 0023 checked: root.currentTab === "appearance" 0024 onTriggered: { 0025 root.currentTab = "appearance" 0026 } 0027 }, 0028 Kirigami.Action { 0029 text: i18nc("@label, tab (inside tab bar), all things related to plugins", "Plugins") 0030 icon.name: "plugins" 0031 checked: root.currentTab === "plugins" 0032 onTriggered: { 0033 root.currentTab = "plugins" 0034 } 0035 } 0036 ] 0037 }