equal
deleted
inserted
replaced
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); |