src/hbwidgets/itemviews/hblistviewitem.cpp
changeset 6 c3690ec91ef8
parent 2 06ff229162e9
child 21 4633027730f5
child 34 ed14f46c0e55
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
    98     </table>        
    98     </table>        
    99 
    99 
   100     Below is an example how the layout properties can be configured.
   100     Below is an example how the layout properties can be configured.
   101 
   101 
   102     \snippet{ultimatecodesnippet/ultimatecodesnippet.cpp,45}
   102     \snippet{ultimatecodesnippet/ultimatecodesnippet.cpp,45}
       
   103 
       
   104     \primitives
       
   105     \primitive{icon-1} HbIconItem representing the icon-1 as described in the table above. 
       
   106     \primitive{icon-2} HbIconItem representing the icon-2 as described in the table above. 
       
   107     \primitive{text-1} HbTextItem or HbRichTextItem representing the text-1 as described in the table above. The type of the return value depends on the textFormat() of the item.
       
   108     \primitive{text-2} HbTextItem or HbRichTextItem representing the text-2 as described in the table above.
       
   109     \primitive{text-3} HbTextItem or HbRichTextItem representing the text-3 as described in the table above.
       
   110 
   103 */
   111 */
   104 
   112 
   105 /*!
   113 /*!
   106     \enum HbListViewItem::StretchingStyle
   114     \enum HbListViewItem::StretchingStyle
   107 
   115 
   417             styleOption.index = i;
   425             styleOption.index = i;
   418             styleOption.content = d->mStringList.at(i);
   426             styleOption.content = d->mStringList.at(i);
   419             styleOption.multilineSecondaryTextSupported = d->isMultilineSupported();
   427             styleOption.multilineSecondaryTextSupported = d->isMultilineSupported();
   420 
   428 
   421             if (i == 1) {
   429             if (i == 1) {
   422                 // criteria of secondary text in middle column is fullfilled
   430                 // criteria of secondary text in middle column is fulfilled
   423                 styleOption.minimumLines = sd->mMinimumSecondaryTextRowCount;
   431                 styleOption.minimumLines = sd->mMinimumSecondaryTextRowCount;
   424                 styleOption.maximumLines = sd->mMaximumSecondaryTextRowCount;
   432                 styleOption.maximumLines = sd->mMaximumSecondaryTextRowCount;
   425             } 
   433             } 
   426             style()->updatePrimitive(item, d->displayPrimitive(), &styleOption);
   434             style()->updatePrimitive(item, d->displayPrimitive(), &styleOption);
   427         }
   435         }