src/hbwidgets/popups/hbnotificationdialogcontent.cpp
changeset 6 c3690ec91ef8
parent 2 06ff229162e9
child 7 923ff622b8b9
equal deleted inserted replaced
5:627c4a0fd0e7 6:c3690ec91ef8
    34 {
    34 {
    35 }
    35 }
    36 
    36 
    37 void HbNotificationDialogContent::setIcon(const HbIcon &icon)
    37 void HbNotificationDialogContent::setIcon(const HbIcon &icon)
    38 {
    38 {
    39     if(!mIconItem) {
    39     delete mIconItem;
       
    40     mIconItem = 0;
       
    41 
       
    42     if(!icon.isNull()) {    
    40         mIconItem = style()->createPrimitive(
    43         mIconItem = style()->createPrimitive(
    41                 HbStyle::P_NotificationDialog_icon, this);
    44                 HbStyle::P_NotificationDialog_icon, this);
    42         Q_CHECK_PTR(mIconItem);
    45         Q_CHECK_PTR(mIconItem);
    43     }
    46     }
    44     mIcon = icon;
    47     mIcon = icon;