Warning, /education/kstars/kstars/kstarslite/qml/modules/KSTabButton.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.6
0002 import QtQuick.Controls 2.0
0003 import "../constants/" 1.0
0004 import QtQuick.Layouts 1.2
0005 
0006 TabButton {
0007     id: tabButton
0008     width: contentItem.contentWidth//tabText.text.length * tabText.font.pixelSize
0009 
0010     contentItem: KSText {
0011         id: tabText
0012         text: tabButton.text
0013         font: tabButton.font
0014         opacity: enabled ? 1.0 : 0.3
0015         horizontalAlignment: Text.AlignHCenter
0016         verticalAlignment: Text.AlignVCenter
0017     }
0018 }