[SailfishDevel] ContextMenu doesn't invoke a signal handler
Martin Jones
martin.jones at jolla.com
Sun Dec 22 01:56:02 UTC 2013
Hi,
I’ve logged a bug report. Proposed fix:
diff --git a/components/ComboBox.qml b/components/ComboBox.qml
index 1f880df..5db2dcf 100644
--- a/components/ComboBox.qml
+++ b/components/ComboBox.qml
@@ -250,7 +251,7 @@ ValueButton {
id: delegateItem
onClicked: {
- comboBox.currentItem = model.item
+ comboBox.menu.activated(index)
pageStack.pop()
}
Best Regards,
Martin.
On 22 Dec 2013, at 2:56 am, Mikko Leppänen <mleppan23 at gmail.com<mailto:mleppan23 at gmail.com>> wrote:
Hi,
I have a case where a column contains multiple Comboboxes and each of these boxes have a different number of menuitems inside the Contextmenu. Now everything works fine if the contextmenu only contains a few items and the focus stays on the current page. However when there's more items to be shown and it needs to show the items on a different page, then I'm not able get the contextmenu to invoke onActivated signal handler (items are listed though). I'm not quite sure what seems to be causing this?
This is an older project which I now started to reshape and noticed this issue. At least I get it to work properly in the first release of the SDK.
Thanks,
Mikko
_______________________________________________
SailfishOS.org<http://SailfishOS.org> Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131222/c36081d2/attachment.html>
More information about the Devel
mailing list