Add replacement for QT.labs.models.TableModel

Implementation is intended to function the same as before.

CURA-8640
This commit is contained in:
j.delarago 2022-04-05 15:03:45 +02:00
parent 359bcc1bee
commit 4ec2edec67
3 changed files with 13 additions and 16 deletions

View file

@ -6,7 +6,7 @@ import QtQuick 2.15
import QtQuick.Window 2.2
import QtQuick.Controls 2.3
import UM 1.2 as UM
import UM 1.6 as UM
import Cura 1.6 as Cura
import DigitalFactory 1.0 as DF
@ -66,13 +66,11 @@ Item
anchors.margins: parent.border.width
columnHeaders: ["Name", "Uploaded by", "Uploaded at"]
// model: TableModel
// {
// TableModelColumn { display: "fileName" }
// TableModelColumn { display: "username" }
// TableModelColumn { display: "uploadedAt" }
// rows: manager.digitalFactoryFileModel.items
// }
model: UM.TableModel
{
headers: ["fileName", "username", "uploadedAt"]
rows: manager.digitalFactoryFileModel.items
}
onCurrentRowChanged:
{