~fuchsi585/diabetes-diary-app/0.2

« back to all changes in this revision

Viewing changes to app/CarbsStore/MealItem.qml

  • Committer: fuchsi585
  • Date: 2016-02-07 17:16:18 UTC
  • Revision ID: ro.fuchs585@googlemail.com-20160207171618-oi6vuhenhpp37ppk
fixed selected indices of listview

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
                text: name
45
45
                onClicked: {
46
46
                    mealExpand.expanded = !mealExpand.expanded
47
 
                    if (!mealExpand.expanded) mealExpand.save(nameField.text, weight.text, carbs.text);
 
47
                    if (!mealExpand.expanded) {
 
48
                        mealExpand.clicked();
 
49
                        mealExpand.save(nameField.text, weight.text, carbs.text);
 
50
                    }
48
51
                    else mealExpand.clicked();
49
52
                }
50
53
                onPressAndHold: mealExpand.pressAndHold();
64
67
                id: nameField
65
68
                text: (entry) ? entry.name : ""
66
69
                width: units.gu(17)
67
 
                font.pixelSize: FontUtils.sizeToPixels("medium")
 
70
                font.pixelSize: FontUtils.sizeToPixels("large")
68
71
                placeholderText: "-"
69
72
                font.bold: true
70
73
                hasClearButton: false