Changeset View
Changeset View
Standalone View
Standalone View
plasmoid/contents/ui/RecipeType.qml
Show All 26 Lines | |||||
27 | 27 | | |||
28 | Rectangle { | 28 | Rectangle { | ||
29 | id: partclc | 29 | id: partclc | ||
30 | height: cbheight | 30 | height: cbheight | ||
31 | width: cbwidth | 31 | width: cbwidth | ||
32 | color: theme.backgroundColor | 32 | color: theme.backgroundColor | ||
33 | property alias recipeReadLVModel: recipeReadListView.model | 33 | property alias recipeReadLVModel: recipeReadListView.model | ||
34 | 34 | | |||
35 | Connections { | ||||
36 | target: main2 | ||||
37 | ignoreUnknownSignals: true | ||||
38 | | ||||
39 | onRecipeMethod: { | ||||
40 | var getRecipeTitle = msgRecipeMethod | ||||
41 | for (var i = 0; i < recipeLmodel.count; i++) { | ||||
42 | var recipemodelLables = recipeLmodel.get(i).recipeLabel.toLowerCase(); | ||||
43 | recipemodelLables.replace(/\W/g, ''); | ||||
44 | if (recipemodelLables == getRecipeTitle) { | ||||
45 | recipesmodelview.contentItem.children[i].viewbtnClickItem.clicked() | ||||
46 | } | ||||
47 | } | ||||
48 | } | ||||
49 | } | ||||
50 | | ||||
35 | ListView { | 51 | ListView { | ||
36 | id: recipesmodelview | 52 | id: recipesmodelview | ||
37 | anchors.fill: parent | 53 | anchors.fill: parent | ||
38 | model: recipeLmodel | 54 | model: recipeLmodel | ||
39 | spacing: 4 | 55 | spacing: 4 | ||
40 | focus: false | 56 | focus: false | ||
41 | interactive: true | 57 | interactive: true | ||
42 | clip: true; | 58 | clip: true; | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |