Kstars

KSTabButton.qml
1 import QtQuick 2.6
2 import QtQuick.Controls 2.0
3 import "../constants/" 1.0
4 import QtQuick.Layouts 1.2
5 
6 TabButton {
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-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.