This commit is contained in:
朱子楚\zhuzi 2023-10-15 16:29:50 +08:00
parent d805147627
commit 332c0ee54e
7 changed files with 11 additions and 7 deletions

View File

@ -58,6 +58,7 @@ FluScrollablePage{
width: parent.width
height: parent.height
contentWidth: width
boundsBehavior: Flickable.StopAtBounds
contentHeight: text_info.height
ScrollBar.vertical: FluScrollBar {}
FluText{

View File

@ -59,6 +59,7 @@ FluScrollablePage{
width: parent.width
height: parent.height
contentWidth: width
boundsBehavior: Flickable.StopAtBounds
contentHeight: text_info.height
ScrollBar.vertical: FluScrollBar {}
FluText{

View File

@ -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){

View File

@ -1016,6 +1016,7 @@ Item {
}
}
anchors.fill: parent
interactive: false
model:d.handleItems()
boundsBehavior: ListView.StopAtBounds
highlightMoveDuration: FluTheme.enableAnimation && d.animDisabled ? 167 : 0

View File

@ -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:{

View File

@ -1017,6 +1017,7 @@ Item {
}
}
anchors.fill: parent
interactive: false
model:d.handleItems()
boundsBehavior: ListView.StopAtBounds
highlightMoveDuration: FluTheme.enableAnimation && d.animDisabled ? 167 : 0

View File

@ -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:{