equal
deleted
inserted
replaced
51 // HbListViewItem::updateChildItems |
51 // HbListViewItem::updateChildItems |
52 // |
52 // |
53 //--------------------------------------------------------------- |
53 //--------------------------------------------------------------- |
54 void CntHistoryViewItem::updateChildItems() |
54 void CntHistoryViewItem::updateChildItems() |
55 { |
55 { |
56 int flags = modelIndex().data(CntHistoryModel::FlagsRole).toInt(); |
56 int flags = modelIndex().data(CntFlagsRole).toInt(); |
57 mIncoming = flags & CntHistoryModel::Incoming ? true : false; |
57 mIncoming = flags & CntIncoming ? true : false; |
58 mNewMessage = flags & CntHistoryModel::Unseen ? true : false; |
58 mNewMessage = flags & CntUnseen ? true : false; |
59 |
59 |
60 if (mNewMessage) |
60 if (mNewMessage) |
61 { |
61 { |
62 if (!mNewItem) |
62 if (!mNewItem) |
63 { |
63 { |
90 { |
90 { |
91 // focus frame position can't be read from widgetml, we set it manually |
91 // focus frame position can't be read from widgetml, we set it manually |
92 QRectF frameRect = HbWidget::primitive("frame")->boundingRect(); |
92 QRectF frameRect = HbWidget::primitive("frame")->boundingRect(); |
93 QPointF framePoint = HbWidget::primitive("frame")->pos(); |
93 QPointF framePoint = HbWidget::primitive("frame")->pos(); |
94 |
94 |
95 // W12: |
|
96 //QRectF frameRect = primitive(HbStyle::P_ItemViewItem_frame)->boundingRect(); |
|
97 //QPointF framePoint = primitive(HbStyle::P_ItemViewItem_frame)->pos(); |
|
98 |
|
99 frameRect.moveTo(framePoint); |
95 frameRect.moveTo(framePoint); |
100 |
96 |
101 if (mIncoming) |
97 if (mIncoming) |
102 { |
98 { |
103 mFocusItem = new HbFrameItem(INCOMING_FOCUS_FRAME, HbFrameDrawer::NinePieces, this); |
99 mFocusItem = new HbFrameItem(INCOMING_FOCUS_FRAME, HbFrameDrawer::NinePieces, this); |