mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 03:10:10 +08:00
update
This commit is contained in:
parent
d805147627
commit
332c0ee54e
@ -58,6 +58,7 @@ FluScrollablePage{
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
contentWidth: width
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
contentHeight: text_info.height
|
||||
ScrollBar.vertical: FluScrollBar {}
|
||||
FluText{
|
||||
|
@ -59,6 +59,7 @@ FluScrollablePage{
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
contentWidth: width
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
contentHeight: text_info.height
|
||||
ScrollBar.vertical: FluScrollBar {}
|
||||
FluText{
|
||||
|
@ -38,7 +38,7 @@ QVariant FluTreeModel::data(const QModelIndex &index, int role) const {
|
||||
};
|
||||
|
||||
QHash<int, QByteArray> FluTreeModel::roleNames() const {
|
||||
return { {Qt::DisplayRole, "modelData"} };
|
||||
return { {Qt::DisplayRole, "dataModel"} };
|
||||
};
|
||||
|
||||
void FluTreeModel::setData(QList<Node*> data){
|
||||
|
@ -1016,6 +1016,7 @@ Item {
|
||||
}
|
||||
}
|
||||
anchors.fill: parent
|
||||
interactive: false
|
||||
model:d.handleItems()
|
||||
boundsBehavior: ListView.StopAtBounds
|
||||
highlightMoveDuration: FluTheme.enableAnimation && d.animDisabled ? 167 : 0
|
||||
|
@ -88,7 +88,7 @@ Item {
|
||||
}
|
||||
Loader{
|
||||
property var itemControl: item_control
|
||||
property var itemModel: modelData
|
||||
property var itemModel: dataModel
|
||||
property int rowIndex: index
|
||||
property bool isItemLoader: true
|
||||
id:item_loader_container
|
||||
@ -395,7 +395,7 @@ Item {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
Loader{
|
||||
property var modelData: itemModel
|
||||
property var dataModel: itemModel
|
||||
property var itemMouse: item_mouse
|
||||
id:item_loader_cell
|
||||
Layout.leftMargin: 10
|
||||
@ -417,7 +417,7 @@ Item {
|
||||
width: item_text.width
|
||||
FluText {
|
||||
id:item_text
|
||||
text: modelData.title
|
||||
text: dataModel.title
|
||||
rightPadding: 14
|
||||
anchors.centerIn: parent
|
||||
color:{
|
||||
|
@ -1017,6 +1017,7 @@ Item {
|
||||
}
|
||||
}
|
||||
anchors.fill: parent
|
||||
interactive: false
|
||||
model:d.handleItems()
|
||||
boundsBehavior: ListView.StopAtBounds
|
||||
highlightMoveDuration: FluTheme.enableAnimation && d.animDisabled ? 167 : 0
|
||||
|
@ -88,7 +88,7 @@ Item {
|
||||
}
|
||||
Loader{
|
||||
property var itemControl: item_control
|
||||
property var itemModel: modelData
|
||||
property var itemModel: dataModel
|
||||
property int rowIndex: index
|
||||
property bool isItemLoader: true
|
||||
id:item_loader_container
|
||||
@ -395,7 +395,7 @@ Item {
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
}
|
||||
Loader{
|
||||
property var modelData: itemModel
|
||||
property var dataModel: itemModel
|
||||
property var itemMouse: item_mouse
|
||||
id:item_loader_cell
|
||||
Layout.leftMargin: 10
|
||||
@ -417,7 +417,7 @@ Item {
|
||||
width: item_text.width
|
||||
FluText {
|
||||
id:item_text
|
||||
text: modelData.title
|
||||
text: dataModel.title
|
||||
rightPadding: 14
|
||||
anchors.centerIn: parent
|
||||
color:{
|
||||
|
Loading…
Reference in New Issue
Block a user