[mythtv] Ticket #10078: MythUIButtonTree emit itemSelected too early

Xavier Hervy xavier.hervy at gmail.com
Wed Oct 5 19:42:09 UTC 2011


On 05/10/11 20:30, MythTV wrote:
> #10078: MythUIButtonTree emit itemSelected too early
> -------------------------------------------------+-------------------------
>   Reporter:  Xavier Hervy<xavier.hervy@…>         |          Owner:  stuartm
>       Type:  Patch - Bug Fix                      |         Status:  new
>   Priority:  minor                                |      Milestone:  unknown
> Component:  MythTV - User Interface Library      |        Version:  Trunk
>   Severity:  medium                               |  Head
>   Keywords:  mythuibuttontree                     |     Resolution:
>                                                   |  Ticket locked:  0
> -------------------------------------------------+-------------------------
>
> Comment (by paulh):
>
>   While what you say is true it's usual to get the node from the
>   MythUIListButtonItem like this
>   {{{
>   MythGenericTree *node = qVariantValue<MythGenericTree*>  (item->GetData());
>   }}}
>
That is interesting I did not realise that GetData() return the 
MythGenericTree object. I assumed that the  GetData()
  from the MythUIButtonListItem would return the QVariant previously set 
on the MythGenericTree object with SetData()
Thank you for pointing this out.


More information about the mythtv-dev mailing list