X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=mardrone%2Fimports%2Fcom%2Fnokia%2Fmeego%2FSelectionDialog.qml;h=9d4fb10429e16f41b9810546c838daa6813b814b;hb=HEAD;hp=fe4d15cb3112424c4bd379461881403e60fa1c71;hpb=53abfcee86d03676ae5e3b648d6c7cee69c2f4e1;p=mardrone diff --git a/mardrone/imports/com/nokia/meego/SelectionDialog.qml b/mardrone/imports/com/nokia/meego/SelectionDialog.qml index fe4d15c..9d4fb10 100644 --- a/mardrone/imports/com/nokia/meego/SelectionDialog.qml +++ b/mardrone/imports/com/nokia/meego/SelectionDialog.qml @@ -98,6 +98,7 @@ CommonDialog { font: root.platformStyle.itemFont } Component.onCompleted: { + console.debug("SelectionDialog delegate ",name,file) try { // Legacy. "name" used to be the role which was used by delegate itemText.text = name @@ -169,7 +170,8 @@ CommonDialog { flickableItem: selectionListView platformStyle.inverted: true } - onModelChanged: selectionContent.listViewHeight = model.count * platformStyle.itemHeight + onCountChanged: selectionContent.listViewHeight = (typeof model.count === 'undefined' ? model.length : model.count) * platformStyle.itemHeight + onModelChanged: selectionContent.listViewHeight = (typeof model.count === 'undefined' ? model.length : model.count) * platformStyle.itemHeight } }