native: clean up

This commit is contained in:
Johannes Jöns 2024-07-11 22:40:57 +02:00
parent 359bfc5ced
commit 3293bed51e
4 changed files with 0 additions and 101 deletions

View file

@ -16,8 +16,6 @@ qt_add_qml_module(alisa
VERSION 1.0 VERSION 1.0
QML_FILES QML_FILES
Main.qml Main.qml
Data.qml
Test.qml
MainPage.qml MainPage.qml
LoginScreen.qml LoginScreen.qml
AddData.qml AddData.qml

View file

@ -1,22 +0,0 @@
import QtQuick
import Qt.labs.qmlmodels
TableModel {
TableModelColumn { display: "name" }
TableModelColumn { display: "color" }
rows: [
{
"name": "cat",
"color": "black"
},
{
"name": "dog",
"color": "brown"
},
{
"name": "bird",
"color": "white"
}
]
}

View file

@ -99,18 +99,4 @@ Rectangle {
}); });
xhr.send(data); xhr.send(data);
} }
Button {
id: loginScreenB
anchors {
bottom: parent.bottom
left: parent.left
}
text: qsTr("Test")
onClicked: {
var component = Qt.createComponent("Test.qml")
var window = component.createObject(root)
window.show()
}
}
} }

View file

@ -1,63 +0,0 @@
import QtQuick 2.12
import QtQuick.Window 2.12
import Qt.labs.qmlmodels 1.0
Window {
width: 400
height: 400
visible: true
TableView {
anchors.fill: parent
columnSpacing: 0
rowSpacing: 1
boundsBehavior: Flickable.StopAtBounds
model: TableModel {
TableModelColumn { display: "checked" }
TableModelColumn { display: "amount" }
TableModelColumn { display: "fruitType" }
TableModelColumn { display: "fruitName" }
TableModelColumn { display: "fruitPrice" }
// Each row is one type of fruit that can be ordered
rows: [
{
// Each property is one cell/column.
checked: false,
amount: 1,
fruitType: "Apple",
fruitName: "Granny Smith",
fruitPrice: 1.50
},
{
checked: true,
amount: 4,
fruitType: "Orange",
fruitName: "Navel",
fruitPrice: 2.50
},
{
checked: false,
amount: 1,
fruitType: "Banana",
fruitName: "Cavendish",
fruitPrice: 3.50
}
]
}
delegate: TextInput {
text: model.display
padding: 12
selectByMouse: true
onAccepted: model.display = text
Rectangle {
anchors.fill: parent
color: "#efefef"
z: -1
}
}
}
}