a lot of setup and testing work for rust
This commit is contained in:
parent
8e58dd89df
commit
8b4c348279
12 changed files with 231 additions and 32 deletions
|
@ -129,6 +129,10 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
FileHelper {
|
||||
id: fileHelper
|
||||
}
|
||||
|
||||
FileDialog {
|
||||
id: loadFileDialog
|
||||
title: "Load"
|
||||
|
@ -180,12 +184,6 @@ Kirigami.ApplicationWindow {
|
|||
/* print(loaded[0].audio); */
|
||||
}
|
||||
|
||||
MyObject {
|
||||
id: myObject
|
||||
number: 7
|
||||
string: "HI from rust in my proj: " + myObject.number
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
/* showPassiveNotification(Kirigami.Settings.style); */
|
||||
/* Kirigami.Settings.style = "Plasma"; */
|
||||
|
|
|
@ -149,6 +149,10 @@ Controls.Page {
|
|||
id: serviceItemModel
|
||||
}
|
||||
|
||||
ServiceThing {
|
||||
id: serviceThing
|
||||
}
|
||||
|
||||
function changeServiceItem(index) {
|
||||
const item = serviceItemModel.getItem(index);
|
||||
currentServiceItem = index;
|
||||
|
|
|
@ -45,19 +45,19 @@ FocusScope {
|
|||
text: "Solo"
|
||||
icon.name: "viewimage"
|
||||
hoverEnabled: true
|
||||
onClicked: myObject.slapVariantAround(imagesqlmodel.getImage(1).title);
|
||||
onClicked: serviceThing.slapVariantAround(imagesqlmodel.getImage(1).title);
|
||||
}
|
||||
Controls.ToolButton {
|
||||
text: "Grid"
|
||||
icon.name: "view-app-grid-symbolic"
|
||||
hoverEnabled: true
|
||||
onClicked: myObject.sayHi(myObject.string, myObject.number);
|
||||
onClicked: serviceThing.checkActive();
|
||||
}
|
||||
Controls.ToolButton {
|
||||
text: "Details"
|
||||
icon.name: "view-list-details"
|
||||
hoverEnabled: true
|
||||
onClicked: showPassiveNotification(myObject.string);
|
||||
onClicked: serviceThing.activate();
|
||||
}
|
||||
Controls.ToolSeparator {}
|
||||
Item { Layout.fillWidth: true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue