Kstars

KSTabButton.qml
1import QtQuick 2.6
2import QtQuick.Controls 2.0
3import "../constants/" 1.0
4import QtQuick.Layouts 1.2
5
6TabButton {
7 id: tabButton
8 width: contentItem.contentWidth//tabText.text.length * tabText.font.pixelSize
9
10 contentItem: KSText {
11 id: tabText
12 text: tabButton.text
13 font: tabButton.font
14 opacity: enabled ? 1.0 : 0.3
15 horizontalAlignment: Text.AlignHCenter
16 verticalAlignment: Text.AlignVCenter
17 }
18}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.