src/hbwidgets/editors/hbselectioncontrol_p.cpp
changeset 6 c3690ec91ef8
parent 5 627c4a0fd0e7
child 7 923ff622b8b9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
   125 {
   125 {
   126     Q_Q(HbSelectionControl);
   126     Q_Q(HbSelectionControl);
   127     createPrimitives();
   127     createPrimitives();
   128 
   128 
   129     q->setVisible(false);
   129     q->setVisible(false);
   130     q->setFlag(QGraphicsItem::ItemIsFocusable,false);
   130     QGraphicsItem::GraphicsItemFlags itemFlags = q->flags();
   131     q->setFlag(QGraphicsItem::ItemIsPanel,true);
   131     itemFlags |=  QGraphicsItem::ItemSendsGeometryChanges;
       
   132     itemFlags &= ~QGraphicsItem::ItemIsFocusable;
       
   133     itemFlags |=  QGraphicsItem::ItemIsPanel;
       
   134     q->setFlags(itemFlags);
   132     q->setFocusPolicy(Qt::NoFocus);
   135     q->setFocusPolicy(Qt::NoFocus);
   133     q->setActive(false);
   136     q->setActive(false);
   134 
   137 
   135     // Control will handle all events going to different handlers.
   138     // Control will handle all events going to different handlers.
   136     q->setHandlesChildEvents(true);
   139     q->setHandlesChildEvents(true);