/*SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>SPDX-License-Identifier: GPL-2.0-or-later*/import QtQuickimport QtQuick.Controls as QQC2import org.kde.kirigami as KirigamiRectangle {id: rootproperty alias model: buttonTable.modelproperty string textRole: "display"border {color: Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.backgroundColor, Kirigami.Theme.textColor, 0.2)width: 1}radius: Kirigami.Units.cornerRadiuscolor: "transparent"Kirigami.Theme.colorSet: Kirigami.Theme.WindowKirigami.Theme.inherit: falseQQC2.HorizontalHeaderView {id: buttonHorizontalHeaderanchors {left: buttonTable.lefttop: parent.toptopMargin: 1}syncView: buttonTableclip: true}QQC2.VerticalHeaderView {id: buttonVerticalHeaderanchors {top: buttonTable.topleft: parent.leftleftMargin: 1}syncView: buttonTableclip: true}TableView {id: buttonTableanchors {left: buttonVerticalHeader.righttop: buttonHorizontalHeader.bottomright: parent.rightrightMargin: 1bottom: parent.bottombottomMargin: 1}columnSpacing: 0rowSpacing: 1clip: trueresizableRows: falseresizableColumns: falsealternatingRows: falseboundsBehavior: Flickable.StopAtBoundsselectionBehavior: TableView.SelectionDisabledpointerNavigationEnabled: falsedelegate: QQC2.ItemDelegate {implicitWidth: TableView.view.widthtext: model[root.textRole]Kirigami.Theme.colorSet: Kirigami.Theme.ViewKirigami.Theme.inherit: false}QQC2.ScrollBar.vertical: QQC2.ScrollBar {}QQC2.ScrollBar.horizontal: QQC2.ScrollBar {}}}