org::kde::kirigami::NavigationTabButton

Search for usage in LXR

org::kde::kirigami::NavigationTabButton Class Reference

Inherits QtQuick.Templates.TabButton, and TemplatesabButton.

Properties

color checkedBorderColor
 
color foregroundColor
 
color highlightBarColor
 
color highlightForegroundColor
 
color hoverSelectColor
 
color pressedBorderColor
 
color pressedColor
 
bool recolorIcon
 
int tabIndex
 

Detailed Description

Navigation buttons to be used for the NavigationTabBar component.

It supplies its own padding, and also supports using the QQC2 AbstractButton display property to be used in column lists.

Alternative way to the "actions" property on NavigationTabBar, as it can be used with Repeater to generate buttons from models.

Example usage:

Kirigami.NavigationTabBar {
id: navTabBar
Kirigami.NavigationTabButton {
visible: true
icon.name: "document-save"
text: `test ${tabIndex + 1}`
QQC2.ButtonGroup.group: navTabBar.tabGroup
}
Kirigami.NavigationTabButton {
visible: false
icon.name: "document-send"
text: `test ${tabIndex + 1}`
QQC2.ButtonGroup.group: navTabBar.tabGroup
}
actions: [
Kirigami.Action {
visible: true
icon.name: "edit-copy"
icon.height: 32
icon.width: 32
text: `test 3`
checked: true
},
Kirigami.Action {
visible: true
icon.name: "edit-cut"
text: `test 4`
checkable: true
},
Kirigami.Action {
visible: false
icon.name: "edit-paste"
text: `test 5`
},
Kirigami.Action {
visible: true
icon.source: "../logo.png"
text: `test 6`
checkable: true
}
]
}
Since
5.87
org.kde.kirigami 2.19

Definition at line 69 of file NavigationTabButton.qml.

Property Documentation

◆ recolorIcon

bool org::kde::kirigami::NavigationTabButton::recolorIcon
read

This property sets whether the icon colors should be masked with a single color.

default: true

Since
5.96

Definition at line 83 of file NavigationTabButton.qml.

◆ tabIndex

int org::kde::kirigami::NavigationTabButton::tabIndex
read

This property tells the index of this tab within the tab bar.

Remarks
This property is read-only

Definition at line 75 of file NavigationTabButton.qml.


The documentation for this class was generated from the following file:
KGuiItem test()
int tabIndex
This property tells the index of this tab within the tab bar.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.