src/hbwidgets/popups/hbnotificationdialogcontent.cpp
changeset 21 4633027730f5
parent 7 923ff622b8b9
--- a/src/hbwidgets/popups/hbnotificationdialogcontent.cpp	Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbwidgets/popups/hbnotificationdialogcontent.cpp	Wed Aug 18 10:05:37 2010 +0300
@@ -27,6 +27,7 @@
 #include <hbdeviceprofile.h>
 
 #include "hbnotificationdialogcontent_p.h"
+#include "hbstyle_p.h"
 
 HbNotificationDialogContent::HbNotificationDialogContent(QGraphicsWidget *parent) :
     HbWidget(parent), mTitleTextWrapping(Hb::TextNoWrap),
@@ -34,14 +35,19 @@
 {
 }
 
+HbNotificationDialogContent::~HbNotificationDialogContent()
+{
+
+}
+
 void HbNotificationDialogContent::setIcon(const HbIcon &icon)
 {
     delete mIconItem;
     mIconItem = 0;
 
     if (!icon.isNull()) {    
-        mIconItem = style()->createPrimitive(
-                HbStyle::P_NotificationDialog_icon, this);
+        mIconItem = HbStylePrivate::createPrimitive(
+                HbStylePrivate::P_NotificationDialog_icon, this);
         Q_CHECK_PTR(mIconItem);
     }
     mIcon = icon;
@@ -54,8 +60,8 @@
 void HbNotificationDialogContent::setText(const QString &text)
 {
     if (!mTextItem) {
-        mTextItem = style()->createPrimitive(
-                HbStyle::P_NotificationDialog_text, this);
+        mTextItem = HbStylePrivate::createPrimitive(
+                HbStylePrivate::P_NotificationDialog_text, this);
         Q_CHECK_PTR(mTextItem);
     }
     mText = text;
@@ -68,8 +74,8 @@
 void HbNotificationDialogContent::setTitle(const QString &title)
 {
     if (!mTitleItem) {
-        mTitleItem = style()->createPrimitive(
-                HbStyle::P_NotificationDialog_title, this);
+        mTitleItem = HbStylePrivate::createPrimitive(
+                HbStylePrivate::P_NotificationDialog_title, this);
         Q_CHECK_PTR(mTitleItem);
     }
 
@@ -177,16 +183,16 @@
     initStyleOption(&option);
 
     if (mTextItem) {
-        style()->updatePrimitive(mTextItem,
-            HbStyle::P_NotificationDialog_text, &option);
+        HbStylePrivate::updatePrimitive(mTextItem,
+            HbStylePrivate::P_NotificationDialog_text, &option);
     }
     if (mTitleItem) {
-        style()->updatePrimitive(mTitleItem,
-            HbStyle::P_NotificationDialog_title, &option);
+        HbStylePrivate::updatePrimitive(mTitleItem,
+            HbStylePrivate::P_NotificationDialog_title, &option);
     }
     if (!mIcon.isNull()) {
-        style()->updatePrimitive(mIconItem,
-            HbStyle::P_NotificationDialog_icon, &option);
+        HbStylePrivate::updatePrimitive(mIconItem,
+            HbStylePrivate::P_NotificationDialog_icon, &option);
     }
 }