mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
be7b2dcc34
commit
7122407b0b
@ -1,27 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import QtQuick.Templates as T
|
|
||||||
import FluentUI
|
|
||||||
|
|
||||||
T.HorizontalHeaderView {
|
|
||||||
id: control
|
|
||||||
implicitWidth: syncView ? syncView.width : 0
|
|
||||||
implicitHeight: Math.max(1, contentHeight)
|
|
||||||
delegate: Rectangle {
|
|
||||||
readonly property real cellPadding: 8
|
|
||||||
implicitWidth: text.implicitWidth + (cellPadding * 2)
|
|
||||||
implicitHeight: Math.max(control.height, text.implicitHeight + (cellPadding * 2))
|
|
||||||
color:FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(247/255,247/255,247/255,1)
|
|
||||||
border.color: FluTheme.dark ? "#252525" : "#e4e4e4"
|
|
||||||
FluText {
|
|
||||||
id: text
|
|
||||||
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole]
|
|
||||||
: model[control.textRole])
|
|
||||||
: modelData
|
|
||||||
width: parent.width
|
|
||||||
height: parent.height
|
|
||||||
font.bold: true
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -322,7 +322,7 @@ Rectangle {
|
|||||||
property bool canceled: false
|
property bool canceled: false
|
||||||
readonly property var obj : columnSource[column]
|
readonly property var obj : columnSource[column]
|
||||||
implicitWidth: column_text.implicitWidth + (cellPadding * 2)
|
implicitWidth: column_text.implicitWidth + (cellPadding * 2)
|
||||||
implicitHeight: Math.max(header_horizontal.height, column_text.implicitHeight + (cellPadding * 2))
|
implicitHeight: Math.max(36, column_text.implicitHeight + (cellPadding * 2))
|
||||||
color:{
|
color:{
|
||||||
d.selectionFlag
|
d.selectionFlag
|
||||||
if(column_item_control_mouse.pressed){
|
if(column_item_control_mouse.pressed){
|
||||||
@ -436,7 +436,7 @@ Rectangle {
|
|||||||
id:item_control
|
id:item_control
|
||||||
readonly property real cellPadding: 8
|
readonly property real cellPadding: 8
|
||||||
property bool canceled: false
|
property bool canceled: false
|
||||||
implicitWidth: Math.max(header_vertical.width, row_text.implicitWidth + (cellPadding * 2))
|
implicitWidth: Math.max(30, row_text.implicitWidth + (cellPadding * 2))
|
||||||
implicitHeight: row_text.implicitHeight + (cellPadding * 2)
|
implicitHeight: row_text.implicitHeight + (cellPadding * 2)
|
||||||
color: {
|
color: {
|
||||||
d.selectionFlag
|
d.selectionFlag
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
import QtQuick
|
|
||||||
import QtQuick.Templates as T
|
|
||||||
import FluentUI
|
|
||||||
|
|
||||||
T.VerticalHeaderView {
|
|
||||||
id: control
|
|
||||||
implicitWidth: Math.max(1, contentWidth)
|
|
||||||
implicitHeight: syncView ? syncView.height : 0
|
|
||||||
delegate: Rectangle {
|
|
||||||
readonly property real cellPadding: 8
|
|
||||||
implicitWidth: Math.max(control.width, text.implicitWidth + (cellPadding * 2))
|
|
||||||
implicitHeight: text.implicitHeight + (cellPadding * 2)
|
|
||||||
color:FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(247/255,247/255,247/255,1)
|
|
||||||
border.color: FluTheme.dark ? "#252525" : "#e4e4e4"
|
|
||||||
FluText {
|
|
||||||
id: text
|
|
||||||
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole]
|
|
||||||
: model[control.textRole])
|
|
||||||
: modelData
|
|
||||||
width: parent.width
|
|
||||||
font.bold: true
|
|
||||||
height: parent.height
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user